Archive a contact
Archives the contact, which hides it from the default list. Archiving an archived contact changes nothing. A contact shared with you through your chain returns 403; only its owner can archive it.
Archives the contact, which hides it from the default list. Archiving an archived contact changes nothing. A contact shared with you through your chain returns 403; only its owner can archive it.
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 POST "https://example.com/crm/contacts/string/archive"{ "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"}List the caller's connected calendars GET
Returns the Google and Outlook calendars the caller connected in this company. With an API key, the caller is the member who created the key; other members' calendars are never returned. An empty list means no calendar is connected.
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.