# Work with contact items

A **contact item** stores one person’s details in a [contact list](/contacts/contact-lists/). It can include company information, phone numbers, email, and attachments. The list controls who can access the record.

| Product | Where contact items fit |
| --- | --- |
| BusinessCards | Scan a business card, then read the saved contact from your BusinessCards list. Teams can also move scanned contacts into a shared list. |
| LeadResearch | Build a list of prospects from online research. Add or update records in that list so the sales team can review, enrich, and export them. |
| DataAgents | A workflow can add a suggested contact to a list for review. To start one from your integration, use a [workflow trigger](/data-agents/workflows/). |
| VisitReport | An event interaction is a report with participants, answers, and event context. To read or correct a person captured on a report, use [Reports and participants](/visitreport/reports/). |

[LeadResearch product overview](https://snapaddy.com/en/products/leadresearch/) · [Shared lists in BusinessCards](https://portal.snapaddy.com/knowledge/businesscards-shared-contact-list) · [Reviewing DataAgents suggestions](https://portal.snapaddy.com/knowledge/how-to-check-suggestions)

To receive contact data when a user exports it, [configure a Contacts webhook](/contacts/webhooks/).

## Read contacts from a list

Send your [personal API token](/authentication/#personal-api-token) in `x-api-key`. The base URL is `https://backend.snapaddy.com/contact`.

1. [Find a list](/contacts/contact-lists/#find-your-lists) and keep its `contactListId`.
2. Call `GET /v1/contact-list/{contactListId}/contact-items` with `limit` and `offset`. The default page size is 50 and the maximum is 1,000. Keep the same search and sort settings when requesting the next page.
3. For the list’s total size, call `GET /v1/contact-list/{contactListId}/contact-item-count` and read `count` from the response.

To read your own BusinessCards contacts directly, use `GET /v1/contact-list/my/business-card/contact-items`.

## Check which contacts are still in a list

If your CRM stores snapAddy contact item IDs, you can compare them with the current list membership in one request. Set `CONTACT_LIST_ID` to a `contactListId` from the list discovery response.

```bash
curl --fail-with-body \
  "https://backend.snapaddy.com/contact/v1/contact-list/$CONTACT_LIST_ID/contact-item-ids" \
  -H "x-api-key: $SNAPADDY_API_KEY"
```

```typescript
const apiKey = process.env.SNAPADDY_API_KEY;
if (!apiKey) throw new Error("Set SNAPADDY_API_KEY");
const contactListId = process.env.CONTACT_LIST_ID;
if (!contactListId) throw new Error("Set CONTACT_LIST_ID");

const response = await fetch(`https://backend.snapaddy.com/contact/v1/contact-list/${encodeURIComponent(contactListId)}/contact-item-ids`, {
  headers: { "x-api-key": apiKey },
});
if (!response.ok) throw new Error(`Request failed (${response.status})`);
console.log(await response.json());
```

```python
import json
import os
from urllib.parse import quote
from urllib.request import Request, urlopen

request = Request(
    f"https://backend.snapaddy.com/contact/v1/contact-list/{quote(os.environ['CONTACT_LIST_ID'], safe='')}/contact-item-ids",
    headers={"x-api-key": os.environ["SNAPADDY_API_KEY"]},
)
with urlopen(request, timeout=20) as response:
    print(json.load(response))
```

A successful response contains an `ids` array of strings. An empty list returns `{"ids":[]}`. This endpoint returns all current items in the selected list, omits deleted items, and takes no search or pagination parameters. The list must be accessible to your account.

Fetch individual records with `GET /v1/contact-item/{contactItemId}` when you need their fields. A contact can keep the same ID when its details change, so checking membership alone will not detect field updates.

## Create a contact item

```bash
curl --fail-with-body \
  'https://backend.snapaddy.com/contact/v1/contact-item' \
  -H "x-api-key: $SNAPADDY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{
    "contactListId":"ExampleList00001",
    "firstName":"Alex",
    "lastName":"Morgan",
    "email":"alex@example.com"
  }'
```

```typescript
const apiKey = process.env.SNAPADDY_API_KEY;
if (!apiKey) throw new Error("Set SNAPADDY_API_KEY");

const payload = {
  contactListId: "ExampleList00001",
  firstName: "Alex",
  lastName: "Morgan",
  email: "alex@example.com"
};
const response = await fetch("https://backend.snapaddy.com/contact/v1/contact-item", {
  method: "POST",
  headers: { "x-api-key": apiKey, "Content-Type": "application/json" },
  body: JSON.stringify(payload),
});
if (!response.ok) throw new Error(`Request failed (${response.status})`);
console.log(await response.json());
```

```python
import json
import os
from urllib.request import Request, urlopen

payload = {
    "contactListId": "ExampleList00001",
    "firstName": "Alex",
    "lastName": "Morgan",
    "email": "alex@example.com"
}
request = Request(
    "https://backend.snapaddy.com/contact/v1/contact-item",
    method="POST",
    headers={"x-api-key": os.environ["SNAPADDY_API_KEY"], "Content-Type": "application/json"},
    data=json.dumps(payload).encode(),
)
with urlopen(request, timeout=20) as response:
    print(json.load(response))
```

The API returns `201 Created` and the new item. Keep its `id` as the `contactItemId` for later requests. Your account needs write access to the list. See [Create a contact item](/reference/contacts/#POST/v1/contact-item) in the API reference for all request fields.

## Read, update, or delete an item

- `GET /v1/contact-item/{contactItemId}` returns item details, including `attachmentsUrls` and available image URLs. Use the signed URLs returned by the API. Request the item again when a link expires.
- `PATCH /v1/contact-item/{contactItemId}` updates the specified fields. For example, send `{"position":"Sales Manager"}`. The old Contacts API used `PUT`.
- `DELETE /v1/contact-item/{contactItemId}` removes the item with that ID.

[Contacts API reference](/reference/contacts/) · [Legacy migration guide](/migration/legacy-api/)
