AccountsBulk Contacts
Create Bulk Contacts
Authorization
accountSid_authToken AuthorizationBasic <token>
In: header
Request Body
application/x-www-form-urlencoded
Items*array<unknown>
A list of objects where each object represents a contact's details. Each object includes the following fields: contact_id, which must be a string representing phone number in E.164 format; correlation_id, a unique 32-character UUID that maps the response to the original request; country_iso_code, a string representing the country using the ISO format (e.g., US for the United States); and zip_code, a string representing the postal code.
Response Body
application/json
curl -X POST "https://example.com/v1/Contacts/Bulk" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'Items=%7B%22contact_id%22%3A%22%2B19999999999%22%2C%22correlation_id%22%3A%22ad388b5a46b33b874b0d41f7226db2eh%22%2C%22country_iso_code%22%3A%22US%22%2C%22zip_code%22%3A%2212345%22%7D%2C%7B%22contact_id%22%3A%22%2B19%22%2C%22correlation_id%22%3A%2202520cfa6c432f0e3ec3a38c122d428a%22%2C%22country_iso_code%22%3A%22US%22%2C%22zip_code%22%3A%2212345%22%7D'{ "items": [ { "correlation_id": "ad388b5a46b33b874b0d41f7226db2eh", "error_code": 0, "error_messages": [] }, { "correlation_id": "02520cfa6c432f0e3ec3a38c122d428a", "error_code": 30647, "error_messages": [ "INVALID_CONTACT_ID" ] } ]}