This endpoint allows a user to switch their operational context to a specified organization. This is useful for users who are part of multiple organizations and need to operate within a specific organizational context. When a context switch is successful, a new accessToken is provided for continued authentication within the new context.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
Responses
🟢200Success
application/json
Body
🟠403Forbidden
🟠404Record Not Found
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api.aladia.io/v2/auth/switch-context/' \
--header'Authorization: Bearer <token>'