Documentation Index
Fetch the complete documentation index at: https://docs.airrating.io/llms.txt
Use this file to discover all available pages before exploring further.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/keys/validate | Check if a key is active and retrieve its metadata |
GET | /api/keys/usage | Get monthly usage history for a key |
GET | /api/keys/create | Create a new API key (admin only) |
Validate a key
Check whether an API key is valid and retrieve its metadata.Request
The API key to validate.
Response
true if the key is active, false otherwise.The first 14 characters of the key (safe to display/log).
Label assigned to the key when it was created.
Maximum number of API calls per calendar month.
Number of calls made in the current calendar month.
Total API calls made with this key across all time.
ISO 8601 timestamp of when the key was created.
Example
Get usage history
Returns current-month usage and up to 24 months of historical usage for your key.Request
Your API key.
Filter history to a specific year (optional).
Filter history to a specific month, 1–12 (optional).
Response
Key prefix identifier.
Key label.
Usage for the current calendar month.
Past months, up to 24 entries, most recent first.
Cumulative total calls across all months.
Example
Create a key
Creates a new API key and stores it in the database.Request
A label for the key (e.g. company name or integration name).
Contact email associated with the key.
Maximum API calls per calendar month.
Response
The newly created API key. Store this immediately — it cannot be retrieved again.
The first 14 characters (safe reference).
Monthly request limit.
Reminder to save the key.
