Contacts consent record
post/crm/contacts/{id}/consent
Record a consent decision with its proof (the words, the source, the policy version).
Before you call
- Credential
Authorization: Bearer $KEY- Scope
contacts:write- Graphql
Mutation.contactsConsentRecord- Sdk
contacts.consent.record- Cli
contacts consent record- Events
contacts.consent.recorded
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- channelstringrequiredOne of: email, sms, whatsapp, phone.
- purposestringDefault: marketing. Pattern: ^[a-z][a-z0-9_]{0,29}$.
- statestringrequiredOne of: granted, withdrawn, denied, pending.
- sourcestringrequiredAt most 120 characters.
- policyVersionstringAt most 40 characters.
- ipstringAt most 64 characters.
- userAgentstringAt most 300 characters.
- proofobject
- atstring (date-time)
Responses
- 201application/jsonSuccess
object - 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring