Generate an API key to authenticate your requests to the OpenAgents API.
To use the OpenAgents API, you'll need to obtain an API key. You can generate your API key through the OpenAgents dashboard:
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.
Include your API key in the Authorization header of all API requests:
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"}]}'