30646: Failed to Upsert Consent
MESSAGING
ERROR
This error occurs when a bulk consent upsert contains one or more invalid consent fields, or when the upsert fails because of an internal server error. Twilio maps validation failures to the submitted correlation_id so you can identify which consent object failed.
INVALID_CORRELATION_ID. Thecorrelation_idvalue is not a valid unique 32-character UUID for the request item.INVALID_SENDER_ID. Thesender_idvalue is not a valid Messaging Service SID or a valid From phone number.INVALID_CONTACT_ID. Thecontact_idvalue is not a valid phone number inE.164format.INVALID_STATUS. Thestatusvalue is notopt-inoropt-out.INVALID_SOURCE. Thesourcevalue is notwebsite,offline,opt-in-message,opt-out-message, orothers.INVALID_DATE_OF_CONSENT. Thedate_of_consentvalue is not a valid ISO-8601 datetime, or it is set in the future.INTERNAL_SERVER_ERROR. The upsert failed because of an internal server error during processing.
- Generate a new unique 32-character UUID for each
correlation_idso each consent object can be matched to its response item. - Set
sender_idto a valid Messaging Service SID or a valid From phone number. If you want consent and opt-outs synchronized across RCS, SMS, and MMS, use a Messaging Service SID when possible. - Format
contact_idas a validE.164phone number, such as+14155552671. - Send only accepted
statusvalues. Useopt-into record consent or re-opt-in, and useopt-outto record revoked consent. - Send only accepted
sourcevalues:website,offline,opt-in-message,opt-out-message, orothers. - If you provide
date_of_consent, send it as an ISO-8601 datetime and do not use a future timestamp. If you do not have this value, omit it instead of sending an invalid date. - If you receive an internal server error, retry the request. If the problem continues, collect at least three
correlation_idvalues from the last 24 hours before contacting Support.