The Batch API Contacts endpoint allows you to create or delete batches of up to 1000 contacts.
You can use the Conversation API Contact documentation as additional reference material.
Creates a batch of up to 1000 contacts as specified by the list of contacts.
The contacts are created asynchronously. A CONTACT_CREATE
event will be generated for every successfully created contact.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
OK
Invalid credentials
Permission denied. The specified project may not be allowed to use the batch endpoint.
Internal error
{- "contacts": [
- {
- "channel_identities": [
- {
- "channel": "WHATSAPP",
- "identity": "{{PHONE_NUMBER_1}}"
}
], - "language": "EN_US"
}, - {
- "channel_identities": [
- {
- "channel": "RCS",
- "identity": "{{PHONE_NUMBER_2}}"
}
], - "language": "EN_US"
}, - {
- "channel_identities": [
- {
- "channel": "RCS",
- "identity": "{{PHONE_NUMBER_3}}"
}
], - "language": "EN_US"
}
]
}
{- "error": {
- "code": 403,
- "message": "",
- "status": "PERMISSION_DENIED",
- "details": [ ]
}
}
Deletes a batch of up to 1000 contacts as specified by the list of contact IDs.
The contacts are deleted asynchronously. A CONTACT_DELETE
event will be generated for every successfully deleted contact.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
OK
Invalid credentials
Permission denied. The specified project may not be allowed to use the batch endpoint.
Internal error
{- "contact_ids": [
- "{{CONTACT_1}}",
- "{{CONTACT_2}}",
- "{{CONTACT_3}}",
- "{{CONTACT_4}}",
- "{{CONTACT_5}}"
]
}
{- "error": {
- "code": 403,
- "message": "",
- "status": "PERMISSION_DENIED",
- "details": [ ]
}
}