API reference
CreditTransaction
The CreditTransaction object.
| Field | Type | Description |
|---|---|---|
agent_id |
string (uuid) or null | |
amount |
number | Credits: positive adds, negative spends. |
balance_after |
number | |
conversation_id |
string (uuid) or null | |
created_at |
string (date-time) | |
description |
string | |
id |
string (uuid) | |
kind |
string | What moved credit. Spending it: conversation, analysis, extraction, knowledge, evaluation. Adding it: grant, refund. Corrections: removal, adjustment. More kinds may be added. |
livemode |
boolean | False for what a test key spent. |
object |
credit_transaction |
|
project_id |
string (uuid) or null |