Skip to content

Preview: Model Atlas is in development and not yet available.

Rotate an endpoint's signing secret

POST/v1/webhook-endpoints/{id}/rotate-secretPortal sign-in

Returns a new secret once. The old one keeps working for 24 hours: until then each delivery carries two v1= signatures, the new secret’s first. Accept either while you switch. Rotating again within those 24 hours is a 409 conflict, so the old secret always gets its full overlap; to stop it sooner, delete the endpoint and create a new one.

Authorization

Portal sign-in Authorization: Bearer $MA_ACCESS_TOKEN

Sign in to the portal and send its access token. Portal sign-in isn't available yet, so you can read this endpoint but not call it.

Parameters

ParameterTypeDescription
id
pathrequired
string

The ID the resource was listed or created with: a ULID for events and deliveries, a UUID for API keys, webhook endpoints and webhook subscriptions. An unknown or malformed ID, or another account’s, is 404 not_found.

Examples
01M855W468XZ5JFHKQ38DQSXW1 An event or delivery ID (a ULID)
6f1c2a9e-4b7d-4e3a-9c51-2d8f0b7e3a14 An API key, webhook endpoint or webhook subscription ID (a UUID)

Responses

The endpoint, with its new signing secret in secret.

application/json · WebhookEndpointCreated

  • idstring (uuid)required

    The endpoint’s ID. Subscriptions and deliveries refer to it as endpoint_id.

    Example
    2a7f9c4d-8e1b-4f6a-93d5-c0b8e2f17a46
  • urlstringrequired

    Where deliveries are POSTed.

    Example
    https://hooks.acme.example/model-atlas
  • descriptionstringrequired

    Your label for it. Empty when you didn’t give one.

    Example
    Production alerts
  • enabledbooleanrequired

    Whether it gets deliveries. A disabled endpoint’s pending deliveries wait, and events detected while it’s disabled aren’t delivered.

    Example
    true
  • disabled_reasonstringrequirednullable

    failing: we disabled it after 3 days of failed deliveries. customer: you did.

    Allowed
    failing, customer
    Example
    null
  • failing_sincestring (date-time)requirednullable

    The first failed attempt since the last success. Null when the last attempt succeeded.

    Example
    null
  • created_atstring (date-time)required

    When the endpoint was created. It gets events detected after this.

    Example
    2026-11-26T15:20:00Z
  • secretstringrequired

    The signing secret. Shown once.

    Example
    whsec_Zx3c9vT1mQ8kR2pL5nW7yB4dF6hJ0sA1uE3gI5oK7qM
200 example
{
"id": "2a7f9c4d-8e1b-4f6a-93d5-c0b8e2f17a46",
"url": "https://hooks.acme.example/model-atlas",
"description": "Production alerts",
"enabled": true,
"disabled_reason": null,
"failing_since": null,
"created_at": "2026-11-26T15:20:00Z",
"secret": "whsec_VCnqJ77szjQeagZOTi06GC9ER5VEG-QpbnvaVbrk_jM"
}