Skip to content
RU

List balance transactions

GET
/history
curl --request GET \
--url 'https://api.mixen.ai/v1/history?limit=50' \
--header 'Authorization: Bearer <token>'

Balance movements of the account that owns this API key: generation charges (negative), top-ups, bonuses and referrals (positive), newest first. amount_rub is a decimal string with up to 4 decimals — the exact charged value. model is the model id for generation charges and null for top-ups. Paginated with a cursor: pass next_cursor from the response as the cursor query parameter to get the next older page.

cursor
Any of:
integer

Transaction id from a previous response’s next_cursor; returns older items.

limit
Limit

Page size, max 200.

integer
default: 50 >= 1 <= 200

Page size, max 200.

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}