palbaseDocs

Palbase Auth API · API

POST/auth/invitations/open

Read an invitation's link

Reads what an invitation's link opens, from the app's own page (the invitation's redirect_to), as the page opens: the address invited, which the page shows fixed, and the app's name. It changes nothing: a mail scanner may open the link first. A link a later invitation replaced, or of a banned account, is invalid_token; one older than seven days token_expired; one whose invitation was taken up — by its link or another way — token_used, as AcceptInvitation answers.

Called by your app, with the publishable key.

Request body

tokenstring · requiredThe token the invitation's link carried (?token=).
curl
curl -X POST "https://<your-ref>.palbase.studio/auth/invitations/open" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "content-type: application/json" \
  -d '{"token":"string"}'

Responses

200What the link opens

400Validation failed or required field missing

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

Operation OpenInvitation of auth's contract.