🔐

Authentication

Secure your API requests with authentication tokens

POST/api/auth/token

Generate API Token

Generate a new API token for accessing the AI Agents API.

Parameters

NameTypeRequiredDescription
client_idstringRequiredYour API client ID
client_secretstringRequiredYour API client secret

Example Request

curl -X POST https://api.aiagents.com/auth/token \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "your_client_id",
    "client_secret": "your_client_secret"
  }'

Example Response

{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "token_type": "Bearer",
  "expires_in": 3600
}