Hub APIhub-api reference
Switch organization context, get new access token
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/auth/switch-org" \ -H "Content-Type: application/json" \ -d '{ "orgId": "string" }'{
"accessToken": "string",
"expiresAt": 0
}Empty