allmodels.ioDocs
API ReferenceAccount

List account credit transactions

Lists organization-level credit events without payment-provider identifiers, reference IDs, or arbitrary metadata. Per-request usage debits are available from the activity endpoint instead.

GET/account/transactions

Lists organization-level credit events without payment-provider identifiers, reference IDs, or arbitrary metadata. Per-request usage debits are available from the activity endpoint instead.

Authorization

BearerAuth
AuthorizationBearer <token>

Tenant key supplied as the Authorization Bearer token.

In: header

Query Parameters

limit?string

Number of records to return, from 1 to 100. Defaults to 50.

Match^([1-9]|[1-9]\d|100)$
cursor?string

Opaque cursor returned as next_cursor by the previous page.

Length1 <= length <= 512

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

Client
Language
const response = await fetch("https://api.allmodels.io/account/transactions?limit=50", {  headers: { Authorization: `Bearer ${process.env.ALLMODELS_API_KEY}` }});if (!response.ok) throw new Error(`AllModels request failed: ${response.status}`);console.log(await response.json());
{  "items": [    {      "id": "string",      "type": "top_up",      "amount_credits": 1250000,      "amount_usd": 1.25,      "balance_after_credits": 1250000,      "balance_after_usd": 1.25,      "created_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}
{  "error": "invalid_request"}
{  "error": "invalid_request"}
{  "error": "invalid_request"}
{  "error": "invalid_request"}
{  "error": "invalid_request"}