> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.flockx.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.flockx.io/_mcp/server.

# Authentication

All API endpoints require authentication using an API key. The API key should be included in the `Authorization` header of each request using the following format:

```bash
Authorization: Token your-api-key
```

## Getting Your API Key

1. Log in to your Flockx account at [flockx.io](https://flockx.io)
2. Navigate to [API Keys](https://flockx.io/workbench/api-keys)
3. Generate a new API key or copy an existing one

## Example Request

```bash
curl -X GET "https://api.flockx.io/v1/agents" \
  -H "Authorization: Token your-api-key-here"
```

## Security Best Practices

* Keep your API key secure and never share it publicly
* Rotate your API keys periodically
* Use different API keys for development and production environments
* Never commit API keys to version control