Skip to content

Switch active organization

POST
/v2/portal/auth/switch-organization
curl --request POST \
--url https://api.sipstack.com/v2/portal/auth/switch-organization \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "organizationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

For multi-organization accounts — re-scopes the session to another organization the user belongs to and returns a new JWT (cookie is updated too).

Media type application/json
object
organizationId
required
string format: uuid
Example generated
{
"organizationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Session re-scoped; response includes the new token.

Not authenticated.

User does not belong to the target organization.