Skip to main content
GET
Get an API key

Authorizations

Authorization
string
header
required

Monid API key

Scopes

api_keys:read

Path Parameters

label
string
required

Label of the API key.

Minimum string length: 1
Example:

"ci-runner"

Response

The API key (metadata only)

label
string
required

Human-readable label. Unique per workspace.

Example:

"ci-runner"

keyPrefix
string
required

The start of the key, monid_live_ in production. These responses never include the rest of the key.

Example:

"monid_live_"

owner
string
required

The user the key belongs to. A key created by another key belongs to the same user.

createdBy
string
required

Who created the key.

Example:

"USER#user_2abc"

scopes
enum<string>[]
required

The scopes the key holds, fixed at creation. See GET /v1/api-keys/scopes for every scope.

Minimum array length: 1
Available options:
*,
runs:*,
resources:*,
wallet:*,
topups:*,
controls:*,
api_keys:*,
webhooks:*,
usage:*,
runs:create,
runs:get,
runs:list,
runs:update,
resources:read,
resources:create,
resources:update,
resources:delete,
wallet:read,
wallet:update,
topups:create,
controls:read,
controls:create,
controls:update,
controls:delete,
api_keys:read,
api_keys:create,
api_keys:update,
api_keys:revoke,
webhooks:read,
usage:read
Example:
status
enum<string>
required

ACTIVE, EXPIRED or REVOKED. Only active keys work.

Available options:
ACTIVE,
EXPIRED,
REVOKED
origin
enum<string>
required

How the key was created, such as DASHBOARD or API.

Available options:
DASHBOARD,
API,
AEP,
SYSTEM
createdAt
string<date-time>
required

Creation time (ISO 8601).

expiresAt
string<date-time>

When the key stops working, in ISO 8601. Absent when the key never expires.

revokedAt
string<date-time>

When the key was revoked. Present only on revoked keys.

revokedBy
string

Who revoked the key. Present only on revoked keys.

Example:

"USER#user_2abc"

lastUsedAt
string<date-time>

Last time the key authenticated a request. Absent if never used.