Work with contact items
AI Assist
A contact item stores one person’s details in a contact list. 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. |
| 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. |
LeadResearch product overview · Shared lists in BusinessCards · Reviewing DataAgents suggestions
To receive contact data when a user exports it, configure a Contacts webhook.
Read contacts from a list
Section titled “Read contacts from a list”Send your personal API token in x-api-key. The base URL is https://backend.snapaddy.com/contact.
- Find a list and keep its
contactListId. - Call
GET /v1/contact-list/{contactListId}/contact-itemswithlimitandoffset. The default page size is 50 and the maximum is 1,000. Keep the same search and sort settings when requesting the next page. - For the list’s total size, call
GET /v1/contact-list/{contactListId}/contact-item-countand readcountfrom 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
Section titled “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.
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"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());import jsonimport osfrom urllib.parse import quotefrom 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
Section titled “Create a contact item”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" }'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());import jsonimport osfrom 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 in the API reference for all request fields.
Read, update, or delete an item
Section titled “Read, update, or delete an item”GET /v1/contact-item/{contactItemId}returns item details, includingattachmentsUrlsand 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 usedPUT.DELETE /v1/contact-item/{contactItemId}removes the item with that ID.