Rotate destination signing secret

Rotates the HMAC signing secret for a specific destination. If no secret is provided in the request body, a new random secret is generated. Returns the new signing secret.

post/api/v1/apps/{slug}/destinations/{index}/rotate-secret

Request

  • Base URL: https://anyhook.net
  • URL: https://anyhook.net/api/v1/apps/{slug}/destinations/{index}/rotate-secret
  • Auth: HTTP bearer

Path parameters

slugstring required
indexinteger required

Zero-based index of the destination in the app's destinations array.

Request body

secretstring

Custom signing secret. If omitted, a random secret is generated.

Response

Secret rotated

destination_indexinteger
signing_secretstring

Changes

No recorded changes to this operation across all 2 revisions of this API.