---
title: "List companies"
method: GET
path: "/companies"
tags: ["Companies"]
---

# List companies

`GET /companies`

## Request

- Base URL: `https://there-there.app/api`
- URL: `https://there-there.app/api/companies`
- Auth: HTTP bearer

## Query parameters

- `filter[name]` string
- `filter[domain]` string
- `filter[search]` string
- `sort` 'name' | '-name' | 'created_at' | '-created_at' | 'contact_count' | '-contact_count' | 'ticket_count' | '-ticket_count'
- `per_page` integer
- `page` integer

## Headers

- `X-Workspace-Id` integer

## Response `200`

Paginated list of companies

- PaginatedCompanies
  - `data` Company[]
    - `id` integer
    - `ulid` string
    - `name` string
    - `domain` string, nullable
    - `phone` string, nullable
    - `notes` string, nullable
    - `contact_count` integer, nullable
    - `ticket_count` integer, nullable
  - `meta` PaginationMeta
    - `current_page` integer
    - `last_page` integer
    - `per_page` integer
    - `total` integer
  - `links` PaginationLinks
    - `first` string, nullable
    - `last` string, nullable
    - `prev` string, nullable
    - `next` string, nullable

---

[API](https://skmtc.dev/there-there/apis/there-there-api.md) · [All operations](https://skmtc.dev/there-there/apis/there-there-api/llms.txt) · [OpenAPI document](https://skmtc.dev/there-there/apis/there-there-api/revisions/1811fb0febc1?raw)
