Usage API

Track and monitor API usage and quotas.

Endpoints

MethodEndpointDescription
GET/usageGet current period usage
GET/usage/historyGet historical usage
GET/usage/breakdownGet usage by category

Usage Object

Loading code block...

Get Current Usage

Loading code block...

Example Request

Loading code block...

Response

Loading code block...

Get Usage History

Loading code block...

Query Parameters

ParameterTypeDescription
periodstringdaily, weekly, monthly (default: daily)
startstringStart date (ISO 8601)
endstringEnd date (ISO 8601)
metricstringSpecific metric to retrieve

Example Request

Loading code block...

Response

Loading code block...

Get Usage Breakdown

Loading code block...

Query Parameters

ParameterTypeDescription
groupBystringproject, agent, skill, endpoint
startstringStart date (ISO 8601)
endstringEnd date (ISO 8601)

Example Request

Loading code block...

Response

Loading code block...

Breakdown by Project

Loading code block...
Loading code block...

Usage Limits by Plan

MetricFreeProTeamEnterprise
API Calls/month1,00010,00050,000Custom
Agent Invocations/month501,0005,000Custom
Skill Applications/month205002,500Custom
Context Generations/month205002,500Custom
Projects11050Unlimited

Usage Alerts

Configure alerts when approaching limits:

Loading code block...

Request Body

Loading code block...

Response

Loading code block...

Export Usage Data

Loading code block...

Query Parameters

ParameterTypeDescription
formatstringcsv or json (default: json)
startstringStart date
endstringEnd date

Example Request

Loading code block...

Quota Reset

Quotas reset on the 1st of each month at 00:00 UTC.

Check when quota resets:

Loading code block...

Overage Handling

When you exceed your plan's limits:

PlanBehavior
FreeRequests blocked until reset
ProCharged per-request overage fee
TeamCharged per-request overage fee
EnterpriseCustom agreement

Overage Response

Loading code block...