Skip to navigation

Switch App

Exchange the current session for a session in another app the user belongs to.

Authentication: Required — Bearer token.

Request body:

  • target_subdomain (required) — Subdomain of the app to switch into

Behavior:

  • Admins switch via their linked admin account and additionally receive an admin_token
  • Regular members switch to the account matching their email in the target app

Response:

  • data.token — JWT for the target app
  • data.subdomain — Target app subdomain
  • data.name — Target app name
  • data.admin_token — Present only when the switch was performed as an admin

Errors:

  • 403 — Access denied (the admin has no access to the target app)
  • 404 — App not found
  • 404 — No account found in target app

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
target_subdomainstringOptional

Response

OK