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 endpointsGETList custom attributes
/attribute-definitionsLists the custom attributes contacts and companies carry, each with its key, type and list values. Keys already in use without a definition are added...POSTDefine a custom attribute/attribute-definitionsDefines a custom attribute so its values are typed and checked, and audience rules and filters can offer it. Its key and type never change afterwards.PATCHUpdate a custom attribute/attribute-definitions/{attribute}Changes a custom attribute's label, description or list values, archives it to stop new values while keeping old ones, or lets browsers write it.DELETEDelete a custom attribute/attribute-definitions/{attribute}Deletes an archived custom attribute and removes its value from every contact or company for good. Archive it with PATCH /attribute-definitions/{attribute}...Attribute problems
1 endpointAudiences
6 endpointsGETList audiences
/audiencesLists the saved audiences: named rules selecting contacts, used by workflows, the messenger, help articles and the AI agent wherever dimmi asks who.POSTCreate an audience/audiencesSaves a named rule selecting contacts by their details, custom attributes, events, tags and company. Membership is never stored: it always means who matches...POSTTag everyone in an audience/audiences/{audience}/freezesPuts a tag on everyone a saved audience matches right now, so the group stays fixed while the audience keeps changing. Later joiners are not tagged.GETGet an audience/audiences/{audience}GET /audiences/{audience}: Reads one saved audience with its rule and what uses it: workflows and other audiences. Returns the audience with used_by...PATCHUpdate an audience/audiences/{audience}Changes a saved audience's name, description or rule. Everything using it follows the change at once, so check what uses it with GET /audiences/{audience}...DELETEDelete an audience/audiences/{audience}DELETE /audiences/{audience}: Deletes a saved audience. Refused while a live workflow or another audience uses it. dimmi REST API reference.Companies
10 endpointsGETList 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 endpointsGETList erasure requests
/contact-erasuresGET /contact-erasures: Lists the workspace's requests to erase customers and where each stands. Returns a page of erasure requests, newest first.GETGet an erasure request/contact-erasures/{contact_erasure}GET /contact-erasures/{contact_erasure}: Reads one erasure request: its customer, status, when the wipe is due and what it removed. Returns the erasure request.PATCHCancel an erasure/contact-erasures/{contact_erasure}Withdraws an erasure still in its grace period: the customer comes back as they were. A completed erasure cannot be undone. Returns the request, now...Contact events
1 endpointContact lists
1 endpointContact notes
2 endpointsContacts
21 endpointsGETList 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 endpointsGETList event names
/event-definitionsLists the names of the events your product reports, with how many arrived and when last. Returns the event definitions, with status active or archived.PATCHUpdate an event name/event-definitions/{event}Changes an event name's label or description, or archives it to stop recording new events of it. Counts already kept still answer audience rules.Event settings
2 endpointsGETGet the messenger event settings
/event-settingsGET /event-settings: Reads whether the messenger may record event names nobody defined yet. Returns the event settings. dimmi REST API reference.PATCHChange the messenger event settings/event-settingsTurns on or off accepting any event name sent from the messenger; when off, only names marked writable from the messenger are recorded. Returns the event...Imports
7 endpointsGETList imports
/importsLists the latest imports of customers or companies with where each stands. Imports need imports:manage. Returns up to 20 imports, newest first.POSTUpload an import file/importsUploads a CSV of contacts or companies and keeps it as a draft import to map and run next. It needs a multipart form with the CSV in the field named file...POSTStart an import/imports/{import}/runsStarts a draft import in the background with the mapping and mode given. An import runs once. Returns the import with status queued; poll it for progress.POSTDry run an import/imports/{import}/previewsRuns a mapping over every row without writing anything and counts what would be created, updated, skipped or refused. Returns the counts and the first...POSTUndo an import/imports/{import}/rollbacksUndoes a finished import within 7 days, in the background: removes the records it created unless changed or talked to since, puts back the values it changed...GETGet an import/imports/{import}Reads one import: its columns, mapping, progress, counts and first failed rows. Returns the import with status draft, queued, running, completed or failed.GETDownload an import's failed rows/imports/{import}/errorsGET /imports/{import}/errors: Fetches a CSV of the rows that failed, each with its line in the file and why. Returns the CSV. dimmi REST API reference.