Endpoint

Rotate Endpoint Secret

Rotates the endpoint's signing secret. The previous secret will be valid for the next 24 hours.

post/endpoint/{endpoint_id}/secret/rotate

Request

  • Base URL
    https://api.sinay.ai/webhook/api/v1
  • URL
    https://api.sinay.ai/webhook/api/v1/endpoint/{endpoint_id}/secret/rotate
  • Auth
    API key in header API_KEY

Path parameters

endpoint_idstring required

The ep's ID or UID

Example:unique-ep-identifier

The ep's ID or UID To retrieve your endpoints ids, use GET /endpoint.

Headers

idempotency-keystring

The request's idempotency key

Request body

keystring nullable

The endpoint's verification secret. If null is passed, a secret is automatically generated. Format: base64 encoded random bytes optionally prefixed with whsec_. Recommended size: 24.

Example request

{
  "key": "whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD"
}

Response

No content. Your secret has been rotated, but we won't show it here.

Changes

No recorded changes to this operation across all 1 revision of this API.