Retrieve an API key
/v1/orgs/{id}/keys/{keyId}Read key metadata as its creator or an organization administrator. The secret and secret hash are never returned.
Authentication
Use your signed-in console session or a person's WorkOS access token for this setup operation. See authentication and permissions.
Request
Responses
API key resource.
idstringalways presentPublic credential identity used in administration routes. It is not the authentication secret.
Min length: 1
labelstringalways presentHuman-readable credential name.
createdByUserIdstringalways presentPerson who issued the credential.
createdAtstringalways presentRecorded credential creation time.
scopestringconditionalScope metadata, when present.
workspaceIdsarrayconditionalAssigned Workspaces. An empty array permits one-shot Consolidate only.
Show item fields
workspaceIdstringconditionalLegacy single-Workspace assignment, when applicable.
connectorIdstringconditionalLegacy Connector-backed credential reference, when applicable.
lastActiveAtstringconditionalLast recorded authentication activity, when available.
revokedAtstringconditionalRecorded revocation time, when revoked.