Auth

Check whether this instance serves a CLI sign-in

Changed on

WorkOS picks the organization a device-code sign-in lands on, with no way for the CLI to steer it. This route tells a freshly signed-in CLI whether this instance serves the token's organization and, if not, which of the user's organizations it does serve, so the CLI can switch to one before saving the credential. The token travels in the body because the authentication hook refuses a token for an organization this instance does not serve.

post/v1/auth/cli/region-check

Request

  • Base URL: https://api.tessl.io
  • URL: https://api.tessl.io/v1/auth/cli/region-check
  • Auth: none declared

Request body

accessTokenstring required

Response

Default Response

Changes