Skip to main content
POST
Create API Key

Body

application/json
name
string
required

Name of the API key

Minimum string length: 1
Example:

"My API Key"

permissions
string[]
required

List of permissions for the API key

Minimum array length: 1
Example:
allowed_ips
string[]

OPTIONAL: List of allowed IP addresses or CIDR ranges. If no IPs are provided, the API key can be used from any IP address.

Example:
expires_at
string<date-time> | null

Date and time when the API key should expire. If not provided, the API key will never expire.

Example:

"2023-01-01T00:00:00Z"

Response

API key created successfully

created_at
string<date-time> | null
required
is_revoked
boolean
required
name
string
required
object
enum<string>
required
Available options:
api_key
permissions
string[]
required
public_key
string
required
updated_at
string<date-time> | null
required
secret_key
string
required
_id
string | null
account
string | null
account_uuid
string | null
allowed_ips
string[]

OPTIONAL: List of allowed IP addresses or CIDR ranges. If no IPs are provided, the API key can be used from any IP address.

Example:
deleted_at
string<date-time> | null
expires_at
string<date-time> | null
last_used_at
string<date-time> | null
uuid
string | null