Partner Accounts (v2)
Create API Key
Mint a scoped API key for a child account. The plaintext key is returned exactly once.
POST
Mints a new API key for a child. Use your parent key with
accounts.write. The child then authenticates its own requests with the returned key.
Path Parameters
integer
required
The child account’s
accountId.Body Parameters
string
required
A label for the key (e.g.
prod, staging). Max 255 characters.array
default:["api.full"]
A list of
resource.action permission strings. The requested set must be a subset of the calling parent key’s own permissions. Sensitive resources (admin, system, billing, account, accounts, users, keys, api_keys, internal, root, super) and the wildcard * can never be granted.Partner-minted keys are live keys. To get a sandbox key, create one from the dashboard (see Sandbox & Testing).
Response Fields
object
The created key. Includes
id, accountId, name, key (plaintext, once), keyPrefix, status, permissions, resourceConstraints, expiresAt, allowedIps, rateLimitOverride, sandbox, createdAt, and lastUsedAt.string
A reminder to store the plaintext key now.
Examples
Error Codes
Also
403 not_a_parent_account / insufficient_scope / sandbox_read_only.