Retrieve usage
/v1/usageThe organization's plan and what it has used this billing period, for every endpoint the plan includes, grouped and named as on the dashboard's usage page. Calls to this endpoint count too.
quota and share are null for an endpoint with no monthly limit.
Endpoints the plan does not include are left out.
Response
The plan the organization is on.
The plan's name, or null when it has none.
The billing period the counts are for.
When the period began.
When it ends and the counts reset.
Endpoints grouped as on the usage page. A group with nothing in the plan is left out.
The group: assistant, catalogue, organization, or other.
The group's name.
What the group covers.
Each endpoint in the group.
Errors
21Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.
This organization does not have an active subscription.The organization has no active plan.
No usage found for this billing period.The plan has no usage record for the current period yet, which happens briefly at renewal.
curl -X GET "https://stylor.ai/api/v1/usage" \
-H "Authorization: Bearer $STYLOR_API_KEY"{
"plan": {
"name": "Pro"
},
"period": {
"start": "2026-09-14T00:00:00.000Z",
"end": "2026-10-14T00:00:00.000Z"
},
"usage": [
{
"key": "assistant",
"title": "Shopping assistant",
"caption": "What shoppers use on your store.",
"items": [
{
"path": "v2.agent.chat",
"label": "Chat messages",
"unlimited": false,
"quota": 2000,
"used": 412,
"share": 0.206
}
]
}
]
}