Stashbase
Webhooks (env. scope)

Rotate signing secret

Generate new signing secret for the webhook.

POST
/v1/environment/webhooks/{webhook_id}/signing-secret

Generate new signing secret for the webhook.

Path Parameters

webhook_id*string

The id of the webhook.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/environment/webhooks/string/signing-secret"
{
  "signing_secret": "whsec_btewqUDxQDa5dyUuhV6PThIsZVaSKRGe"
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}