POST /webhook-endpoints/{endpoint_id}/rotate-secret
Both secrets verify until the overlap window closes, so a partner rolls over without
downtime (§4.1).
Name In Type Notes endpoint_idpath string (uuid) required —
Field Type Notes secretstring required min length 16 max length 400 overlap_secondsinteger optional Default 86400. min 0 max 2592000
Status Description Body 200Successful Response WebhookEndpointView422Validation Error HTTPValidationError
Only the success paths are declared
Any operation may also answer any status in the error catalogue , and
every failure body is the platform envelope — including the 422 this document types
as HTTPValidationError.
The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.
curl -X POST https://your-deployment.example.com/webhook-endpoints/{endpoint_id}/rotate-secret \
-H " Authorization: Bearer $COBRE_TOKEN " \
-H " Content-Type: application/json " \
Field Type Notes idstring (uuid) required — agent_idstring (uuid) required — slugstring required — http_methodPOST | GET | PUTrequired — verificationhmac_sha256 | shared_token | nonerequired — secret_setboolean required — rotation_activeboolean required — secret_overlap_untilstring (date-time) | null required , nullable— prompt_templatestring required — input_templateobject | null required , nullable— session_key_templatestring | null required , nullable— persona_slug_templatestring | null required , nullable— subject_templateobject | null required , nullable— response_modeasync | sync | callback | ackrequired — response_pathstring | null required , nullable— callback_urlstring | null required , nullable— event_kindstring | null required , nullable— rate_limit_per_minuteinteger required — coalescingobject required — unverified_ackboolean required — call_countinteger required — is_activeboolean required — created_atstring (date-time) required —