DocsAPI ReferenceAdmin/bff/admin/switch-to-organisation
postAdminAdmin BFF

/bff/admin/switch-to-organisation

Switches 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.

AdminpostBffAdminSwitch-to-organisation

Parameters

1 body

1 total
Body · 1
organisationSlugstringRequired

Slug of the organisation to switch into.

Request

POST /bff/admin/switch-to-organisation

post
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"
}'

Response

JSON payload

{
  "success": false,
  "identityId": "example_identityId"
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key