Skip to main content
GET
/
usage
Get usage summary
curl --request GET \
  --url https://apigcp.trynia.ai/v2/usage \
  --header 'Authorization: Bearer <token>'
{
  "user_id": "<string>",
  "billing_period_start": "2023-11-07T05:31:56Z",
  "billing_period_end": "2023-11-07T05:31:56Z",
  "organization_id": "<string>",
  "subscription_tier": "free",
  "usage": {}
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Response

200 - application/json

Successful Response

Response for usage summary.

user_id
string
required

User identifier

billing_period_start
string<date-time>
required

Start of current billing period

billing_period_end
string<date-time>
required

End of current billing period

organization_id
string | null

Organization identifier (if applicable)

subscription_tier
string
default:free

Current subscription tier

usage
Usage · object

Usage breakdown by operation type