Statements
A month's credits and AI spend, per account and in total.
A statement adds up a month: each account's opening and closing credit, what came in (payouts, purchases, adjustments) and what calls spent. The dashboard's Statements page shows it and downloads it as CSV.
Get a statement
Send the project's secret key as Authorization: Bearer rf_sk_..., from a server.
curl https://relayfor.si/api/project/v1/statements/2026-09 \ -H "Authorization: Bearer $RELAYFOR_SECRET_KEY"Path
monthstringRequiredYYYY-MM, in UTC; the current month reads to date.
Answer
Answers 200 with Statement.
{ "month": "2026-09", "from": "2026-09-01T00:00:00.000Z", "to": "2026-10-01T00:00:00.000Z", "complete": true, "accounts": [ { "account": "acc_arqp1qhbpvjhzifE", "token": { "mint": "MASi45ub7Qe4ZE36UT5G6cU4ud8Fhhe4deS4F3cw9KTA", "symbol": "NOVA", "name": "Nova" }, "opening_usd": "0", "credited_usd": { "fee_credit": "58.4105", "purchase": "50", "adjustment": "0" }, "spent_usd": "67.181766", "closing_usd": "41.228734", "payouts": 9, "calls": 4812 } ], "totals": { "opening_usd": "0", "credited_usd": "108.4105", "spent_usd": "67.181766", "closing_usd": "41.228734" }, "lines": [ { "at": "2026-09-14T13:40:01.000Z", "account": "acc_arqp1qhbpvjhzifE", "token": "MASi45ub7Qe4ZE36UT5G6cU4ud8Fhhe4deS4F3cw9KTA", "kind": "fee_credit", "amount_usd": "7.6104", "ref": "payout:dYmM6J4tmCUz5J2h6tH6fwF5Hx8W1NcTJg93anG8BH4CDLhLaqEKVZkCJPt2H312oZcDZXGV7juiUjYbvySZLmEF:0" } ]}Its fields
monthstringRequiredYYYY-MM, in UTC.
fromstringRequiredThe month's first instant, in UTC.
tostringRequiredThe next month's first instant: not included.
completebooleanRequiredFalse for the current month: its figures are to date.
accountsobject[]RequiredOne row per credit account.
accountstringRequiredThe credit account: acc_...
tokenobject | nullRequiredThe token whose AI share lands there.
mintstringRequiredThe token's mint address.
namestringRequiredThe token's name.
symbolstringRequiredThe token's ticker.
opening_usdstringRequiredIts balance as the month began.
credited_usdobjectRequiredCredit that came in, by kind.
fee_creditstringRequiredFrom the token's payouts.
purchasestringRequiredBought in USDC.
adjustmentstringRequiredBy hand.
spent_usdstringRequiredWhat its AI calls were charged.
closing_usdstringRequiredIts balance as the month ended, or now.
payoutsintegerRequiredPayouts credited.
callsintegerRequiredCalls charged.
totalsobjectRequiredThe accounts together.
opening_usdstringRequiredDollars, as an exact decimal.
credited_usdstringRequiredDollars, as an exact decimal.
spent_usdstringRequiredDollars, as an exact decimal.
closing_usdstringRequiredDollars, as an exact decimal.
linesobject[]RequiredEach credit on its own, and each account's AI spend once a day, oldest first.
atstringRequiredWhen it happened, in UTC.
accountstringRequiredThe credit account: acc_...
tokenstring | nullRequiredThe token's symbol.
kindstringRequiredfee_credit, purchase, adjustment or call_charge.
amount_usdstringRequiredPositive for a credit, negative for spend.
refstringRequiredThe ledger's reference (payout:<signature>:<event>, purchase:...), or calls:<n> for a day's AI spend.
Errors
A 429 or 503 answer carries Retry-After: wait that many seconds, then send the same request again.