Mediflo
REST APIWebhooks

Rotate an endpoint signing secret

Returns the new `secret` once. The previous secret keeps signing for 24 h — during that window every delivery carries TWO `v1=` entries, so accept the request if either verifies. `previousSecretExpiresAt` tells you when the old one stops. Required scope: `webhooks.manage`.

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

Authorization

ApiKeyAuth
AuthorizationBearer <token>

An external API key, sent as Authorization: Bearer mflo_…. Scopes are checked per route; see each operation’s description.

In: header

Path Parameters

endpointId*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/webhook-endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret"
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "url": "string",    "description": "string",    "subscribedEvents": [      "string"    ],    "payloadConfig": null,    "status": "ENABLED",    "consecutiveFailures": 0,    "lastSuccessAt": "string",    "lastFailureAt": "string",    "autoDisabledAt": "string",    "previousSecretExpiresAt": "string",    "createdAt": "string",    "updatedAt": "string",    "secret": "string"  }}