List API keys
const url = 'https://example.com/api/v1/api-keys';const options = { method: 'GET', headers: {cookie: 'bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3E'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/api-keys \ --cookie bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3EKeys for the management API and the gateway keys of apps; never the keys themselves, only their last four characters.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK.
A page of a list. next_cursor is null on the last page.
object
A key for the management API or the gateway.
object
Its last four characters, to recognise it; none for keys from before.
The app the key belongs to (decisions #73); none for the management API.
The key itself: only in the answer that creates it.
Pass as cursor for the next page.
Example generated
{ "items": [ { "id": "example", "name": "example", "scopes": [ "example" ], "created_at": "2026-04-15T12:00:00Z", "last_used_at": "2026-04-15T12:00:00Z", "last4": "example", "app_id": "example", "key": "example" } ], "next_cursor": "example"}No valid session, DPoP-bound token or API key.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}