Create an API key
Create an organization API key using an existing API credential, requiring admin=true on API-key callers, current owner/admin membership, and API-console funding eligibility. New keys default to admin=false. Returns the secret once. Expiry and spending limits are selected for the new key independently of the calling key. Responses are no-store.
Authorizations
Org API key as Authorization: Bearer z_sk_...
Body
Request payload for createPublicAPIKey. Examples use placeholder-safe values and do not include real secrets or private prompt content.
Schema for CreateOrgAPIKeyRequest values returned by or accepted by the Nito gateway.
The name field on CreateOrgAPIKeyRequest.
.*\S.*"example"
Opt in to organization administration, including API-key management. Existing and new keys default to false.
true
The expires_in field on CreateOrgAPIKeyRequest.
7d, 30d, 90d, 180d, 365d, never, 10m "7d"
The spend_cap_nanos field on CreateOrgAPIKeyRequest.
^[1-9][0-9]*$"1000000000"
The spend_cap_period field on CreateOrgAPIKeyRequest.
daily, monthly, overall "daily"
Response
OK
Schema for PublicAPIKeyCreateResponse values returned by or accepted by the Nito gateway.
The key field on PublicAPIKeyCreateResponse.

