ApiKey
object type
An ApiKey — the third-party / programmatic access credential. Issued only by an org-group-level owner (the platform's live ownership gate — the minting actor is a User whose Account holds group ownership); parent = the minting User. Reach derives live from the minter's current ownerships — the key works on exactly the group's orgs where the minter is also currently an org owner; ownership loss/re-grant is never a transition (re-grant revives a not-doomed key). Descriptors ride the Roles grammar (allow/disallow, default-deny, disallow-wins), immutable at birth; mandatory expiry ≤ 12 months (the scheduler fires active → expired — a distinct doomed terminal). The secret shows once at mintApiKey, hash-only at rest, and is presented only to exchangeApiKey → a 24 h-absolute no-idle API session. NOT searchable; the reads are gated.
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like AK-… — stable for the record’s life. |
type | String String! | The kind of record — always ApiKey here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of active, expired or doomed. |
parentId | ID ID! | The parent = the minting User; rootId = the org group; parentId!== rootId always. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
descriptors | RoleDescriptor [RoleDescriptor!]! | The allow/disallow descriptor set — set at minting, immutable. |
expiresAt | String String! | The mandatory expiry instant; the scheduler fires active → expired at this date. |