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

# Authentication

> Authenticate Agent API requests with an API key.

# Authentication

All Agent API requests require an API key.

```http theme={"system"}
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
```

Use the same header for submit, task status, result, and file endpoints.

## API-key limits

API-key controls apply identically to REST, MCP, and CLI requests. A key may have:

* an IP allowlist;
* requests-per-minute limits;
* hourly or daily credit limits.

These controls are independent of the account's available credits. A request can therefore be rejected even when the account has sufficient balance.

## Unauthorized Response

```json theme={"system"}
{
  "code": 401,
  "error": {
    "message": "Invalid or missing API key",
    "type": "unauthorized"
  }
}
```

An IP allowlist rejection returns `403`. Rate or credit-window limits return `429`; see [Errors](https://docs.socq.ai/api-manual/agent-api/errors.md) for retry guidance.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.