Skip to content

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

Get an API key

GET/v1/api-keys/{id}Portal sign-in

404 not_found for a key that isn’t your account’s.

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

ParameterTypeDescription
id
pathrequired
string

The ID the resource was listed or created with: a ULID for events and deliveries, a UUID for API keys, webhook endpoints and webhook subscriptions. An unknown or malformed ID, or another account’s, is 404 not_found.

Examples
01M855W468XZ5JFHKQ38DQSXW1 An event or delivery ID (a ULID)
6f1c2a9e-4b7d-4e3a-9c51-2d8f0b7e3a14 An API key, webhook endpoint or webhook subscription ID (a UUID)

Responses

The key, without its secret.

application/json · ApiKey

  • idstring (uuid)required

    The key’s ID, to get or revoke it.

    Example
    6f1c2a9e-4b7d-4e3a-9c51-2d8f0b7e3a14
  • namestringrequired

    The name you gave it.

    Example
    Production
  • prefixstringrequired

    The key’s public part, to tell keys apart: the 8 characters after ma_live_ (or ma_test_ for a test key).

    Example
    p4ppuj7y
  • created_atstring (date-time)required

    When the key was created.

    Example
    2026-11-26T15:10:00Z
  • last_used_atstring (date-time)requirednullable

    Updated at most once a minute.

    Example
    2026-11-28T09:41:00Z
  • revoked_atstring (date-time)requirednullable

    When the key was revoked. Null while it works.

    Example
    null
200 example
{
"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
}