---
title: "Get Platform Cost Logs"
method: GET
path: "/api/admin/platform-costs/logs"
tags: ["v2", "admin", "platform-cost", "admin"]
---

# Get Platform Cost Logs

`GET /api/admin/platform-costs/logs`

## Query parameters

- `start` string, date-time, nullable
- `end` string, date-time, nullable
- `provider` string, nullable
- `user_id` string, nullable
- `page` integer
- `page_size` integer
- `model` string, nullable
- `block_name` string, nullable
- `tracking_type` string, nullable
- `graph_exec_id` string, nullable
- `execution_path` string, 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.
- `source` string, nullable — Filter on metadata.source (e.g. 'dream_pass', 'copilot'). Distinguishes background/system spend from interactive.

## Response `200`

Successful Response

- PlatformCostLogsResponse
  - `logs` CostLogRow[], required
    - `id` string, required
    - `created_at` string, date-time, required
    - `user_id` string, nullable
    - `email` string, nullable
    - `graph_exec_id` string, nullable
    - `node_exec_id` string, nullable
    - `block_name` string, required
    - `provider` string, required
    - `tracking_type` string, nullable
    - `cost_microdollars` integer, nullable
    - `input_tokens` integer, nullable
    - `output_tokens` integer, nullable
    - `duration` number, nullable
    - `model` string, nullable
    - `cache_read_tokens` integer, nullable
    - `cache_creation_tokens` integer, nullable
    - `execution_path` string, nullable
    - `source` string, nullable
  - `pagination` Pagination, required
    - `total_items` integer, required — Total number of items.
    - `total_pages` integer, required — Total number of pages.
    - `current_page` integer, required — Current_page page number.
    - `page_size` integer, required — Number of items per page.

## Other responses

- `401` — Authentication required
- `422` — Validation Error

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
