Create a builder API key
Mint a key acting as you, the builder, in one named organisation, narrowed to chosen scopes.
POST/v1/keys
Requires a signed-in browser; keys and connected agents cannot mint keys. Expires in 90 days unless otherwise specified; expiresInDays: null means it lives until revoked. Returned once and never stored in clear. For CI and CLI use without a browser.
Any valid credential for this API: no scope is needed. Operation keys.create. Not an MCP tool. Minting a credential from a credential is how one leaked token becomes a permanent one. Keys are made by a person in a signed-in browser, never by a connected agent. CLI: grid82 keys create (npx grid82).
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | no | Any unique string. Sending the same key with the same request again returns the first response (marked Idempotency-Replayed: true) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
organizationId | string | yes | |
name | string | yes | Up to 60 characters. |
scopes | string[] | yes | |
expiresInDays | integer or null | no |
Response
Success
dataobjectrequiredRefused
errorobjectrequired