---
title: "Billing History"
method: GET
path: "/api/workspaces/{slug}/billing/history"
tags: ["Workspace Billing"]
---

# Billing History

`GET /api/workspaces/{slug}/billing/history`

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/api/workspaces/{slug}/billing/history`
- Auth: HTTP bearer

Full purchase history for the workspace (members only).

## Path parameters

- `slug` string, required

## Headers

- `x-kolens-user-id` string, nullable

## Response `200`

Successful Response

- BillingHistoryOut
  - `workspace_id` string, required
  - `slug` string, required
  - `purchases` PurchaseOut[]
    - `id` string, required
    - `workspace_id` string, required
    - `user_id` string, nullable
    - `stripe_session_id` string, required
    - `credits_purchased` number, required
    - `amount_cents` integer, required
    - `status` string, required
    - `receipt_url` string, nullable
    - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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