OpenAgents
BETA
OpenAgents
BETA
Get Started

Authentication

Generate an API key to authenticate your requests to the OpenAgents API.

Getting Your API Key

To use the OpenAgents API, you'll need to obtain an API key. You can generate your API key through the OpenAgents dashboard:

  1. Log in to your OpenAgents account
  2. Navigate to Settings > API Keys
  3. Click "Generate New API Key"
  4. Copy your API key and store it securely

Important: Keep your API key secure and never share it publicly. If your key is compromised, you can revoke it and generate a new one at any time.

Using Your API Key

Include your API key in the Authorization header of all API requests:

bash
curl -X POST https://openagents.com/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_OPENAGENTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "Hello"}]}'