workspaces

List workspaces

Returns every workspace (veterinary clinic) the authenticated user is a direct member of, with their role in each. Use it to find the workspaceId for workspace-scoped endpoints and to decide which of them the user may call. The list is not paginated and not sorted; sort client-side if needed. Organization admins can also open their organization's clinics without being members, but those clinics are not listed here. Accepts a session or a personal API key; organization and workspace keys get 403.

get/workspaces

Request

  • Base URL
    https://vetnio.com/api/v2
  • URL
    https://vetnio.com/api/v2/workspaces
  • Auth
    HTTP bearer

Response

The workspaces the caller belongs to. An empty array means the user has not joined or created a workspace yet.

Example response

{
  "workspaces": [
    {
      "id": "furunculotic-loud-chihuahua",
      "name": "Riverside Animal Clinic",
      "role": "admin"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.