Create Api Key
POST /api-keys
Mint a new API key for the caller’s own org. The token is returned exactly once.
Authorizations
Parameters
Header Parameters
Request Body required
Request to mint a new organization API key.
extra="forbid" so a caller sending org_id, is_agency or
is_ops gets an explicit 422 instead of the field being silently
dropped — it is a stronger, more debuggable signal that those fields do
not exist on this door.
object
Key mode. A ‘test’ key is returned with a g8_test_ prefix; a ‘live’ key carries g8_live_; a ‘sandbox’ key carries g8_sbx_ and only authenticates against the graph8 developer sandbox. A key minted by a ‘test’-mode credential is always forced to ‘test’ regardless of this field — a test key may not mint itself a live successor.
Human-readable name for the key
Responses
201
Successful Response
object
Response after minting a key.
api_key_token is returned exactly once, here, at creation. No other
endpoint on this router — or the app’s — ever returns it again.
object
422
Validation Error