> ## Documentation Index
> Fetch the complete documentation index at: https://60db.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create API Key

> Create a new API key

## Request

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token with your API key
</ParamField>

<ParamField header="Content-Type" type="string" required>
  application/json
</ParamField>

### Body

<ParamField body="name" type="string" required>
  Name for the API key
</ParamField>

## Response

<ResponseField name="id" type="string">
  API key ID
</ResponseField>

<ResponseField name="name" type="string">
  API key name
</ResponseField>

<ResponseField name="key" type="string">
  The actual API key (only shown once)
</ResponseField>

<ResponseField name="created_at" type="string">
  Creation timestamp
</ResponseField>

<Warning>The API key is only shown once. Store it securely!</Warning>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.60db.ai/developer/api \
    -H "Authorization: Bearer your-api-key" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Production Key"
    }'
  ```

  ```javascript JavaScript theme={null}
  const newKey = await client.createApiKey("Production Key");
  console.log("New API key:", newKey.key);
  ```

  ```python Python theme={null}
  new_key = client.create_api_key('Production Key')
  print(f"New API key: {new_key['key']}")
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "key-456",
    "name": "Production Key",
    "key": "sk_live_1234567890abcdefghijklmnopqrstuvwxyz",
    "created_at": "2026-01-29T11:35:00Z"
  }
  ```
</ResponseExample>
