Skip to main content

rotatePersistentAgentWebhookSecret

POST 

/agents/:id/webhooks/:webhookId/rotate-secret

Replace the outbound webhook signing secret immediately and return the new value. The sender does not provide a dual-secret grace period. Requires agents:manage. Optional protected retries require API_EXTENDED_RETRIES_ENABLED for new admissions; retained retries survive disabling admission. Original outcomes expire after 24 hours by default; current authority is rechecked. Task creation requires wait to be omitted. Secret rotation retries conflict if superseded.

Request​

Responses​

Response Headers
    RateLimit-Limit

    Smaller configured principal/owner request window limit when enforcement is enabled.

    RateLimit-Remaining

    Smaller remaining principal/owner allowance at admission.

    RateLimit-Reset

    Seconds until the Redis-server-time fixed request window resets.

    Operation-Id

    Opaque retained receipt ID. Outcome lookup is available for covered G02 member and allowed G01 service operations.

    Idempotency-Expires-At

    Original protected response expiry.

    Idempotency-Replayed

    Present when Idempotency-Key is used: false for the original response, true for a replay.

    X-Request-ID

    Server-generated synchronous HTTP correlation; no worker lineage implied.