Načtení stránkované historie kreditových transakcí.
const usage = await client.credits.usage({ from: "2025-01-01T00:00:00Z", to: "2025-03-31T23:59:59Z", limit: 50, }); console.log(`Total used: ${usage.total_used} credits`); for (const tx of usage.data) { console.log(`${tx.service}: ${tx.amount} credits - ${tx.description}`); }
{ "data": [ { "id": "tx_abc123", "service": "enhancement", "amount": -12, "table_id": "tbl_xyz789", "description": "Enhanced 6 rows × description column", "created_at": "2025-03-10T14:30:00.000Z" } ], "pagination": { "page": 1, "limit": 50, "total": 128 }, "total_used": 3420 }
extraction
enhancement
Zobrazit Objekt transakce
Zobrazit Metadata stránkování