For the complete documentation index, see llms.txt. This page is also available as Markdown.

Billing

Get workspace LLM usage

get

Return customer-visible LLM usage for an inclusive date range from one complete published calculation. Omit group_by for totals, daily usage, attribution, and service breakdowns; use group_by=model or group_by=class for those breakdowns. The optional service_id filter is applied before aggregation.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
Query parameters
start_datestring · dateRequired

First usage date to include.

end_datestring · dateRequired

Last usage date to include. It cannot be in the future.

service_idstring · uuid · nullableOptional

Limit the report to usage attributed to this service.

group_bystring · enum · nullableOptional

Return model or usage-class breakdowns instead of the overview.

Possible values:
Responses
200

Successful Response

application/json
or
or
get/v1/{workspace_id}/usage
GET /v1/{workspace_id}/usage?start_date=2026-01-01&end_date=2026-01-01 HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
  "period": {
    "start_date": "2026-01-01",
    "end_date": "2026-01-01"
  },
  "calculation_run_id": "123e4567-e89b-12d3-a456-426614174000",
  "attribution": {
    "conversation_attribution_rate": 1,
    "service_attribution_rate": 1
  },
  "totals": {
    "conversation_count": 1,
    "request_count": 1,
    "uncached_input_tokens": 1,
    "cached_input_tokens": 1,
    "output_tokens": 1,
    "has_unpriced_usage": true,
    "unpriced_tokens": 1
  },
  "daily": [
    {
      "usage_date": "2026-01-01",
      "uncached_input_tokens": 1,
      "cached_input_tokens": 1,
      "output_tokens": 1
    }
  ],
  "services": [
    {
      "service_id": "123e4567-e89b-12d3-a456-426614174000",
      "conversation_count": 1,
      "request_count": 1,
      "uncached_input_tokens": 1,
      "cached_input_tokens": 1,
      "output_tokens": 1
    }
  ]
}

Get workspace LLM cost

get

Return Amigo-admin-only LLM cost for an inclusive date range from one complete published calculation. Omit group_by for workspace totals and service costs; use group_by=model to include each model's pricing status and applied rate records. The optional service_id filter is applied before aggregation.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
Query parameters
start_datestring · dateRequired

First usage date to include.

end_datestring · dateRequired

Last usage date to include. It cannot be in the future.

service_idstring · uuid · nullableOptional

Limit the report to usage attributed to this service.

group_byconst: model · nullableOptional

Return model costs and applied rates instead of the overview.

Responses
200

Successful Response

application/json
or
get/v1/{workspace_id}/cost
GET /v1/{workspace_id}/cost?start_date=2026-01-01&end_date=2026-01-01 HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
  "period": {
    "start_date": "2026-01-01",
    "end_date": "2026-01-01"
  },
  "calculation_run_id": "123e4567-e89b-12d3-a456-426614174000",
  "totals": {
    "calculated_cost_usd": "text",
    "cost_per_conversation_usd": "text",
    "has_unpriced_usage": true,
    "unpriced_tokens": 1
  },
  "services": [
    {
      "service_id": "123e4567-e89b-12d3-a456-426614174000",
      "calculated_cost_usd": "text",
      "cost_share": 1
    }
  ]
}

Get workspace usage and cost overview

get

Return customer-visible production-classified LLM usage and calculated model-provider cost for an inclusive UTC date range. The optional service_id filter is applied before aggregation. Unsupported v0 provenance and attribution fields remain null and successful responses report data_status=partial.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
Query parameters
start_datestring · dateRequired

First usage date to include.

end_datestring · dateRequired

Last usage date to include. It cannot be in the future.

service_idstring · uuid · nullableOptional

Limit the report to usage attributed to this service.

Responses
200

Successful Response

application/json

Customer usage and calculated model-provider cost overview.

workspace_idstring · uuidRequired
service_idstring · uuid · nullableRequired

Service identifier; null for unattributed usage.

attribution_statusconst: best_effortRequired
data_statusstring · enumRequired

V0 returns partial for a published calculation, or failed when no complete calculation covers the period.

Possible values:
data_as_ofstring · date-time · nullableRequired

Source-event freshness; null because the published facts do not retain it.

calculation_run_idstring · nullableRequired

Opaque published-calculation identifier; null when no complete calculation covers the period.

rate_card_versionstring · nullableRequired

Reproducible rate-card identifier; null because the published facts do not retain it.

currencyconst: USDRequired
get/v1/{workspace_id}/usage-cost/overview
GET /v1/{workspace_id}/usage-cost/overview?start_date=2026-01-01&end_date=2026-01-01 HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
  "period": {
    "start_date": "2026-01-01",
    "end_date": "2026-01-01",
    "timezone": "text"
  },
  "service_id": "123e4567-e89b-12d3-a456-426614174000",
  "attribution_status": "text",
  "attribution": {
    "conversation_attribution_rate": 1,
    "service_attribution_rate": 1,
    "may_include_amigo_operated_usage": true
  },
  "data_status": "complete",
  "data_as_of": "2026-01-01T00:00:00.000Z",
  "calculation_run_id": "text",
  "rate_card_version": "text",
  "currency": "text",
  "totals": {
    "conversation_count": 1,
    "request_count": 1,
    "uncached_input_tokens": 1,
    "cached_input_tokens": 1,
    "output_tokens": 1,
    "calculated_cost_usd": "text",
    "cost_per_conversation_usd": "text",
    "has_unpriced_usage": true,
    "unpriced_tokens": 1
  },
  "daily": [
    {
      "usage_date": "2026-01-01",
      "uncached_input_tokens": 1
    }
  ],
  "services": [
    {
      "service_id": "123e4567-e89b-12d3-a456-426614174000",
      "service_name": "text",
      "conversation_count": 1,
      "request_count": 1,
      "uncached_input_tokens": 1,
      "cached_input_tokens": 1,
      "output_tokens": 1,
      "calculated_cost_usd": "text",
      "cost_per_conversation_usd": "text",
      "cost_share": 1,
      "has_unpriced_usage": true,
      "unpriced_tokens": 1
    }
  ],
  "latest_close": {
    "close_month": "2026-01-01",
    "status": "text",
    "calculated_at": "2026-01-01T00:00:00.000Z",
    "calculation_run_id": "text",
    "rate_card_version": "text",
    "calculated_cost_usd": "text",
    "uncached_input_tokens": 1,
    "cached_input_tokens": 1,
    "output_tokens": 1,
    "has_unpriced_usage": true,
    "unpriced_tokens": 1
  }
}

Get workspace usage and cost by model

get

Return customer-visible production-classified LLM usage and calculated model-provider cost grouped by model. The optional service_id filter is applied before aggregation. Rates and money are decimal strings.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
Query parameters
start_datestring · dateRequired

First usage date to include.

end_datestring · dateRequired

Last usage date to include. It cannot be in the future.

service_idstring · uuid · nullableOptional

Limit the report to usage attributed to this service.

Responses
200

Successful Response

application/json

Customer usage and calculated model-provider cost grouped by model.

workspace_idstring · uuidRequired
service_idstring · uuid · nullableRequired
conversation_countintegerRequired

Distinct linked conversations in the selected scope; conversations shared by models are counted once.

currencyconst: USDRequired
get/v1/{workspace_id}/usage-cost/models
GET /v1/{workspace_id}/usage-cost/models?start_date=2026-01-01&end_date=2026-01-01 HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
  "period": {
    "start_date": "2026-01-01",
    "end_date": "2026-01-01"
  },
  "service_id": "123e4567-e89b-12d3-a456-426614174000",
  "conversation_count": 1,
  "currency": "text",
  "models": [
    {
      "model_id": "text",
      "provider": "text",
      "request_count": 1,
      "calls_per_conversation": 1,
      "uncached_input_tokens": 1,
      "cached_input_tokens": 1,
      "cache_rate": 1,
      "output_tokens": 1,
      "applied_rates": [
        {
          "rate_card_version": "text",
          "effective_from": "2026-01-01T00:00:00.000Z",
          "effective_to": "2026-01-01T00:00:00.000Z",
          "input_per_million": "text",
          "cached_input_per_million": "text",
          "output_per_million": "text"
        }
      ],
      "calculated_cost_usd": "text",
      "cost_share": 1,
      "is_priced": true,
      "unpriced_reason": "text"
    }
  ]
}

Get workspace usage excluded from production-classified totals

get

Return simulation, playground, customer-test, Amigo-internal, and unresolved usage excluded from the customer's production-classified totals. The optional service_id filter is applied before aggregation.

Authorizations
AuthorizationstringRequired

API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.

Path parameters
workspace_idstring · uuidRequired
Query parameters
start_datestring · dateRequired

First usage date to include.

end_datestring · dateRequired

Last usage date to include. It cannot be in the future.

service_idstring · uuid · nullableOptional

Limit the report to usage attributed to this service.

Responses
200

Successful Response

application/json

Usage explicitly excluded from production-classified totals.

workspace_idstring · uuidRequired
get/v1/{workspace_id}/usage-cost/excluded
GET /v1/{workspace_id}/usage-cost/excluded?start_date=2026-01-01&end_date=2026-01-01 HTTP/1.1
Host: platform.api-us.concurrence.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
  "period": {
    "start_date": "2026-01-01",
    "end_date": "2026-01-01"
  },
  "classes": [
    {
      "usage_class": "simulation",
      "exclusion_reason": "simulation",
      "conversation_count": 1,
      "request_count": 1,
      "uncached_input_tokens": 1,
      "cached_input_tokens": 1,
      "output_tokens": 1
    }
  ]
}

Last updated

Was this helpful?