Skip to Content
Webhooks

Replace the signing secret; the new one is returned once

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

For grace_hours (default 24, 0–168) every delivery is signed with both the new and the previous secret (two v1 values in Messora-Signature), so the receiver can switch over without dropping events. With grace_hours: 0 the old secret stops working at once, including for retries of earlier events.

Scope: webhooks.manage. Rate limit: 300 requests per minute per API key.

Authorization

apiKey webhooks.manage
headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: webhooks.manage

Path Parameters

endpointId*string
Formatuuid

Request Body

application/json
  1. body
grace_hours?integer

How long deliveries are also signed with the previous secret.

Range0 <= value <= 168
Default24

Response Body

Endpoint and its new secret

application/json
  1. response
data*
meta*
Example Request
curl -X POST 'https://app.messora.tech/api/v1/webhook-endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret' \  -H 'Content-Type: application/json' \  -d '{  "grace_hours": 24}'
Example Response
{  "data": {    "endpoint": {      "active": true,      "created_at": "2026-11-01T10:00:00Z",      "description": "CRM sync",      "disabled_at": null,      "disabled_reason": null,      "event_types": [        "message.received",        "conversation.closed"      ],      "failing_since": null,      "failure_streak": 0,      "id": "019a8c2e-4f1b-7a17-9c3d-5e7a10000017",      "last_failure_at": null,      "last_success_at": null,      "previous_secret_expires_at": null,      "secret_last4": "7b9a",      "updated_at": "2026-11-01T10:00:00Z",      "url": "https://crm.example.com/hooks/messora"    },    "secret": "whsec_example-signing-secret"  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}