Contacts

Create or update a contact by your own id (attrs are merged)

PUT
/v1/contacts/{id}

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Path Parameters

id*string
Length1 <= length <= 128

Request Body

application/json
  1. body
first_name?|null
last_name?|null
email?|null
phone?|null
linkedin_url?|

LinkedIn profile URL; linkedin.com/in/dana is accepted. Needed for LinkedIn steps.

country?|null
timezone?|null
attrs?

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X PUT 'http://localhost:8080/v1/contacts/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "success": true,  "data": {    "id": "string",    "projectId": "string",    "externalId": "string",    "firstName": "string",    "lastName": "string",    "email": "string",    "phone": "string",    "linkedinUrl": "string",    "country": "string",    "timezone": "string",    "outreachConsent": true,    "outreachConsentAt": "2019-08-24T14:15:22Z",    "outreachConsentSource": "string",    "smsConsent": true,    "smsConsentAt": "2019-08-24T14:15:22Z",    "smsConsentSource": "string",    "attrs": {      "property1": null,      "property2": null    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "meta": {    "request_id": "string"  }}