Tasuku
ReferenceAPI referenceConfiguration

Read subscription usage for a coding-agent provider

Returns a normalized, cached snapshot for the requested provider, or the configured default when provider is omitted. Provider failures are represented in the response status and do not fail the request.

GET/organizations/{organization_id}/agent-usage

Returns a normalized, cached snapshot for the requested provider, or the configured default when provider is omitted. Provider failures are represented in the response status and do not fail the request.

Authorization

tasuku_session<token>

In: cookie

Path Parameters

organization_id*string
Length1 <= length <= 128

Query Parameters

provider?string

Connected coding-agent provider to inspect. Omit to use the configured default.

Value in

  • "CODEX"
  • "CLAUDE"

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/organizations/string/agent-usage"
{  "data": {    "provider": "string",    "status": "AVAILABLE",    "plan": "string",    "fetched_at": "2019-08-24T14:15:22Z",    "limits": [      {        "id": "string",        "label": "string",        "period": "FIVE_HOUR",        "used_percent": 0,        "window_minutes": 1,        "resets_at": "2019-08-24T14:15:22Z"      }    ],    "unavailable_reason": "AUTHENTICATION_FAILED"  }}