BizKitHub
DocsAPI ReferenceAccount/bff/account/switch-org
postAccountAdmin BFF

/bff/account/switch-org

Updates shop__contact_login_identity.member_id in place, so no new cookie is issued and the identity token stays valid. Cheap alternative to /bff/cms/switch-organisation which rotates the session; the legacy endpoint stays available until the admin UI is migrated.

AccountpostBffAccountSwitch-org

Parameters

JSON body

Request body

application/json
organisationSlugstringRequired

Slug of the target organisation the user wants to switch into. Must belong to the signed-in user (non-blocked membership, non-deleted org).

Length: 1–∞

Response schema

1 status code documented

200Success
success"true"Required
organisationSlugstringRequired
organisationIdnumberRequired
memberIdnumberRequired

Response example

application/json
{
  "success": true,
  "organisationSlug": "example_organisationSlug",
  "organisationId": 0,
  "memberId": 0
}

Request example

POST /bff/account/switch-org

post
curl -X POST "https://api.bizkithub.com/bff/account/switch-org" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "organisationSlug": "example_organisationSlug"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key