Skip to main content
POST
List And Create Inbox API Keys

Request contract

Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.012
  • Cost contract: explicit_zero
  • Settlement evidence source: request_snapshot

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

inbox_id
string
required

The ID of the inbox.

Body

application/json

expires_at must be in the future and is immutable once the key exists. Omitted, the new key inherits the authenticating key's expiry, and never expires only when that key never does. A key cannot create one that outlives it: an expires_at later than the authenticating key's own returns 403.

expires_at
string<date-time>

Time at which api key expires. Omitted when it does not expire.

name
string

Name of api key.

permissions
ApiKeyPermissions · object

Granular permissions for the API key. When ommitted all permissions are granted. Otherwise, only permissions set to true are granted.

Response

Response with status 200

The secret-bearing bearer key, or the registered public key without any secret.

api_key
string
required

API key.

api_key_id
string
required

ID of api key.

created_at
string<date-time>
required

Time at which api key was created.

name
string
required

Name of api key.

prefix
string
required

Prefix of api key.

expires_at
string<date-time>

Time at which api key expires. Omitted when it does not expire.

inbox_id
string

Inbox ID the api key is scoped to. If set, the key can only access resources within this inbox.

permissions
ApiKeyPermissions · object

Granular permissions for the API key. When ommitted all permissions are granted. Otherwise, only permissions set to true are granted.

pod_id
string

Pod ID the api key is scoped to. If set, the key can only access resources within this pod.