---
title: "GET /space/{spaceId}/billing/credit-history"
method: GET
path: "/space/{spaceId}/billing/credit-history"
tags: ["billing", "credit"]
---

# GET /space/{spaceId}/billing/credit-history

`GET /space/{spaceId}/billing/credit-history`

Get space credit history list with cursor pagination

## Path parameters

- `spaceId` string, required

## Query parameters

- `month` string, required
- `cursor` string
- `take` integer
- `sourceType` 'automation_ai_action' | 'ai_generation' | 'field_ai_generation' | 'ai_chat' | 'app_generation'
- `orderBy` 'createdTime' | 'amount'
- `order` 'asc' | 'desc'

## Response `200`

Returns credit history records with cursor pagination.

- object
  - `data` object[], required
    - `id` string, required
    - `sourceType` 'automation_ai_action' | 'ai_generation' | 'field_ai_generation' | 'ai_chat' | 'app_generation', required
    - `amount` number, required
    - `createdTime` string, required
    - `displayName` string, nullable, required
    - `user` object, nullable, required
      - `id` string, required
      - `name` string, required
      - `avatar` string, nullable, required
  - `nextCursor` string, nullable, required

---

[API](https://skmtc.net/teable/apis/teable-app.md) · [All operations](https://skmtc.net/teable/apis/teable-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teable/teable-app/versions/7515f3b33d79/schema)
