---
title: "List companies in the workspace, optionally filtered by a name/domain search text."
method: GET
path: "/api/v1/company/list"
tags: ["Company"]
---

# List companies in the workspace, optionally filtered by a name/domain search text.

`GET /api/v1/company/list`

## Request

- Base URL: `https://api.intheloop.io`
- URL: `https://api.intheloop.io/api/v1/company/list`
- Auth: API key in header `Authorization`

## Query parameters

- `size` integer
- `offsetHistoryId` string
- `searchText` string

## Headers

- `Loop-Workspace-Id` string
- `Authorization` string
- `X-Impersonate-User` string

## Response `200`

OK

- ListOfResourcesOfCompany: List of resources
  - `resources` Company[]: List of resources
    - `id` string: Resource id
    - `name` string: Resource name or title
    - `revision` string: Resource revision
    - `clientId` string: Resource client id
    - `$type` string, required
    - `domains` string[]: 0-n email domains owned by this Company. A domain belongs to exactly one Company per workspace.
    - `logo` string: Manually uploaded logo link. No third-party favicon resolution in v1.
    - `description` string: Free-text description.
    - `externalId` string: External CRM/ERP id. Unique within the workspace if set.
    - `profileCount` integer: Number of workspace profiles linked to this Company that the caller can see. Only populated when requested with ?with=profileCount on a single-company get; read-only, ignored on create/update.
  - `size` integer, required: Page size
  - `offset` integer, required: Page offset
  - `offsetHistoryId` string: Offset history id
  - `totalSize` integer, required: Total size (if total size is at least one bigger than size, then there are more resources). Total size does not necessarily mean the actual total size

## Other responses

- `400`: Bad request. Check fields message and error code from response body for additional information.
- `401`: Unauthorized request. Check fields message and error code from response body for additional information.
- `429`: Too many requests. Check response header Retry-After indicating how long to wait before making a new request.

---

[API](https://skmtc.dev/intheloop/apis/loop-api.md) - [All operations](https://skmtc.dev/intheloop/apis/loop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/intheloop/apis/loop-api/revisions/0892c5ba0787?raw)
