Skip to main content
POST
/
api
/
v1
/
me
/
active-business
Switch the caller's active business
curl --request POST \
  --url https://api.izap.ai/api/v1/me/active-business \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "active_business_id": "6a1f2e2e-1c34-4e2a-9c3e-1234567890ab"
}

Authorizations

Authorization
string
header
required

JWT access token obtained from POST /api/v1/auth/jwt/login, the OAuth token endpoint, or a business-scoped API token. Some Business/Chat/Template/Scheduling endpoints alternatively accept HTTP Basic credentials scoped to the business slug.

Body

application/json
business_id
string<uuid>
required

Response

Active business updated.

active_business_id
string<uuid> | null