Palbase Auth API · API
POST
/auth/consents/linkBring a device's choices to the account
Called on sign-in: a choice the device made after the account's newest of the same key becomes the account's, and the answer is the account's state, which the device takes.
Called by a signed-in user of your app, with their token and the publishable key.
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.Request body
installation_idstring · requiredThe app install's label.curl
curl -X POST "https://<your-ref>.palbase.studio/auth/consents/link" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{"installation_id":"string"}'Responses
200The account's 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 LinkConsents of auth's contract.