# List contacts

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

## Authorization

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

## Query parameters

- `filter[kind]` (string): user or lead.
- `filter[email]` (string): An email address to match exactly, such as ana@example.com.
- `filter[external_id]` (string): Your own system's id of the person, such as user_8421.
- `filter[blocked]` (string): true to list blocked contacts too. false when left out.
- `filter[company]` (string): The id of a company, such as cmp_01jx2m8k4t: only its people.
- `filter[tag]` (string): Tag ids separated by commas, such as tag_01jx2m8k4t.
- `filter[last_seen_after]` (string): Only contacts last seen after this time, such as 2026-01-31T09:00:00Z.
- `filter[last_seen_before]` (string): Only contacts last seen before this time, such as 2026-01-31T09:00:00Z.
- `filter[created_after]` (string): Only contacts created after this time, such as 2026-01-31T09:00:00Z.
- `filter[created_before]` (string): Only contacts created before this time, such as 2026-01-31T09:00:00Z.
- `sort` (string): last_seen_at (default), created_at or name, with a leading minus for descending. One of: `last_seen_at`, `-last_seen_at`, `created_at`, `-created_at`, `name`, `-name`.
- `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 contact, up to a cap. One of: `true`.
- `conditions` (string): A JSON list of {field, op, value or values}. Fields: name, email, phone, user_id, kind, tags, company, last_seen, created, custom.<key>, and audience with op in_any or in_none and values of audience ids (audn_...). Ten at most.

## Response 200 (OK)

- `data` (object[] | null, required): The items of this page, as a list; empty when nothing matches.
  - `avatar_url` (string | null, required): URL of the contact's picture. Null when they have none.
  - `blocked` (boolean, required): True when the team has blocked this contact.
  - `company` (object, required)
    - `domain` (string | null, required): The company's web domain, such as acme.com. Null when unknown.
    - `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.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `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 contact's custom attributes as an object of names and values, such as {"plan": "pro"}. An empty object when there are none.
  - `email` (string | null, required): The contact's email address. Null when unknown. Not unique: a lead may type any address, so check email_verified.
  - `email_verified` (boolean, required): True only when a trusted source proved the email belongs to this contact; an address a lead typed stays false.
  - `external_id` (string | null, required): The contact's id in your own system. Null when none was given.
  - `first_seen_at` (string | null, required): When the contact was first seen. Null when never recorded.
  - `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.
  - `kind` (string, required): How well the contact is known: user when your app identified them (verified token or API), lead for anyone else.
  - `last_seen_at` (string | null, required): When the contact was last seen. Null when never recorded.
  - `locale` (string | null, required): The contact's language as a locale code, such as en or pt-BR. Null when unknown.
  - `location` (any, required): Where the contact is, as a JSON object. Null when unknown.
  - `name` (string | null, required): The contact's name. Null when unknown.
  - `notes` (string | null, required): Free-text notes the team keeps about the contact. 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.
  - `phone` (string | null, required): The contact's phone number. Null when unknown.
  - `tags` (object[] | null, required): The tags on the contact, each with its id and name. Empty in plain lists that do not load tags.
    - `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.
  - `timezone` (string | null, required): The contact's IANA time zone, such as Europe/Berlin, for reading times in their local time. Null when unknown.
  - `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/contacts' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": [
    {
      "avatar_url": "<string>",
      "blocked": true,
      "company": {
        "domain": "<string>",
        "id": "<string>",
        "name": "<string>",
        "object": "<string>"
      },
      "created_at": "2026-11-01T09:30:00Z",
      "custom_attributes": null,
      "email": "<string>",
      "email_verified": true,
      "external_id": "<string>",
      "first_seen_at": "2026-11-01T09:30:00Z",
      "id": "<string>",
      "kind": "<string>",
      "last_seen_at": "2026-11-01T09:30:00Z",
      "locale": "<string>",
      "location": null,
      "name": "<string>",
      "notes": "<string>",
      "object": "<string>",
      "phone": "<string>",
      "tags": [
        {
          "color": "<string>",
          "icon": "<string>",
          "id": "<string>",
          "name": "<string>",
          "object": "<string>"
        }
      ],
      "timezone": "<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)
