Skip to main content
POST
Create an API key and reveal its token once
See the guide for authentication, examples, and usage rules.

Authorizations

Authorization
string
header
required

Org API key as Authorization: Bearer z_sk_...

Body

application/json

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.

name
string
required

The name field on CreateOrgAPIKeyRequest.

Pattern: .*\S.*
Example:

"example"

admin
boolean
default:false

Opt in to organization administration, including API-key management. Existing and new keys default to false.

Example:

true

expires_in

The expires_in field on CreateOrgAPIKeyRequest.

Available options:
7d,
30d,
90d,
180d,
365d,
never,
10m
Example:

"7d"

spend_cap_nanos
string

The spend_cap_nanos field on CreateOrgAPIKeyRequest.

Pattern: ^[1-9][0-9]*$
Example:

"1000000000"

spend_cap_period
enum<string>

The spend_cap_period field on CreateOrgAPIKeyRequest.

Available options:
daily,
monthly,
overall
Example:

"daily"

Response

OK

Schema for PublicAPIKeyCreateResponse values returned by or accepted by the Nito gateway.

key
object
required

The key field on PublicAPIKeyCreateResponse.

Example: