跳转到主要内容
GET
/
space
/
{spaceId}
/
billing
/
credit-history
cURL
curl --request GET \
  --url 'https://app.teable.ai/api/space/%7BspaceId%7D/billing/credit-history?month=SOME_STRING_VALUE&cursor=SOME_STRING_VALUE&take=SOME_INTEGER_VALUE&sourceType=SOME_STRING_VALUE&orderBy=SOME_STRING_VALUE&order=SOME_STRING_VALUE' \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{
  "data": [
    {
      "id": "<string>",
      "sourceType": "automation_ai_action",
      "amount": 123,
      "createdTime": "<string>",
      "displayName": "<string>",
      "user": {
        "id": "<string>",
        "name": "<string>",
        "avatar": "<string>"
      }
    }
  ],
  "nextCursor": "<string>"
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

spaceId
string
必填

查询参数

month
string
必填
Pattern: ^\d{4}-\d{2}$
cursor
string
take
integer
默认值:50
必填范围: 1 <= x <= 100
sourceType
enum<string>
可用选项:
automation_ai_action,
ai_generation,
field_ai_generation,
ai_chat,
app_generation
orderBy
enum<string>
可用选项:
createdTime,
amount
order
enum<string>
可用选项:
asc,
desc

响应

200 - application/json

Returns credit history records with cursor pagination.

data
object[]
必填
nextCursor
string | null
必填
Last modified on March 5, 2026