Parameters
JSON body
Request body
application/jsonorganisationSlugstringRequiredSlug of the organisation to switch into.
Example
acme-corpSwitches the admin's session context to the specified organisation. Creates a new login identity and sets an auth cookie. Useful for customer support to impersonate an organisation context. Requires internal admin membership.
JSON body
organisationSlugstringRequiredSlug of the organisation to switch into.
acme-corp1 status code documented
successbooleanRequiredWhether the switch was successful.
identityIdstringOptionalNew identity ID after switching.
{
"success": false,
"identityId": "example_identityId"
}POST /bff/admin/switch-to-organisation
curl -X POST "https://api.bizkithub.com/bff/admin/switch-to-organisation" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"organisationSlug": "acme-corp"
}'All BizKitHub public API endpoints require authentication via API key.