Create a webhook subscription
POST/v1/webhook-subscriptionsPortal sign-in
Sends an endpoint the events that match: of the listed event_types (empty: all), materiality levels (empty: all) and, with scope: models, about the listed models (family, version or offering slugs; unknown ones are 400) or, with scope: inventory, about what your inventory covers when deliveries are created (at dispatch). Editing your inventory later doesn’t change deliveries already queued or being retried. Corrections only with include_corrections. It matches events detected after it’s created. An event that several subscriptions match is delivered to the endpoint once. Events are grouped: one delivery per model per merge. Your plan sets how many subscriptions your account can have, across its endpoints (entitlements.limits.webhook_subscriptions on GET /v1/account): at the limit, 409 conflict; with a limit of 0 (no plan yet, for example), 403 forbidden.
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.
endpoint_idstring (uuid)requiredThe endpoint to deliver to. It must be one of your account’s (
400 invalid_parameterotherwise).- Example
2a7f9c4d-8e1b-4f6a-93d5-c0b8e2f17a46
event_typesarray of stringTypes from
GET /v1/event-types. Empty or absent means all.- Example
["lifecycle.retirement_date_changed","lifecycle.status_changed"]
materialityarray of stringEmpty or absent means all. Corrections have no materiality.
- Allowed items
high,medium,low- Example
["high","medium"]
include_correctionsbooleanAlso deliver corrections (our fixes to our own data, see
Event.correction).- Default
false- Example
false
scopestringrequiredallevents, only those aboutmodels, or only those about what your inventory (/v1/inventory) covers when the deliveries are created (at dispatch). Inventory edits apply to later deliveries, not to ones already queued or being retried.- Allowed
all,models,inventory- Example
models
modelsarray of stringWith
scope: models, 1 to 100 family, version or offering slugs.- Example
["claude-sonnet-4-5"]
{ "endpoint_id": "2a7f9c4d-8e1b-4f6a-93d5-c0b8e2f17a46", "event_types": [ "lifecycle.retirement_date_changed", "lifecycle.status_changed" ], "materiality": [ "high", "medium" ], "include_corrections": false, "scope": "models", "models": [ "claude-sonnet-4-5" ]}Responses
The new subscription. Absent lists come back empty.
application/json · WebhookSubscription
endpoint_idstring (uuid)requiredThe endpoint to deliver to. It must be one of your account’s (
400 invalid_parameterotherwise).- Example
2a7f9c4d-8e1b-4f6a-93d5-c0b8e2f17a46
event_typesarray of stringrequiredTypes from
GET /v1/event-types. Empty or absent means all.- Example
["lifecycle.retirement_date_changed","lifecycle.status_changed"]
materialityarray of stringrequiredEmpty or absent means all. Corrections have no materiality.
- Allowed items
high,medium,low- Example
["high","medium"]
include_correctionsbooleanrequiredAlso deliver corrections (our fixes to our own data, see
Event.correction).- Default
false- Example
false
scopestringrequiredallevents, only those aboutmodels, or only those about what your inventory (/v1/inventory) covers when the deliveries are created (at dispatch). Inventory edits apply to later deliveries, not to ones already queued or being retried.- Allowed
all,models,inventory- Example
models
modelsarray of stringrequiredWith
scope: models, 1 to 100 family, version or offering slugs.- Example
["claude-sonnet-4-5"]
idstring (uuid)requiredThe subscription’s ID.
- Example
c5e83b1f-6a2d-4c97-8f40-1b9d7e2a6c53
created_atstring (date-time)requiredWhen the subscription was created. It matches events detected after this.
- Example
2026-11-26T15:25:00Z
{ "id": "c5e83b1f-6a2d-4c97-8f40-1b9d7e2a6c53", "endpoint_id": "2a7f9c4d-8e1b-4f6a-93d5-c0b8e2f17a46", "event_types": [ "lifecycle.retirement_date_changed", "lifecycle.status_changed" ], "materiality": [ "high", "medium" ], "include_corrections": false, "scope": "models", "models": [ "claude-sonnet-4-5" ], "created_at": "2026-11-26T15:25:00Z"}400 Bad Request, code: invalid_parameter. A parameter or the request body is invalid.
application/problem+json · Problem
typestringrequiredAlways about:blank for now. Use
code.titlestringrequiredThe HTTP status’s standard name.
statusintegerrequiredThe HTTP status code, the same as the response’s.
detailstringWhat went wrong with this request, in plain language: which parameter, which slug. Absent when there’s nothing to add (an internal error).
codestringrequiredThe error, for your code to act on. Branch on this, not on
titleordetail.- Allowed
not_found,invalid_parameter,unauthorized,forbidden,conflict,rate_limited,not_implemented,internal
401 Unauthorized. No valid portal access token. API Gateway checks it before the API runs, so this body is API Gateway’s, not a Problem.
403 Forbidden, code: forbidden. You can’t do this on this account (see the description).
application/problem+json · Problem
typestringrequiredAlways about:blank for now. Use
code.titlestringrequiredThe HTTP status’s standard name.
statusintegerrequiredThe HTTP status code, the same as the response’s.
detailstringWhat went wrong with this request, in plain language: which parameter, which slug. Absent when there’s nothing to add (an internal error).
codestringrequiredThe error, for your code to act on. Branch on this, not on
titleordetail.- Allowed
not_found,invalid_parameter,unauthorized,forbidden,conflict,rate_limited,not_implemented,internal
409 Conflict, code: conflict. It conflicts with what’s there (see the description).
application/problem+json · Problem
typestringrequiredAlways about:blank for now. Use
code.titlestringrequiredThe HTTP status’s standard name.
statusintegerrequiredThe HTTP status code, the same as the response’s.
detailstringWhat went wrong with this request, in plain language: which parameter, which slug. Absent when there’s nothing to add (an internal error).
codestringrequiredThe error, for your code to act on. Branch on this, not on
titleordetail.- Allowed
not_found,invalid_parameter,unauthorized,forbidden,conflict,rate_limited,not_implemented,internal
Over a rate limit: your account’s per-minute limit from its plan (entitlements.requests_per_minute on GET /v1/account), shared by its keys, or the API-wide throttle every caller shares. Wait Retry-After seconds, then retry with backoff.
application/problem+json · Problem
typestringrequiredAlways about:blank for now. Use
code.- Example
about:blank
titlestringrequiredThe HTTP status’s standard name.
- Example
Not Found
statusintegerrequiredThe HTTP status code, the same as the response’s.
- Example
404
detailstringWhat went wrong with this request, in plain language: which parameter, which slug. Absent when there’s nothing to add (an internal error).
- Example
No version claude-sonnet-9.
codestringrequiredThe error, for your code to act on. Branch on this, not on
titleordetail.- Allowed
not_found,invalid_parameter,unauthorized,forbidden,conflict,rate_limited,not_implemented,internal- Example
not_found
{ "type": "about:blank", "title": "Too Many Requests", "status": 429, "detail": "Your plan allows 60 requests a minute, across your account's keys. Retry after 12 s.", "code": "rate_limited"}{ "type": "about:blank", "title": "Too Many Requests", "status": 429, "detail": "The API is busy. Retry after 1 s, with backoff.", "code": "rate_limited"}