VocalDocscontracts 1.65.0

ConsentRecordCreateRequest

Records one consent event (1.61.0): an opt-in or an opt-out of an address on a channel, or a grant or revocation of caller memory for a Contact. Its source is api for an API key and dashboard for a Member in a console session.

An object with 10 fields.

Fields

FieldTypeRequiredDescription
addressConsentAddressnoThe address; required for every channel but memory, refused for memory.
basisConsentBasisnoRequired for opted_in and granted, refused for opted_out and revoked.
channelConsentChannelyes
contact_idContactIdnoThe Contact; required for memory, whose subject is a Contact. For an address channel it only links the record, and the Contact must hold the address (consent_contact_unknown otherwise).
evidenceConsentEvidenceInputnoRequired for an opt-in or a grant over an opted_out or revoked state (consent_evidence_required).
occurred_atRequestTimestampnoWhen the person acted; when the api records it if omitted.
purposeConsentPurposenoall when omitted.
scopeConsentScopenoorganization when omitted.
senderConsentSenderInputnoRequired with scope: sender, refused otherwise.
stateConsentStateValueyesAn address channel takes opted_in or opted_out, memory takes granted or revoked.

Used by

The operations whose parameters, request body or responses name this shape directly.