List contacts
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`.
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),createdAtorlastActivityAt.sortDirection:ascordesc. Defaults toasc, and todescwhen sorting bylastActivityAt.includeArchived:trueadds archived contacts to the list.archivedOnly:truereturns only archived contacts. Wins overincludeArchived.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 recordchainRecordIdis:Deal(default),Contact,CompanyorOrder.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Query Parameters
1 <= value1 <= value <= 200lastActivityAt (FR-B3) sorts by the record's most-recent timeline entry.
Value in
- "createdAt"
- "lastActivityAt"
- "name"
Value in
- "asc"
- "desc"
Include archived contacts in the list (default false — archived are hidden).
Show only archived contacts (takes precedence over includeArchived).
Scope the list to the owning tenant of this assigned chain record instead of the caller's own book.
^[0-9a-fA-F]{24}$The entity scope of chainRecordId (defaults to Deal).
Value in
- "Company"
- "Contact"
- "Deal"
- "Order"
ISO instant; records created before it are excluded.
date-timeISO instant; records created after it are excluded.
date-timeHeader 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"{ "data": [ { "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" } }, "company": { "id": "string", "name": "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", "hasPossibleDuplicate": true, "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", "owner": { "avatarRef": "string", "companyUserId": "string", "name": "string" }, "phone": "string", "role": "string", "sharedViaChain": true, "sharedViaChainName": "string", "tags": [ { "colorHex": "string", "label": "string", "optionId": "string" } ], "timeZone": "string", "updatedAt": "2019-08-24T14:15:22Z" } ], "limit": 0, "page": 0, "total": 0, "totalPages": 0}Get a contact GET
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.
Restore a contact POST
Brings back an archived contact. Restoring a contact that is not archived changes nothing. A contact shared with you through your chain returns 403.