Skip to content
Go To Dashboard

Create a new API key

POST /v1/api-keys

No authentication required.

{
"name": "My Production API Key",
"description": "Used for production integrations",
"type": "live"
}
Terminal window
curl -X POST "https://api.sapiom.ai/v1/api-keys" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"apiKey": null,
"plainKey": "sk_live_ABC123def456GHI789jkl012MNO345pqr678STU901vwx234YZA567bcd890"
}
StatusCodeDescription
400-Invalid request data
401-Unauthorized - invalid or missing JWT token
403-Forbidden - insufficient permissions

See Error Codes for full reference.