palbaseDocs

Palbase Auth API · API

GET/auth/consents

Get the consent choices

Returns the signed-in account's choices — every device of the account holds them — or, with no one signed in, the device's own; with the request's region, so the app picks its starting values. A key the person never chose is absent: the app's starting value stands.

Called by your app, with the publishable key; or a signed-in user of your app, with their token and the publishable key.

Query

installation_idstring · requiredThe app install's label (the SDK's installation id).

Headers

X-Palbase-Installation-Secretstring · optionalThe install's secret, as its SDK keeps it (32 random bytes, base64url): the installation id is made from it (the first 16 bytes of its SHA-256, base64url), so it proves the request holds the install it names. Required whenever the request names an installation.
curl
curl -X GET "https://<your-ref>.palbase.studio/auth/consents" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN"

Responses

200The choices

400Validation failed or required field missing

401Missing, invalid, or expired credentials

403Authenticated but not permitted (banned, hook denial, role mismatch)

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

Operation GetConsents of auth's contract.