Skip to main content
POST
Create API key

Headers

Authorization
string
default:NONE
required

Bearer JWT for user-facing flows (Bearer eyJraWQ...), or the literal string NONE when authenticating via API key.

Example:

"Bearer eyJraWQ..."

X-Api-Key
string
default:NONE
required

API key for server-to-server flows, or the literal string NONE when authenticating via JWT.

Example:

"pcx_abc123_xxxx"

Body

application/json
name
string
required

Human-readable label for this key (e.g. "Production Integration").

Example:

"Production Integration"

status
enum<string>
Available options:
active,
inactive,
revoked
Example:

"active"

Response

API key created

status
enum<string>
Available options:
success,
error
Example:

"success"

message
string
data
object