Skip to main content
GET
/
api
/
v1
/
orgs
/
current
/
billing
/
granular-usage
Error
A valid request URL is required to generate request examples
{
  "stride": {
    "days": 0,
    "hours": 0
  },
  "usage": [
    {
      "dimensions": {
        "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "user_email": "<string>",
        "api_key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "api_key_short_key": "<string>",
        "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "project_name": "<string>",
        "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "workspace_name": "<string>"
      },
      "time_bucket": "2023-11-07T05:31:56Z",
      "traces": 0
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.langchain.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Query Parameters

start_time
string<date-time>
required
end_time
string<date-time>
required
workspace_ids
string<uuid>[]
required
group_by
enum<string>
default:workspace

Dimensions for grouping granular usage data.

Available options:
user,
api_key,
project,
workspace

Response

Successful Response

Response for granular usage query.

stride
GranularUsageStride · object
required

Stride configuration for time bucketing - only ONE field should be non-zero.

usage
GranularUsageRecord · object[]
required