Authentication

Authentication

Authenticate EasyAPI requests with a Bearer token in the Authorization header: header format, API key security best practices and 401 / 403 error responses.

Every API request must include a Bearer token in the Authorization header.

Header format

Authorization: Bearer YOUR_API_KEY

Security recommendations

  1. Never hard-code API keys in client apps (browsers, mobile apps)
  2. Use separate tokens for each environment (development / staging / production)
  3. Rotate keys regularly and revoke leaked tokens in the console

Error responses

HTTP statusError codeDescription
401invalid_api_keyMissing or invalid API key
403forbiddenThe token is not allowed to access this resource

See Error Codes and Status Codes for details.