Palbase Auth API · API
/auth/installationsCreate an installation
Creates a new, unbound installation — the server-minted identity of one app install — and returns it with its ins_… ID. Bind it to the signed-in user with POST /auth/installations/{id}/bind.
Called by a signed-in user of your app, with their token and the publishable key.
Headers
Idempotency-Keystring · optionalMakes the create safe to send again: a repeat with the same key and the same request gets the first answer back (marked `Idempotent-Replayed: true`) instead of a second record. Kept for 24 hours; at most 255 characters.Request body
app_idstring · optionalThe app's identifier (bundle ID, package name or web origin); optional.platform"android" | "ios" | "web" · requiredcurl -X POST "https://<your-ref>.palbase.studio/auth/installations" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{"platform":"android"}'Responses
201Installation created
400Validation failed or required field missing
401Missing, invalid, or expired credentials
409Conflict with current resource state (duplicate, race)
413The request carries an Idempotency-Key and its body is larger than 1 MiB (`request_too_large`).
422The Idempotency-Key was already used with a different request (`idempotency_key_reused`).
503Downstream dependency unavailable (typically HIBP / breach service)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation CreateInstallation of auth's contract.