v2
admin
platform-cost
admin

Get Platform Cost Logs

get/api/admin/platform-costs/logs

Query parameters

startstring date-time nullable
endstring date-time nullable
providerstring nullable
user_idstring nullable
pageinteger
page_sizeinteger
modelstring nullable
block_namestring nullable
tracking_typestring nullable
graph_exec_idstring nullable
execution_pathstring nullable

Filter on metadata.execution_path (e.g. 'anthropic_batch', 'sync_baseline', 'flex'). Lets admins narrow rows to a single dispatch mode for cost-savings audits.

Filter on metadata.execution_path (e.g. 'anthropic_batch', 'sync_baseline', 'flex'). Lets admins narrow rows to a single dispatch mode for cost-savings audits.

sourcestring nullable

Filter on metadata.source (e.g. 'dream_pass', 'copilot'). Distinguishes background/system spend from interactive.

Filter on metadata.source (e.g. 'dream_pass', 'copilot'). Distinguishes background/system spend from interactive.

Response

Successful Response

Example response

{
  "pagination": {
    "total_items": 42,
    "total_pages": 2,
    "current_page": 1,
    "page_size": 25
  }
}

Changes

Changed in 2 of the 92 revisions of this API.44

    • added the new optional query request parameter execution_path

      new-optional-request-parameter

    • added the new optional query request parameter source

      new-optional-request-parameter

    • added the optional property logs/items/execution_path to the response with the 200 status

      response-optional-property-added

    • added the optional property logs/items/source to the response with the 200 status

      response-optional-property-added

    • deleted the query request parameter execution_path

      request-parameter-removed

    • deleted the query request parameter source

      request-parameter-removed

    • removed the optional property logs/items/execution_path from the response with the 200 status

      response-optional-property-removed

    • removed the optional property logs/items/source from the response with the 200 status

      response-optional-property-removed

    This revision also has 96 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog