/v1/auth/switch-company

Errors use Problem Details (RFC 9457). For the errors below, branch
on the stable errors[0].code:

HTTPcodeMeaning
401invalid-credentialsTarget user does not belong to the requested company.
401user-disabledTarget user is disabled.
401customer-inactiveTarget company's account is not active.
401refresh-token-invalidThe provided refresh token is malformed or fails signature verification.
401refresh-token-expiredThe provided refresh token has expired; re-login is required.
403no-such-linkYou do not have access to the target company.
403link-state-invalidYour access to the target company changed; refresh your company list.
404unknown-companyThe target company does not exist or is unavailable.
404contact-not-foundThe target user could not be found.
422requiredcompanyId or refreshToken is missing from the request body.
422invalidThe request body is malformed.

A 401 or 403 may be returned with an empty body; treat these as a
generic authentication or authorization failure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string | null
required
string | null
required
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json
application/problem+json