Developers

Rotate an endpoint’s signing secret

POST
/webhooks/endpoints/{endpointId}/rotate-secret

Replaces the signing secret of one Webhook Endpoint. The plaintext secret (whsec_…) appears only in this response and can never be read again; store it now to verify deliveries.

Authorization

headerAuthorizationBearer <token>

An API Key the User creates in account settings, sent as Authorization: Bearer <key>. It holds the Scopes chosen at creation.

Path Parameters

endpointId*string
Length1 <= length

Response Body

Success.

application/json
  1. response
endpoint*
secret*string
Example request
curl -X POST 'https://ximagesplitter.com/api/v1/webhooks/endpoints/string/rotate-secret'
Example response
{
  "endpoint": {
    "id": "string",
    "url": "string",
    "eventTypes": [
      "generation.queued"
    ],
    "status": "unverified",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  },
  "secret": "string"
}