Create your account
POST/v1/accountPortal sign-in
Creates an account with you as its owner, on the Free plan. One account per user: 409 conflict if you already belong to one (then GET /v1/account returns it). Sign-up on the account page calls this after your first sign-in. Paid plans are an upgrade from Free. Where a deployment has no Free plan yet, the account starts with no plan (plan: null), and its keys get 403 forbidden on the catalog until one is granted.
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.
namestringrequiredThe account’s name. Spaces around it are trimmed; then it must be 1 to 100 characters, with no control characters.
- Range
- 1 to 100 characters
- Example
Acme Corp
{ "name": "Acme Corp"}Responses
The new account, on the Free plan, with what Free lets it use.
application/json · Account
idstring (uuid)requiredThe account’s ID.
- Example
3b8e5f2a-91c4-4d6b-a7e0-5c2f8d14b9e6
namestringrequiredThe account’s name.
- Example
Acme Corp
planstringrequirednullableNull until a plan is granted. Without one, API keys can’t read the catalog.
- Example
pilot
plan_statusstringrequiredactive, orpast_dueorcanceled: then the plan grants nothing until it’s active again (entitlementsshows what you get now).- Allowed
active,past_due,canceled- Example
active
entitlementsEntitlementsrequiredWhat your plan lets you use now. Without an active plan (none granted, or
plan_statuspast due or canceled),field_groupsis empty,webhooksis false andhistory_daysandrequests_per_minuteare 0: your API keys can’t read the catalog or events. Limits apply whatever the status; an account over one after a plan change keeps what it has, and gets409 conflictadding more.Fields of entitlements (5)
field_groupsarray of stringrequiredThe catalog field groups your plan covers. Any other group comes back as
{"entitled": false};/v1/availabilityneedsavailability(403 forbiddenotherwise).- Allowed items
lifecycle,specs,pricing,availability,license,benchmarks- Example
["lifecycle","specs","pricing","availability","license","benchmarks"]
webhooksbooleanrequiredWhether you can create webhook endpoints and get deliveries.
- Example
true
history_daysintegerrequirednullableHow many days of change events
/v1/eventsserves, counted fromdetected_at. Null is every event.- Range
- at least 0
- Example
400
requests_per_minuteintegerrequiredHow many requests a minute your account’s API keys may make together, to the catalog and events. Past it,
429 rate_limitedwithRetry-Afteruntil the minute ends. The API-wide throttle applies too.- Range
- at least 0
- Example
600
limitsPlanLimitsrequiredPer-account caps from your plan. At a cap, creating one more is
409 conflict; a cap of 0 means your plan doesn’t include it (403 forbidden).Fields of limits (4)
api_keysintegerrequiredActive (unrevoked) API keys.
- Example
10
webhook_endpointsintegerrequiredWebhook endpoints, enabled or not. Creating one also needs a plan with webhooks.
- Example
10
webhook_subscriptionsintegerrequiredWebhook subscriptions across all your endpoints.
- Example
50
inventory_itemsintegerrequiredItems in your inventory (
/v1/inventory).- Example
500
rolestringrequiredYour role in this account.
- Allowed
owner,member- Example
owner
created_atstring (date-time)requiredWhen the account was created.
- Example
2026-11-26T15:04:05Z
{ "id": "3b8e5f2a-91c4-4d6b-a7e0-5c2f8d14b9e6", "name": "Acme Corp", "plan": "free", "plan_status": "active", "entitlements": { "field_groups": [ "lifecycle", "specs", "availability" ], "webhooks": false, "history_days": 90, "requests_per_minute": 60, "limits": { "api_keys": 1, "webhook_endpoints": 0, "webhook_subscriptions": 0, "inventory_items": 25 } }, "role": "owner", "created_at": "2026-11-26T15:04:05Z"}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"}