Get your subscription
GET/v1/subscriptionPortal sign-in
Planned: returns 501 until it’s built. Your plan and its status are on GET /v1/account today.
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.
Responses
Your subscription.
application/json · Subscription
planstringYour plan’s name.
- Example
pilot
statusstringThe subscription’s status.
- Example
active
{ "plan": "pilot", "status": "active"}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.
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"}501 Not Implemented, code: not_implemented. Planned: the endpoint isn’t built yet.
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
{ "type": "about:blank", "title": "Not Implemented", "status": 501, "detail": "This endpoint is planned but not built yet.", "code": "not_implemented"}