API keys
All API requests require a valid API key passed as theapi_key query parameter.
Header-based authentication (
Authorization: Bearer) is planned for a future release. During beta, use the api_key query parameter.Key format
ar_live_ for production and ar_test_ for sandbox/testing.
Getting a key
During private beta, keys are provisioned manually:- Join the waitlist at airrating.io
- Once accepted into the beta, you will receive your key via email
- 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
- 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]
