List API keys
GET/v1/api-keysPortal sign-in
Your account’s keys, newest first, including revoked ones. The secret is never shown again.
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
| Parameter | Type | Description |
|---|---|---|
limitquery | integer | How many items a page holds, 1 to 200. Outside that range is
|
cursorquery | string | The
|
Responses
A page of your account’s keys, newest first.
application/json · ApiKeyList
next_cursorstringrequirednullablePass as
cursorfor the next page. Null on the last page.- Example
null
dataarray of ApiKeyrequiredThe page’s keys, newest first, revoked ones included.
Fields of each item in data (6)
idstring (uuid)requiredThe key’s ID, to get or revoke it.
- Example
6f1c2a9e-4b7d-4e3a-9c51-2d8f0b7e3a14
namestringrequiredThe name you gave it.
- Example
Production
prefixstringrequiredThe key’s public part, to tell keys apart: the 8 characters after
ma_live_(orma_test_for a test key).- Example
p4ppuj7y
created_atstring (date-time)requiredWhen the key was created.
- Example
2026-11-26T15:10:00Z
last_used_atstring (date-time)requirednullableUpdated at most once a minute.
- Example
2026-11-28T09:41:00Z
revoked_atstring (date-time)requirednullableWhen the key was revoked. Null while it works.
- Example
null
{ "data": [ { "id": "6f1c2a9e-4b7d-4e3a-9c51-2d8f0b7e3a14", "name": "Production", "prefix": "p4ppuj7y", "created_at": "2026-11-26T15:10:00Z", "last_used_at": "2026-11-28T09:41:00Z", "revoked_at": null }, { "id": "0d3b7e91-5a2c-4f86-b1e4-8c6a2f9d7e35", "name": "Staging", "prefix": "r2eo2cb2", "created_at": "2026-11-26T15:08:12Z", "last_used_at": null, "revoked_at": "2026-11-26T15:09:30Z" } ], "next_cursor": null}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
{ "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "limit must be between 1 and 200.", "code": "invalid_parameter"}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.
429 Too Many Requests. Over the stage’s request throttle. API Gateway answers before the API does, so this body isn’t a Problem. Wait, then retry with backoff.