Skip to content

Rotate an endpoint's signing secret

Request

Replaces the signing secret and returns the new one, shown only this once. Deliveries sent after this call are signed with the new secret straight away, so update your verifier first, or accept both secrets for a short period.

Security
ClientKey and SecretKey
Path
tokenstring^heprequired

The endpoint's token.

Example:hep_kBXRfasu_Ard5VWhe_xECb9iAV_IyX1JdD
curl -i -X POST \
  https://docs.dimepay.net/_mock/apis/v2/dime-v2/webhook-endpoints/hep_kBXRfasu_Ard5VWhe_xECb9iAV_IyX1JdD/rotate-secret \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'X-Dime-Client: YOUR_API_KEY_HERE'

Responses

The endpoint, with its new signing secret.

Bodyapplication/json
tokenstring

Identifies the endpoint. Used in URLs, and as endpoint_id on an event's deliveries.

Example:"hep_kBXRfasu_Ard5VWhe_xECb9iAV_IyX1JdD"
objectstring
Example:"webhook_endpoint"
Value:"webhook_endpoint"
urlstring, (uri)
Example:"https://example.com/webhooks/dime"
descriptionstring or null
Example:"Production order events"
is_activeboolean

false stops deliveries; events are still recorded.

Example:true
enabled_eventsArray of strings or null

Event types this endpoint receives. null means every event.

Example:null
created_atstring, (date-time)
Example:"2026-10-28T14:02:11.000Z"
signing_secretstring

HMAC key for verifying deliveries. Returned only when the endpoint is created or the secret is rotated.

Example:"whsec_V1StGXR8_Z5jdHi6BmyT2kQ4pL7nR9sW1xZ3cE5v"
Response
{ "token": "hep_kBXRfasu_Ard5VWhe_xECb9iAV_IyX1JdD", "object": "webhook_endpoint", "url": "https://example.com/webhooks/dime", "description": "Production order events", "is_active": true, "enabled_events": null, "created_at": "2026-10-28T14:02:11.000Z", "signing_secret": "whsec_9kQ2pjmnNMXqG0Ewxdo1aB3cD5eF7gH9iJ1kL3mN" }