- accessstring | null
full (the default) | run (sandboxes, runs and builds, whose runs can use the project's stored secrets; no changes to secrets, keys or billing) | read (reads everything in the project, file contents and command output included; changes nothing).- expires_atstring | null
- A date (
2027-01-31) or a UTC time ending in Z. - expires_in_daysinteger | null
- 1–3650.
- namestring | null
- Default
cli, at most 64 characters.
- accessstring
- What the key may do:
full, run (sandboxes, runs and builds, whose runs can use the project's stored secrets; no changes to secrets, keys or billing) or read (reads everything in the project, file contents and command output included; changes nothing). - also_revokedstring[] | null
- Only on the answer to
DELETE /v1/keys/{key_id}: the key ids this revocation also revoked, because the key had minted them (directly or further down). Absent when the key replaced itself (?reason=replaced), which revokes nothing it minted. - api_keystring | null
- **The secret, and the only time it is ever sent.** Only on the 201 from
POST /v1/keys; it cannot be retrieved afterwards. - created_atrequiredstring
- RFC 3339.
- created_bystring | null
- The user who minted it;
null for a key minted by another key. - currentboolean | null
- True for the key this request was made with. Absent from the answer that mints a key, which is not yet the key you are calling with.
- expires_atstring | null
- RFC 3339: when the key stops working, as chosen when it was created.
null = it does not expire (the default). An expired key answers key_expired. - key_idrequiredstring
- last_used_atstring | null
- RFC 3339;
null for a key that has never been used. - minted_bystring | null
- The key that minted this one;
null for a key minted by a sign-in. Revoking a key revokes every key it minted, and every key those minted. - namerequiredstring
- networksKeyNetwork[] | null
- The networks the key was used from, most recent first (at most 20): each an IPv4
/24 or an IPv6 /64, never a full address, with when it was first and last seen there. On the key list; absent elsewhere. - prefixrequiredstring
- The first few characters, enough to recognise a key without holding it.
- revokedboolean | null
- Only on the answer to
DELETE /v1/keys/{key_id}. - revoked_atstring | null
- RFC 3339;
null while the key still works.