Contacts

Report an event the service cannot see: meeting_booked, opt_out, suppressed, reply

POST
/v1/contacts/{id}/events

201 when the event is new, 200 with created: false when its id was seen before.

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
id*string
Length1 <= length <= 200
type*string
Value in"meeting_booked""opt_out""suppressed""reply"
occurred_at?unknown
channel?string
Value in"email""sms""all"
reason?string
Lengthlength <= 200
data?

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X POST 'http://localhost:8080/v1/contacts/string/events' \  -H 'Content-Type: application/json' \  -d '{  "id": "string",  "type": "meeting_booked"}'
{  "success": true,  "data": {    "signal": "string",    "created": true  },  "meta": {    "request_id": "string"  }}