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": "user_abc123",
  "subscription_tier": "free",
  "billing_period_start": "2024-01-01T00:00:00Z",
  "billing_period_end": "2024-02-01T00:00:00Z",
  "usage": {
    "queries": {
      "used": 45,
      "limit": 100,
      "unlimited": false
    },
    "deep_research": {
      "used": 0,
      "limit": 0,
      "unlimited": false
    },
    "indexing": {
      "used": 2,
      "limit": 5,
      "unlimited": false
    }
  }
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Response

Usage summary retrieved successfully

user_id
string

User identifier

organization_id
string | null

Organization identifier (if applicable)

subscription_tier
enum<string>

Current subscription tier

Available options:
free,
pro,
enterprise
billing_period_start
string<date-time>

Start of current billing period

billing_period_end
string<date-time>

End of current billing period

usage
object

Usage breakdown by operation type