Transaction History

GEThttps://api.oneinfer.ai/v1/developer/:developerId/get-transactions

Retrieve 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
curl -X GET "https://api.oneinfer.ai/v1/developer/{developerId}/get-transactions" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"

Response example

200 OK
JSON
{
  "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

CodeStatusDescription
200OKTransaction list returned successfully.
401UnauthorizedMissing or invalid Authorization header / Bearer token.
500Internal Server ErrorUnexpected error fetching transactions.

Response

202 - application/json