palbaseDocs

Palbase Auth API · API

POST/auth/installations/{id}/bind

Bind an installation to the signed-in user

Ties an active installation to the signed-in user (call it after sign-in). Repeating it for the same user returns the existing binding unchanged. An installation already bound to another user answers 409; unknown or revoked answers 404. The body is optional.

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

Path

idstring · requiredInstallation ID (`ins_…`).

Request body

auth_device_idstring · optionalDevice ID (`dev_…`) to record on the binding.
curl
curl -X POST "https://<your-ref>.palbase.studio/auth/installations/<id>/bind" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"auth_device_id":"string"}'

Responses

200Binding (new or existing)

400Validation failed or required field missing

401Missing, invalid, or expired credentials

404Resource does not exist or is not visible to the caller

409Conflict with current resource state (duplicate, race)

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

Operation BindInstallation of auth's contract.