Skip to main content

List API Keys

GET/v1/api-keysTry it
View request and response examples ↓

Returns API Key metadata for the organization of the authenticated API Key. Requires an API Key with the OrganizationAdmin role.

API Keys from other organizations are never returned. The response never contains a plaintext API Key or its stored hash.

Authorization

X-API-Keystring · headerrequired

API key for /v1 requests.

Response

API Keys returned successfully.

application/json
successbooleanrequired

Indicates whether the request succeeded.

Exampletrue
requestIdstringrequired

Request ID returned by the server for tracing.

Examplereq-20260402-001
dataobject[]required

API Key metadata items for the authenticated organization.

Item fields
keyIdstringrequired

Stable API Key identifier.

Examplekey_0123456789ABCDEF
namestringrequired

API Key display name.

Exampledeployment-automation

API Key description, when set.

ExampleAPI Key used by the deployment automation service.
statusintegerrequired

API Key status: 1 active, 2 disabled, or 3 expired.

Allowed values123
Example1

Reason supplied when the API Key was disabled, when present.

ExampleRotation in progress.
rolesstring[]required

Built-in or custom role IDs assigned to the API Key.

Example["organizationadmin"]
allowIpsstring[]required

Source IP allowlist enforced during API Key authentication. Empty when no allowlist is configured, which allows any source IP address.

Example["203.0.113.10","2001:db8:100::/64"]
createdBystring

ID of the API Key that created this API Key, when available.

Examplekey_ABCDEF0123456789
createdAtstring · date-timerequired

Creation time in ISO 8601 format.

Example2026-04-21T08:30:00Z
updatedAtstring · date-timerequired

Last update time in ISO 8601 format.

Example2026-04-21T08:30:00Z
lastUsedAtstring · date-time

Most recent successful authentication time in ISO 8601 format, when available.

Example2026-04-22T08:30:00Z

Source IP address used for the most recent successful authentication, when available.

Example203.0.113.10
expiresAtstring · date-time

Expiration time in ISO 8601 format, when configured.

Example2027-04-21T08:30:00Z

Enter to send · Shift+Enter for a new line