palbaseDocs

Palbase Auth API · API

GET/oauth/authorize/email

Magic link for an authorization request

Where the link of a magic-link email sent for an authorization request opens (POST /auth/magic-link with auth_request_id). In the browser that opened the request it goes on to the project's sign-in page with auth_request_id and email_token, and the page completes the request (POST /auth/magic-link/verify). In any other browser it tells the person to go back to the tab they started in and type the code the email carries; nothing is spent.

Called by .

Query

idstring · required
tokenstring · required
curl
curl -X GET "https://<your-ref>.palbase.studio/oauth/authorize/email"

Responses

200Another browser: the page asking the person to type the email's code in the tab they started in

303The browser that opened the request: to the project's sign-in page with `auth_request_id` and `email_token`

400The request is not waiting, or the link was not sent for it: the page says to start again from the app

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

Operation OauthAuthorizeEmailLink of auth's contract.