Skip to main content
POST
Create a new API key

Authorizations

Authorization
string
header
required

Send your access token as header Authorization: Bearer {accessToken}

Body

application/json

Request body for creating a new API key

label
string
required

Human-readable label for the API key

Maximum string length: 255
description
string

Human-readable description for the API key

scopes
enum<string>[]

List of scopes this API key has access to

Available options:
invoices.create,
invoices.update,
invoices.read,
payments.create,
payments.update,
payments.read,
products.create,
products.read,
products.update,
products.delete,
api_keys.create,
api_keys.update,
api_keys.delete,
api_keys.read,
webhooks.create,
webhooks.read,
webhooks.update,
webhooks.delete,
webhooks_queue.read,
webhooks_queue.update,
notifications.read,
notifications.update,
notifications_settings.read,
notifications_settings.update,
organizations.create,
organizations.read,
organizations.update,
organizations.deactivate,
users.update,
users.deactivate,
users.sessions.read,
users.sessions.deactivate
ip_allow_list
string[]

List of IP addresses allowed to use this API key

expires_at
string<mysql-date-time> | null

Timestamp when the API key expires

Example:

"2025-06-29 16:03:44"

Response

Successful API key creation response

status
enum<integer>
required

Status code of the response

Available options:
200,
201,
202
data
object
required

Response data containing the requested object

Example:
message
string | null
required

Message of the response, human readable

Example:

"Resource created successfully"

env
enum<string>
required

API environment

Available options:
development,
production
error
string | null

Error message of the response, human readable

Example:

"Invalid email address"

log

Useful informaiton, not always present, to debug the response

Examples:

"Some pertinent log message"

validator
object | null

Validator response object, each key is the field name and value is the error message

Example:
support_id
string<uuid> | null

Support ID linked to the response, used to identify it when talking with our team

Example:

"support_uuidv7-something-else"