get__credits_transactions
TypeScript Client Library
public getCreditsTransactions = async (query: GetCreditsTransactionsRequest): Promise<GetCreditsTransactionsResponse> => {
return this.makeRequest<GetCreditsTransactionsResponse>('credits/transactions', 'GET', query);
};Code Samples
# All params optional
curl -X GET 'https://backend.flashback.tech/credits/transactions?page=1&limit=20&direction=out' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'GET https://backend.flashback.tech/credits/transactions?page=1&limit=20&direction=out HTTP/1.1
Host: backend.flashback.tech
Accept: application/json
Authorization: Bearer {access-token}const params = new URLSearchParams({ page: '1', limit: '20', direction: 'out' });
const headers = {
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
};
fetch(`https://backend.flashback.tech/credits/transactions?${params}`, { method: 'GET', headers })
.then(res => res.json())
.then(body => console.log(body));import requests
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
params = { 'page': 1, 'limit': 20, 'direction': 'out' }
r = requests.get('https://backend.flashback.tech/credits/transactions', headers=headers, params=params)
print(r.json()){
"success": true,
"data": [
{
"id": "tx-uuid-1",
"creditAmount": -12.5,
"createdAt": "2026-01-30T10:00:00.000Z",
"description": "Storage egress: 1.25 GB on public node",
"type": "consumption",
"rateType": "Public Node",
"rateConcept": "Per GB Egress",
"rateUsed": 10,
"repoId": "repo-uuid",
"unitId": "unit-uuid",
"host": "us-east-1-gcp.flashback.tech"
},
{
"id": "tx-uuid-2",
"creditAmount": 1100,
"createdAt": "2026-01-15T00:00:00.000Z",
"description": "Credit pack purchase: Pack 1 (1100 credits)",
"type": "purchase",
"packName": "Pack 3"
}
],
"pagination": {
"total": 42,
"page": 1,
"limit": 20
}
}Query Parameters
Name
Type
Required
Description
Responses
Status
Meaning
Description
Schema
Response Schema (200)
Name
Type
Required
Description
Security
Notes
Last updated
Was this helpful?