Skip to main content

API keys

All API requests require a valid API key passed as the api_key query parameter.
Header-based authentication (Authorization: Bearer) is planned for a future release. During beta, use the api_key query parameter.

Key format

Keys are prefixed with ar_live_ for production and ar_test_ for sandbox/testing.

Getting a key

During private beta, keys are provisioned manually:
  1. Join the waitlist at airrating.io
  2. Once accepted into the beta, you will receive your key via email
  3. You can also request access directly at [email protected]

Validating a key

Check whether a key is active and retrieve its metadata:

Rate limits

When you exceed your monthly limit, the API returns HTTP 429:

Error responses

Security best practices

Never expose your API key in frontend JavaScript, public GitHub repositories, or client-side code.
  • Store keys in environment variables (.env) and never commit them to version control
  • Use a backend proxy to call the AirRating API from your application
  • Rotate your key immediately if you suspect it has been compromised — contact [email protected]