Skip to main content
POST
/
v1
/
keys
Create API key
curl --request POST \
  --url https://api.nixflex.com/v1/keys

Documentation Index

Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt

Use this file to discover all available pages before exploring further.

Creates a new API key for your account. Returns both key_id and key_secret — save the secret immediately, it cannot be retrieved later.
This endpoint is the only one that doesn’t require authentication, because you might be calling it during signup. In practice most developers create keys via the dashboard.

Request

curl -X POST https://api.nixflex.com/v1/keys \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Fahim Mirza",
    "email": "fahim@example.com"
  }'

Body parameters

FieldTypeRequiredNotes
namestringNoAccount holder name
emailstringNoAccount email for billing / alerts

Response

201 Created:
{
  "message": "API key created. Save your key_secret — it will not be shown again.",
  "key_id": "nxf_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
  "key_secret": "nxfs_x1y2z3..."
}

Important

key_secret is shown once. If you lose it, you must create a new key.
  • Store it in a secrets manager immediately
  • Never commit it to source control
  • Never include it in client-side JavaScript

Rate limit

This endpoint is rate-limited to 10 requests per hour per IP to prevent abuse.

Using the key

Format the Authorization header for subsequent requests:
Authorization: Bearer nxf_a1b2c3...:nxfs_x1y2z3...
See Authentication for details.