---
title: "List workplaces by domain with invitation status"
method: GET
path: "/cm/v1/auth/workplaces-by-domain"
tags: ["User"]
---

# List workplaces by domain with invitation status

`GET /cm/v1/auth/workplaces-by-domain`

## Request

- Base URL: `https://api.moloco.cloud`
- URL: `https://api.moloco.cloud/cm/v1/auth/workplaces-by-domain`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/moloco/apis/moloco-ads-campaign-management-api/docs/cm/v1/auth/workplaces-by-domain/get.ts> (a function with typed inputs; its response is checked against the schema)

List workplaces by domain with the info whether API caller requested an invitation to this workplace or not.

## Response `200`

A successful response.

- MessagesListWorkplacesByDomainResponse
  - `workplaces` DspWorkplaceWithInvitation[]: The list of workplace with invitation status.
    - `workplace` DspWorkplace: The workplace.
      - `id` string: The workplace ID.
      - `title` string: The workplace title.
      - `logo_url` string: The URL of the workplace logo image file.
      - `configuration` object: The workplace's configuration.
    - `requested_invitation` boolean: Whether user requested an invitation to this workplace.
    - `requested_at` string, date-time: Requested time.

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/moloco/apis/moloco-ads-campaign-management-api.md) - [All operations](https://skmtc.dev/moloco/apis/moloco-ads-campaign-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/moloco/apis/moloco-ads-campaign-management-api/revisions/fa372006b0f6?raw)
