Skip to main content
POST
Record contact consent

Authorizations

Authorization
string
header
required

Your personal access token where supported, or a scoped API key (hc_…) created inside HueChat at Account → Developer API. Send it as Authorization: Bearer <token>.

Path Parameters

accountId
integer
required

HueChat account ID

contactId
integer
required

Contact ID

Body

application/json

Consent evidence

channel
enum<string>
Available options:
whatsapp,
email
Example:

"whatsapp"

evidence
string
Example:

"Consent recorded in CRM form 8842"

expected_version
integer
Example:

0

purpose
enum<string>
Available options:
marketing,
service
Example:

"marketing"

status
enum<string>
Available options:
granted,
revoked,
unknown
Example:

"granted"

Response

OK

The response is of type object.