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

# Create API Key

> Create a company-scoped API key

Create a new company-scoped API key. The plain key is returned only once, in this response.

## Request

<ParamField body="name" type="string">
  Human-readable key name. If omitted, Sequenzy creates a default integration name.
</ParamField>

```bash theme={null}
curl -X POST "https://api.sequenzy.com/api/v1/api-keys" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Production app"}'
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "apiKey": {
      "id": "key_abc123",
      "name": "Production app",
      "key": "seq_live_...",
      "prefix": "seq_live_abcd",
      "createdAt": "2026-05-01T10:30:00Z"
    },
    "message": "API key created successfully. Save this key securely - it cannot be retrieved later.",
    "instructions": {
      "envVariable": "SEQUENZY_API_KEY",
      "example": "SEQUENZY_API_KEY=seq_live_...",
      "note": "Add this to your .env file for the integration to work."
    }
  }
  ```

  ```json 401 theme={null}
  {
    "success": false,
    "error": "Unauthorized"
  }
  ```

  ```json 500 theme={null}
  {
    "success": false,
    "error": "Failed to create API key"
  }
  ```
</ResponseExample>
