Skip to main content
GET
/
api
/
v1
/
billing
/
agents
/
{agentId}
Get cost breakdown for a specific agent over time
curl --request GET \
  --url https://dashboard.sequentum.com/api/v1/billing/agents/{agentId} \
  --header 'Authorization: Bearer <token>'
{
  "agentId": 123,
  "agentName": "<string>",
  "labels": [
    "<string>"
  ],
  "usageTypes": [
    {
      "type": "<string>",
      "data": [
        123
      ],
      "totalCost": 123
    }
  ],
  "totalCost": 123,
  "startDate": "2023-11-07T05:31:56Z",
  "endDate": "2023-11-07T05:31:56Z"
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

API Key authorization header. Example: "Authorization: ApiKey {your-api-key}"

Authorization
string
header
required

OAuth 2.0 Bearer token. Example: "Authorization: Bearer {access-token}"

Path Parameters

agentId
integer<int32>
required

The agent ID

Query Parameters

startDate
string<date-time>

Start date for the range (ISO format, required)

endDate
string<date-time>

End date for the range (ISO format, required)

timeUnit
string
default:day

Time unit for grouping data: day (default), month

usageTypes
string

Filter by usage types (comma-separated)

Response

Returns the cost breakdown

Cost breakdown for a specific agent over time

agentId
integer<int32>

Agent ID

agentName
string | null

Agent name

labels
string[] | null

Date labels for the chart (e.g., "2024-01-01", "2024-01-02")

usageTypes
object[] | null

Usage data grouped by type

totalCost
number<double>

Total cost across all usage types

startDate
string<date-time>

Start date of the range

endDate
string<date-time>

End date of the range