Skip to main content
GET
/
api
/
auth
/
sso
Portal SSO via auth code exchange
curl --request GET \
  --url https://app.demand-iq.com/api/auth/sso

Query Parameters

code
string
required

Short-lived authorization code issued by the portal

redirect
string
default:/decks

Internal path to redirect to after successful authentication

embedded
enum<string>
default:0

Set to 1 when running inside a portal iframe. Enables embedded mode cookies and error handling.

Available options:
0,
1
theme
enum<string>

Portal theme preference. When set, a theme cookie is stored so the initial render matches the portal appearance without a flash.

Available options:
light,
dark

Response

302

Redirects to the redirect path on success, or to /login?error=sso_failed (standalone) / /embedded-auth-error (embedded) on failure. Returns a redirect on missing or invalid code, or Core API rejection.