---
title: "AI spend as CSV"
method: GET
path: "/v1/spend/ai/export.csv"
tags: ["Spend"]
---

# AI spend as CSV

`GET /v1/spend/ai/export.csv`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/spend/ai/export.csv`
- Auth: HTTP bearer

One row per agent × provider × model in the window (same filters as `GET /v1/spend/ai`).

## Query parameters

- `from` string, date-time
- `to` string, date-time
- `agent_id` string, uuid
- `provider` string

## Response `200`

CSV

## Other responses

- `401`: Authentication required or invalid
- `403`: Insufficient permissions

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
