Skip to main content
POST
Switch company

Body

application/json

Request body for switching the active company context within the current session.

companyId
string
required

The identifier of the company context to switch into.

Example:

"cmp_xyz789"

Response

Company context switched. A new access token scoped to the target company is set as an HTTP-only cookie.

data
object
required

Full authentication payload returned after a successful login, token refresh, or session fetch.