OrgApiKeyResponse
@gravity-rail/sdk / OrgApiKeyResponse
Interface: OrgApiKeyResponse
An organization-bound key, with its workspace scope (ADR-55).
workspaceScope is the same shape organization webhook endpoints and
org Agents return. Its mode is read from the key's stored
all_workspaces bit and its selection rows, never from the request that
minted it: a limited key whose selected workspaces were all deleted reaches
nothing, and reads as none.
Properties
appId?
optionalappId:number|null
createdAt
createdAt:
string
dataUseMode?
optionaldataUseMode:DataUseMode
enabled
enabled:
boolean
expiresAt?
optionalexpiresAt:string|null
id
id:
number
keyPrefix
keyPrefix:
string
lastUsedAt?
optionallastUsedAt:string|null
name
name:
string
scopes
scopes:
string[]
uuid
uuid:
string
workspaceScope
workspaceScope:
OrgWorkspaceScopeResponse