Get a contact
Returns the contact with its tags and custom field values, archived or not. An id from another company returns 404. A contact shared with you through a chain lead comes back with `sharedViaChain` set.
Returns the contact with its tags and custom field values, archived or not. An id from another company returns 404. A contact shared with you through a chain lead comes back with sharedViaChain set.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Path Parameters
The contact id.
^[0-9a-fA-F]{24}$Header Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Response Body
application/json
curl -X GET "https://example.com/crm/contacts/string"{ "archivedAt": "2019-08-24T14:15:22Z", "attribution": { "firstTouch": { "capturedAt": "string", "fbclid": "string", "gclid": "string", "landingPage": "string", "msclkid": "string", "referrer": "string", "ttclid": "string", "utmCampaign": "string", "utmContent": "string", "utmMedium": "string", "utmSource": "string", "utmTerm": "string" }, "lastTouch": { "capturedAt": "string", "fbclid": "string", "gclid": "string", "landingPage": "string", "msclkid": "string", "referrer": "string", "ttclid": "string", "utmCampaign": "string", "utmContent": "string", "utmMedium": "string", "utmSource": "string", "utmTerm": "string" } }, "companyId": "string", "companyName": "string", "createdAt": "2019-08-24T14:15:22Z", "customFields": [ { "fieldId": "string", "iconName": "string", "key": "string", "label": "string", "options": [ { "colorHex": "string", "id": "string", "label": "string", "order": 0 } ], "type": "Checkbox", "values": [ "string" ] } ], "email": "string", "id": "string", "isPrimary": true, "itxCustomerId": "string", "itxLastSyncError": "string", "itxLastSyncedAt": "2019-08-24T14:15:22Z", "language": "da", "lastActivityAt": "2019-08-24T14:15:22Z", "name": "string", "normalizedEmail": "string", "normalizedPhone": "string", "number": 0, "organizationId": "string", "phone": "string", "role": "string", "sharedViaChain": true, "sharedViaChainName": "string", "tags": [ { "colorHex": "string", "label": "string", "optionId": "string" } ], "timeZone": "string", "updatedAt": "2019-08-24T14:15:22Z"}Create a contact POST
Creates a person in your CRM. When other contacts already have the email or phone, nothing is created and the response has `outcome` `duplicate` with the matches. Send `force: true` to create it anyway; the contacts are then flagged as possible duplicates.
List contacts GET
Returns one page of the people in your CRM, sorted by name unless `sortBy` says otherwise. Archived contacts are left out by default. Query parameters: - `search`: matches the name, email or phone ignoring case, or the contact number when the term is a whole number. - `page`: page number, starting at 1. Defaults to 1. - `limit`: contacts per page, 1 to 200. Defaults to 50. - `sortBy`: `name` (default), `createdAt` or `lastActivityAt`. - `sortDirection`: `asc` or `desc`. Defaults to `asc`, and to `desc` when sorting by `lastActivityAt`. - `includeArchived`: `true` adds archived contacts to the list. - `archivedOnly`: `true` returns only archived contacts. Wins over `includeArchived`. - `createdFrom`, `createdTo`: ISO 8601 date-times. Only contacts created within the range, both ends included. - `chainRecordId`: a record assigned to you through your chain. Lists the contacts of the chain company that owns it instead of your own. - `chainScope`: what kind of record `chainRecordId` is: `Deal` (default), `Contact`, `Company` or `Order`.