Skip to main content

OrgApiKeyResponse

@gravity-rail/sdk


@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?​

optional appId: number | null


createdAt​

createdAt: string


dataUseMode?​

optional dataUseMode: DataUseMode


enabled​

enabled: boolean


expiresAt?​

optional expiresAt: string | null


id​

id: number


keyPrefix​

keyPrefix: string


lastUsedAt?​

optional lastUsedAt: string | null


name​

name: string


scopes​

scopes: string[]


uuid​

uuid: string


workspaceScope​

workspaceScope: OrgWorkspaceScopeResponse