Skip to main content
POST
/
api-keys
curl -X POST https://api.rigbox.dev/api/api-keys \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Production Bot"}'
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "key": "rb_live_abc123def456..."
}

Create API Key

Creates a new API key. The full key is only returned once — store it securely.

Request Body

name
string
Optional name for the key (e.g., “Production”)
curl -X POST https://api.rigbox.dev/api/api-keys \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Production Bot"}'
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "key": "rb_live_abc123def456..."
}
The full API key (key field) is shown only once. Store it in a secure location immediately.