Skip to content

Ramp: List AI usage and estimated spend grouped by the requested dimensions — response body — data item

List AI usage and estimated spend grouped by the requested dimensions: response body, field data / item. Complete fields and constraints for contract 2026-10-27.

API reference · Contract 2026-10-27

SDK schema: List AI usage and estimated spend grouped by the requested dimensions — response body — data item

FieldTypePresenceDescription and constraints
$objectRoot
cached_input_tokensJSONRequired within parent
cached_input_tokens (anyOf 1)integerAlternativeNumber of cached input tokens.
cached_input_tokens (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
department_idJSONRequired within parent
department_id (anyOf 1)stringAlternativeDepartment of the Ramp user. Null unless group_by includes department, or when the user has no department.
Format: uuid
department_id (anyOf 2)nullAlternative
estimated_costJSONRequired within parent
estimated_cost (anyOf 1)ModelAlternativeExpand Fetch a payment — response body — amount
Estimated cost, matching the AI Spend page. Null for AWS Bedrock, which Ramp reports as billed cost rather than an estimate. When rows combine AWS Bedrock with other providers, the estimate excludes AWS Bedrock.
Read only: true
estimated_cost (anyOf 2)nullAlternative
input_tokensJSONRequired within parent
input_tokens (anyOf 1)integerAlternativeNumber of input tokens.
input_tokens (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
modelJSONRequired within parent
model (anyOf 1)stringAlternativeProvider model name. Null unless group_by includes model, or when the provider did not report one.
model (anyOf 2)nullAlternative
output_tokensJSONRequired within parent
output_tokens (anyOf 1)integerAlternativeNumber of output tokens.
output_tokens (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
productJSONRequired within parent
product (anyOf 1)stringAlternativeProduct the usage came from, such as claude_code, codex, or cursor. Null unless group_by includes product, or when no product applies.
product (anyOf 2)nullAlternative
providerJSONRequired within parent
provider (anyOf 1)stringAlternativeAI provider. Null unless group_by includes provider.
Known values: ANTHROPIC, AWS, AZURE, CURSOR, FIREWORKS, GCP, OPENAI, RAMP
Read only: true
provider (anyOf 2)nullAlternative
usage_datestringRequired within parentUTC calendar date for this usage row.
Format: date
user_emailJSONRequired within parent
user_email (anyOf 1)stringAlternativeEmail of the Ramp user, or the email the provider reported when the usage is not attributed to a Ramp user. Null unless group_by includes user.
Format: email
user_email (anyOf 2)nullAlternative
user_idJSONRequired within parent
user_id (anyOf 1)stringAlternativeRamp user. Null unless group_by includes user, or when the usage is not attributed to a Ramp user.
Format: uuid
user_id (anyOf 2)nullAlternative
web_search_requestsJSONRequired within parent
web_search_requests (anyOf 1)integerAlternativeNumber of provider web-search requests.
web_search_requests (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Fetch a payment — response body — amount

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.