List balance transactions
GET
/history
const url = 'https://api.mixen.ai/v1/history?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Заголовок раздела «Authorizations»Parameters
Заголовок раздела «Parameters»Query Parameters
Заголовок раздела «Query Parameters»Responses
Заголовок раздела «Responses»Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}