Skip to content

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

Create a webhook endpoint

POST/v1/webhook-endpointsPortal sign-in

Registers an HTTPS URL to receive deliveries, and returns its signing secret once, in secret. The URL must use https, name a host (not an IP address) and resolve to public addresses only. Needs a plan with webhooks (403 forbidden otherwise). Your plan sets how many endpoints your account can have (entitlements.limits.webhook_endpoints on GET /v1/account): at the limit, 409 conflict. The endpoint gets events detected from now on: subscribe it to them with POST /v1/webhook-subscriptions. Each delivery is signed: Model-Atlas-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<body>">.

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.

Request body

Required, application/json.

  • urlstringrequired

    Where to POST deliveries: an https URL naming a public host (not an IP address), with no user name, password or #fragment. Its host must resolve to public addresses only. It can’t be changed later.

    Range
    up to 2048 characters
    Example
    https://hooks.acme.example/model-atlas
  • descriptionstring

    A label for you, up to 200 characters, with no control characters.

    Range
    up to 200 characters
    Example
    Production alerts
Example request body
{
"url": "https://hooks.acme.example/model-atlas",
"description": "Production alerts"
}

Responses

The new endpoint, with its 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
201 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_Zx3c9vT1mQ8kR2pL5nW7yB4dF6hJ0sA1uE3gI5oK7qM"
}