19013: Contact requires at least one name, unique_customer_provided_id, or channel
MESSAGING
ERROR
This error occurs when you submit a contact without any field that Twilio accepts to identify or describe that contact. Include at least one of first_name, middle_name, last_name, legal_name, preferred_name, unique_customer_provided_id, or channel.
- The contact payload did not include any of the required fields.
- The request only included other contact data, so Twilio could not find a supported name field,
unique_customer_provided_id, orchannelvalue in the payload. This is an inference based on the required-field validation for this error and the supported contact field validation used by related contact errors.
- Update the contact payload to include at least one supported field before you retry the request. You can use
first_name,middle_name,last_name,legal_name,preferred_name,unique_customer_provided_id, orchannel. - If you identify contacts from your own system, send
unique_customer_provided_idso you can create and retrieve the contact consistently. - If you identify contacts by channel, include
channeldata in the contact object instead of sending an empty contact record. When you later fetch the contact, use eitherunique_customer_provided_idorchannel, not both.