Credit Transactions API

View credit usage history.

Base URL: https://api.bluenexus.ai/api/v1/credit-transactions

GET /credit-transactions

List credit transactions for the authenticated account.

Auth: Bearer token

Response (200):

{
  "data": [
    {
      "id": "txn-abc123",
      "amount": -15,
      "balance": 19985,
      "type": "llm-completion",
      "description": "Chat completion (bluenexus/glm-4.7-flash-tee)",
      "createdAt": "2026-04-13T10:00:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 150,
    "hasMore": true
  }
}

Negative amounts are charges. Positive amounts are credits added.