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:

$Authorization: Token your-api-key

Getting Your API Key

  1. Log in to your Flockx account at agents.flockx.io
  2. Navigate to API Keys
  3. Generate a new API key or copy an existing one

Example Request

$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