Skip to main content

Purpose

Returns all businesses the authenticated user belongs to. Used for the business switcher in the dashboard.

Architecture

Response Format

{
  "businesses": [
    {
      "id": "org_abc123",
      "name": "Acme Corp",
      "slug": "acme-corp",
      "image_url": null,
      "role": "org:admin",
      "business_url": null,
      "subscription_status": "active",
      "created_at": 1702234567
    }
  ],
  "total": 1
}

Code Location

src/app/apis/settings_overall/user_businesses/routes.py