GET
/
accounts
/
{account_id}
/
features
/
{feature_id}
/
entries
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
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

account_id
string
required

account_id corresponding to an account

feature_id
string
required

feature_id corresponding to a feature

Query Parameters

pageSize
integer

Maximum page size expected by client to return the record list.

NOTE: Max page size cannot be more than 50. Also 50 is the default page size if no value is provided.

nextToken
string

Pagination token used as a marker to get records from next page.

Response

200 - application/json
data
object[]
nextToken
string