Wallet
Read your prepaid wallet balance, auto-recharge settings and transaction history.
Your wallet holds prepaid funds that pay for usage. This API is read-only. All money values are decimal amounts in dollars, not cents, so 123.50 means $123.50 USD.
| Endpoint | Request |
|---|---|
| Get wallet balance | GET/v1/wallet/balance |
| List wallet transactions | GET/v1/wallet/transactions |
The wallet balance object
Fields use camelCase. Timestamps are left out when they have no value.
Attributes
idstringrequiredbalancenumberrequiredcurrencystringrequiredusd.autoRechargeobjectrequiredlastRechargeAtstringcreatedAtstringupdatedAtstringautoRecharge attributes
enabledbooleanrequiredthresholdnumberrequired0 when not set.amountnumberrequired0 when not set.The transaction object
Transaction fields use snake_case, unlike the balance object.
Attributes
idstringrequiredwallet_idstringrequiredtransaction_typestringrequireddebit or credit.amountnumberrequiredtransaction_type for the direction.balance_beforenumberrequiredbalance_afternumberrequireddescriptionstringrequiredcreated_atstringrequiredGet wallet balance
/v1/wallet/balanceread keyReturns your wallet's balance and auto-recharge settings. If your account has no wallet yet, this creates one with a balance of 0 and auto-recharge off.
curl https://backend.synthesys.app/api/v1/wallet/balance \
-H "SYNTH_API_KEY: YOUR_API_KEY"{
"success": true,
"data": {
"id": "7c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
"balance": 123.5,
"currency": "usd",
"autoRecharge": {
"enabled": true,
"threshold": 10,
"amount": 50
},
"lastRechargeAt": "2026-10-01T09:00:00.000Z",
"createdAt": "2026-06-15T12:00:00.000Z",
"updatedAt": "2026-10-20T16:45:00.000Z"
}
}List wallet transactions
/v1/wallet/transactionsread keyReturns your wallet transactions, newest first. pagination.total is the true number of matching transactions.
Query parameters
limitintegerdefault 50offsetintegerdefault 0start_datestringend_datestringSend dates as YYYY-MM-DD or a full ISO 8601 time with a timezone, such as 2026-10-31T12:00:00Z. A date with no time means midnight UTC at the start of that day.
A limit or offset out of range, an invalid date, or a start_date after end_date returns 400.
curl "https://backend.synthesys.app/api/v1/wallet/transactions?start_date=2026-10-01T00:00:00Z&limit=20" \
-H "SYNTH_API_KEY: YOUR_API_KEY"{
"success": true,
"data": [
{
"id": "b2c3d4e5-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"wallet_id": "7c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
"transaction_type": "debit",
"amount": 1.5,
"balance_before": 125,
"balance_after": 123.5,
"description": "Structured output analysis: 3 result(s)",
"created_at": "2026-10-20T16:45:00+00:00"
}
],
"pagination": { "total": 1, "limit": 10, "offset": 0 }
}