register-temp

Exchange an OAuth Code

Verifies an auth0 authorization code. For a new identity, returns a registration token plus prefill suggestions for the registration form. If the email already belongs to an account/tenant, the exchange has already produced a valid session, so the user is logged in directly: returns ExistingAccountSession (with the session tokens + refresh cookie) instead, and the frontend goes straight into the app. Discriminate by which response shape comes back (registration_token vs. access_token).

post/v2/register-temp/exchange-code

Request

  • Base URL
    https://api.stuut.ai (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

authorization_codestring required

The auth0 authorization code to exchange.

redirect_uristring required

The redirect URI the code was issued for.

Response

Successful Response

OR

Changes

No recorded changes to this operation across all 1 revision of this API.