Skip to content
dimmiDocs

Contacts and companies

Contacts and companies API

Create, update, import, and erase customer contacts, companies, notes, custom attributes, tracked events, and audiences over the dimmi REST API.

Customers and companiesManage customer profiles, company records, and shared account history.

Attribute definitions

4 endpoints

Attribute problems

1 endpoint

Audiences

6 endpoints

Companies

10 endpoints
GETList companies/companiesGET /companies: Lists the companies your customers belong to. q searches by name or domain. Returns a page of companies, with next_cursor for more.GETList a company's notes/companies/{company}/notesLists what the team wrote about a company, the pinned note first, then newest first. Returns the notes with their author and when they were written.GETList a company's series/companies/{company}/seriesLists the account series a company is or was on, and where it stands on each. Returns the company's journeys with their series, step and status.GETList a company's people/companies/{company}/contactsGET /companies/{company}/contacts: Lists the contacts linked to one company, newest first. Returns a page of contacts, with next_cursor for more.GETList a company's conversations/companies/{company}/conversationsLists the conversations of all the company's people that you may see, newest first. Returns a page of conversations, with next_cursor for more.POSTAdd a company/companiesAdds a company. With upsert=true it finds the company by external id, then domain, and updates it instead, so it is safe to repeat. Link people to it...POSTAdd a note about a company/companies/{company}/notesPOST /companies/{company}/notes: Writes a note only the team sees about a company. dimmi REST API reference.GETGet a company/companies/{company}GET /companies/{company}: Reads one company: name, domain, external id, custom attributes, tags and notes. Returns the company. dimmi REST API reference.PATCHUpdate a company/companies/{company}PATCH /companies/{company}: Changes a company's details, custom attributes, notes or tags. Only sent fields change. Returns the company as it now is.DELETEDelete a company/companies/{company}DELETE /companies/{company}: Deletes a company. Its people stay as contacts without a company, and their conversations are untouched. dimmi REST API reference.

Contact erasures

3 endpoints

Contact events

1 endpoint

Contact lists

1 endpoint

Contact notes

2 endpoints

Contacts

21 endpoints
GETList contacts/contactsLists the workspace's customers (users, who have an external id) and leads, most recently seen first. Blocked contacts stay out unless filter[blocked]=true.GETList a customer's notes/contacts/{contact}/notesLists what the team wrote about a customer, the pinned note first, then newest first. Returns the notes with their author and when they were written.GETList a contact's series/contacts/{contact}/seriesGET /contacts/{contact}/series: Lists the series a contact is or was on, and where they stand on each. Returns the contact's journeys with their series...GETFind duplicate contacts/contacts/{contact}/duplicatesLists contacts that look like the same person as this one, such as a lead who typed the address of an existing user, with the reasons. Nothing is merged...GETList a contact's identities/contacts/{contact}/identitiesLists how a customer appears on channels: email addresses, phone numbers, chat app users. Messages from any of them land in this contact's history.GETList a contact's conversations/contacts/{contact}/conversationsGET /contacts/{contact}/conversations: Lists the conversations of one customer that you may see, newest first. Returns a page of conversations...GETSummarize a contact's events/contacts/{contact}/event-summariesSays what one person did in your product: for each event name, how many times overall and in the last 7 and 30 days, and when first and last.POSTAdd a contact/contactsAdds a customer or lead. With upsert=true it finds the contact by external id, then by a proven email, and updates it instead, so it is safe to repeat.POSTAdd a note about a customer/contacts/{contact}/notesPOST /contacts/{contact}/notes: Writes a note only the team sees about a customer, such as context for the next teammate. dimmi REST API reference.POSTMerge a duplicate contact into this one/contacts/{contact}/mergesFolds source_id into this contact: conversations, identities, tags and event counts move over, this contact's details win and the source only fills blanks.POSTExport a customer's data/contacts/{contact}/exportsStarts building a zip of everything dimmi holds about one customer, to answer their request for a copy of their data. It is built in the background and kept...POSTAdd a company to a contact/contacts/{contact}/companiesLinks a contact to one more company. A contact can belong to several; one is the default, which conversations and tickets take when they start.POSTMake a company a contact's default/contacts/{contact}/companies/{company}/defaultMakes one of the contact's companies its default: company_id and company on the contact then name it, and new conversations and tickets take it.GETGet a contact/contacts/{contact}GET /contacts/{contact}: Reads one customer or lead: details, custom attributes, tags, company and notes. Returns the contact. dimmi REST API reference.GETGet a customer's export/contacts/{contact}/exports/{export}GET /contacts/{contact}/exports/{export}: Reads where a customer's export stands: pending, running, ready, failed or expired. Returns the export, with when...PATCHUpdate a contact/contacts/{contact}Changes a contact's details, custom attributes, notes, tags, company or blocked state. Only sent fields change. Setting an external id turns a lead into...DELETEDelete or erase a contact/contacts/{contact}Without erase, removes a contact added by mistake and only if it has no conversations. With erase=true, starts a privacy erasure: the person vanishes...DELETESign a contact out of the messenger/contacts/{contact}/widget-sessionsEnds every messenger session the contact has on your sites, such as after an account compromise. They must sign in again with a fresh identity token to keep...DELETERemove a company from a contact/contacts/{contact}/companies/{company}Unlinks a contact from one company. When it was the default, the company linked longest becomes the default, or the contact has none left. Returns...DELETEDetach a contact identity/contacts/{contact}/identities/{identity}Detaches an address or account attached to the wrong customer. The next message from it starts a new lead instead of joining this contact's history; past...GETDownload a customer's export/contacts/{contact}/exports/{export}/downloadFetches the zip of a customer's data, to hand to that customer. It holds all their personal data, so fetch it only for the person answering the request.

Event definitions

2 endpoints

Event settings

2 endpoints

Imports

7 endpoints