Authentication

Secure your API requests with API key authentication

API Key Authentication

All API requests require authentication using your API key. You can find your API key in your dashboard under Settings → Account.

Authorization: Bearer YOUR_API_KEY

Security Best Practices

  • Never expose your API key in client-side code
  • Use environment variables to store your API key
  • Rotate your API key regularly
  • Use HTTPS for all API requests
  • Monitor your API usage in the dashboard

Example Request

curl https://aiworkers.vip/api/v1/chat \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Hello",
    "sessionId": "unique-session-id"
  }'

⚠️ Important

Your API key provides full access to your account. Keep it secure and never share it publicly. If you suspect your key has been compromised, regenerate it immediately from your dashboard.