Skip to main content
GET
/
api
/
api-keys
/
transactions
Credit Purchase History
curl --request GET \
  --url https://ninjachat.ai/api/api-keys/transactions \
  --header 'Authorization: Bearer <token>'
{
  "transactions": [
    {
      "amount": "$25.00",
      "amountCents": 2500,
      "type": "credit_purchase",
      "status": "completed",
      "timestamp": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "total": 123,
    "limit": 123,
    "offset": 123,
    "hasMore": true
  }
}

Authorizations

Authorization
string
header
required

API key starting with nj_sk_

Query Parameters

limit
integer
default:50

Number of records to return.

Required range: x <= 200
offset
integer
default:0

Pagination offset.

Response

Transaction list.

transactions
object[]
pagination
object