Endpoints
Transaction History
GET
https://api.oneinfer.ai/v1/developer/:developerId/get-transactionsRetrieve a comprehensive list of all account activity, including credit refills and platform usage debits.
Path Parameters
developerId
string requiredYour unique developer identifier.
Request example
curl -X GET "https://api.oneinfer.ai/v1/developer/{developerId}/get-transactions" \
-H "Authorization: Bearer <ACCESS_TOKEN>"Response example
200 OK{
"allTransactions": [
{
"_id": "65e1...",
"transaction": {
"transaction_id": "tx_123...",
"amount": 1000,
"transaction_type": "debit",
"description": "GPU Instance spend",
"timestamp": "2024-03-21T10:00:00Z",
"instance_id": "inst_987...",
"price_per_hour": 0.50
}
}
]
}
Error Status Codes
| Code | Status | Description |
|---|---|---|
| 200 | OK | Transaction list returned successfully. |
| 401 | Unauthorized | Missing or invalid Authorization header / Bearer token. |
| 500 | Internal Server Error | Unexpected error fetching transactions. |