Contacts

Record consent to texts and agent calls (admin only)

PUT
/v1/contacts/{id}/outreach-consent

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
consent*boolean
source?string
Lengthlength <= 80
at?unknown

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X PUT 'http://localhost:8080/v1/contacts/string/outreach-consent' \  -H 'Content-Type: application/json' \  -d '{  "consent": true}'
{  "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"  }}