palbaseDocs

Palbase IAP · API

GET/iap/customers/{customer_id}/grants

List a customer's grants

The grants given the customer, active, ended and revoked, the newest first (at most 500): a grant is revoked by the id read here (DELETE …/grants/{grant_id}).

Called by your server, with the project's secret key.

Path

customer_idstring · requiredThe customer: the user's id (a guest merged into an account names the account).
curl
curl -X GET "https://<your-ref>.palbase.studio/iap/customers/<customer_id>/grants" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The customer's grants

401No key, not a key of this project, or a token that is not valid (the edge's answer)

403Not the project's secret key (`secret_key_required`)

404No customer has this id (`customer_not_found`)

410The user was deleted (`customer_erased`): their id is no customer's again

429Over the project's request limit; Retry-After says when to try again

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation ListCustomerGrants of iap's contract.