# List companies

```http
GET https://trydimmi.com/api/v1/companies
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `contacts:read`.

## Query parameters

- `filter[tag]` (string): Id of a tag (tag_...) the companies carry.
- `limit` (string): How many items to return in one page, such as 25.
- `cursor` (string): Leave out for the first page. To read the next page, pass the next_cursor the previous page returned.
- `q` (string): Words to search for, such as refund.
- `page` (string): A numbered page from 1, instead of a cursor.
- `total` (string): true to count every matching company, up to a cap. One of: `true`.

## Response 200 (OK)

- `data` (object[] | null, required): The items of this page, as a list; empty when nothing matches.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `custom_attributes` (any, required): The company's custom attributes as an object of names and values, such as {"plan": "pro"}. An empty object when it has none.
  - `domain` (string | null, required): The company's web domain, such as acme.com, used to match it when it has no external id. Null when unknown.
  - `external_id` (string | null, required): The company's id in your own system, unique within the workspace. Null when none was given.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `name` (string, required): The company's name.
  - `notes` (string | null, required): Free-text notes the team keeps about the company. Null when there are none.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `people_count` (integer): How many contacts belong to the company. Given only in lists; absent when one company is read.
  - `tags` (object[] | null, required): The tags on the company, each with its id and name.
    - `color` (string | null, required): The tag's color as a hex value, such as #ff5500, kept as the workspace wrote it; null when it has none.
    - `icon` (string | null, required): Name of the tag's icon; null when it has none.
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `name` (string, required): The tag's name.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
- `links` (object): Addresses of related pages by name, such as next; left out when there are none.
- `meta` (object, required)
  - `next_cursor` (string | null, required): Send it as cursor to read the next page; null on the last page.
  - `per_page` (integer, required): How many items a page holds at most, such as 25.
  - `prev_cursor` (string | null, required): Send it as cursor to read the page before; null on the first page.
  - `total` (integer): How many items match in all; left out when the list does not count them.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request GET \
  --url 'https://trydimmi.com/api/v1/companies' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": [
    {
      "created_at": "2026-11-01T09:30:00Z",
      "custom_attributes": null,
      "domain": "<string>",
      "external_id": "<string>",
      "id": "<string>",
      "name": "<string>",
      "notes": "<string>",
      "object": "<string>",
      "people_count": 123,
      "tags": [
        {
          "color": "<string>",
          "icon": "<string>",
          "id": "<string>",
          "name": "<string>",
          "object": "<string>"
        }
      ],
      "updated_at": "2026-11-01T09:30:00Z"
    }
  ],
  "links": {
    "<key>": "<string>"
  },
  "meta": {
    "next_cursor": "<string>",
    "per_page": 123,
    "prev_cursor": "<string>",
    "total": 123
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
