Skip to Content

RotateEndpointSecret

POST
/webhooks/v1/projects/{project_id}/endpoints/{endpoint_id}/rotate-secret

RotateEndpointSecret installs a fresh signing secret. For 24h deliveries are signed with both the old and the new secret so consumers can migrate.

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Path Parameters

project_id*project_id
Length1 <= length
endpoint_id*endpoint_id
Length1 <= length

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/webhooks.v1.RotateEndpointSecretResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "secret": {
        "type": "string",
        "examples": [
          "whsec_6PJkX9sR3uVbNwYqTzLeHdCgAfMjKoQx"
        ],
        "title": "secret"
      }
    },
    "title": "RotateEndpointSecretResponse",
    "additionalProperties": false
  }
}
default
curl -X POST 'https://api.rixl.com/webhooks/v1/projects/string/endpoints/string/rotate-secret'

Success

application/json

{
  "$ref": "#/components/schemas/webhooks.v1.RotateEndpointSecretResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "secret": {
        "type": "string",
        "examples": [
          "whsec_6PJkX9sR3uVbNwYqTzLeHdCgAfMjKoQx"
        ],
        "title": "secret"
      }
    },
    "title": "RotateEndpointSecretResponse",
    "additionalProperties": false
  }
}