Skip to main content
GET
/
accounts
/
{account_id}
/
features
/
{feature_id}
/
entries
List feature credits entries of a feature for an account
curl --request GET \
  --url https://api.togai.com/accounts/{account_id}/features/{feature_id}/entries \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "purchase.20rvWRxQcQK.0ZwPG",
      "source": "ENTITLEMENT",
      "status": "ACTIVE",
      "granted": 10,
      "balance": 5,
      "used": 5,
      "effectiveFrom": "2020-01-01T00:00:00Z",
      "effectiveUntil": "2021-03-04T14:25:10Z"
    },
    {
      "id": "purchase.20rvWRxQcQK.0ZwPG",
      "source": "ENTITLEMENT",
      "status": "ACTIVE",
      "granted": 10,
      "balance": 5,
      "used": 5,
      "effectiveFrom": "2020-01-01T00:00:00Z",
      "effectiveUntil": "2021-03-04T14:25:10Z"
    }
  ],
  "nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}

Authorizations

Authorization
string
header
required

Path Parameters

account_id
string
required
Maximum length: 50
Example:
feature_id
string
required
Maximum length: 50
Example:

Query Parameters

pageSize
integer
Example:
nextToken
string
Example:

Response

data
object[]
nextToken
string