Skip to main content
GET
Read one API key's metadata.

Authorizations

Authorization
string
header
required

A person's session: Authorization: Bearer <ID token>, the ID token the Sendblue sign-in issues. The person acts in their company's root account with the role of their seat.

Path Parameters

key_id
string
required

Response

The key.

id
string
required
name
string
required
permissions
enum<string>[]
required

Effective permission names in lexical order. Grants are immutable after issuance.

Available options:
accounts:create,
billing:history,
billing:read,
billing:refill,
billing:top_up,
brands:read,
brands:write,
calls:create,
calls:read,
calls:write,
campaigns:read,
campaigns:write,
company_settings:read,
contacts:read,
contacts:write,
keys:manage,
me:read,
media:read,
media:write,
messages:read,
messages:send,
messages:write,
number_orders:cancel,
number_orders:create,
number_orders:read,
numbers:purchase,
numbers:read,
numbers:release,
numbers:write,
operations:read,
prices:read,
recordings:read,
recordings:write,
settings:read,
settings:write,
subaccounts:manage,
tags:read,
tags:write,
team:manage,
team:read,
variables:read,
variables:write,
webhooks:manage,
webhooks:receive,
workflows:read,
workflows:write
role
enum<string> | null
required

The named preset when issued without narrowing, or null for a custom scope.

Available options:
standard,
read_only,
messaging,
billing_read
created_by
string | null
required

Creator's credential or user identifier, null when never recorded.

expires_at
string<date-time> | null
required
last_used_at
string<date-time> | null
required
created_at
string<date-time>
required

RFC 3339, UTC.

updated_at
string<date-time>
required

RFC 3339, UTC.