Skip to main content
POST
List And Create API Keys
Currently disabled.

Request contract

  • Method and path: POST /apis/v1/agentmail/api-keys
  • Availability: disabled
This endpoint is disabled and cannot be called. Its historical request and schema details are retained for reference; pricing is not published.
  • Request URL template: https://api.aisa.one/apis/v1/agentmail/api-keys
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Historical archive: disabled, cannot be called, and no price is published.

Authorizations

Authorization
string
header
required

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

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.