Team Management
Get API key usage
Retrieve usage analytics and billing data for a specific API key.
Get your Exa API key
Create a key in the dashboard. New accounts start with free credits.
The Team Management API is enabled per team. It authenticates with a service account API key, which is created from the Service keys tab on the API keys page once the feature is enabled for your team. Contact support@exa.ai to request access.
Important Notes
- Lookback Limit: A
start_dateolder than 180 days returns400. - Zero Usage: If the API key has no usage in the requested period,
total_cost_usdwill be 0 andcost_breakdownmay be empty. - Team Ownership: The service API key used for authentication must belong to the same team as the requested API key. Cross-team access is not permitted.
- Date Formats: Dates can be provided in ISO 8601 format with or without time components (e.g.,
2025-01-01or2025-01-01T00:00:00Z).
Authorizations
Service API key for team authentication
Path Parameters
The unique identifier of the API key.
Query Parameters
Start date for the usage period (ISO 8601 format). Defaults to 30 days ago. Must be within the last 6 months (180 days).
End date for the usage period (ISO 8601 format). Defaults to current time.
Has no effect on the response.
Available options:
hour, day, month Response
Usage data retrieved successfully
The unique identifier of the API key.
The API key ID.
The name of the API key
The team ID this key belongs to
Total cost in USD for the period
Example:
45.67
Breakdown of costs by price type