> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replyify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create API Key

> Generate a new API key for the workspace

Creates a new API key. The full key value is **only returned once** at creation time — store it securely.

## Body Parameters

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

## Response

<ResponseField name="id" type="string">Unique key identifier</ResponseField>
<ResponseField name="name" type="string">Display name</ResponseField>
<ResponseField name="key" type="string">The full API key value (only shown once)</ResponseField>
<ResponseField name="created_at" type="string">When the key was created</ResponseField>

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://app.replyify.ai/api/api-keys" \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{ "name": "Production Key" }'
  ```

  ```javascript Node.js theme={null}
  const response = await fetch("https://app.replyify.ai/api/api-keys", {
    method: "POST",
    headers: {
      Authorization: "Bearer YOUR_API_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ name: "Production Key" }),
  });
  const { key } = await response.json();
  // Store `key` securely — it won't be shown again
  ```
</CodeGroup>

### Example Response

```json theme={null}
{
  "id": "uuid",
  "name": "Production Key",
  "key": "rfy_a1b2c3d4e5f6...",
  "created_at": "2025-01-27T12:00:00Z"
}
```

<Warning>
  The full API key is only returned once at creation time. Store it securely — it cannot be retrieved again.
</Warning>
