Skip to main content
GET
Read one of your keys
Takes a managing key (oc_key_...) or a signed-in session. See the API overview for the kinds of credential. One of your own live keys. Never the key itself.
Availability: OneCLI Cloud and self-hosted.

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Path Parameters

id
string
required
Required string length: 1 - 64

Response

The key.

createdAt
string
required

ISO 8601.

createdVia
enum<string>
required
Available options:
dashboard,
api,
cli_login,
migrated
expiresAt
string | null
required

ISO 8601. null: no expiry.

id
string
required
lastUsedAt
string | null
required

ISO 8601, to the minute. null: never used.

name
string
required
permissions
enum<string>[]
required

manage: every call a signed-in person can make, except answering an approval. approve: answering an approval only.

Available options:
manage,
approve