Skip to content

Delete contacts

Request

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.

Security
BearerAuth
Path
project_idstringrequired

The unique ID of the project. You can find this on the Sinch Dashboard.

Bodyapplication/jsonrequired
contact_idsArray of strings, [ 1 .. 1000 ] itemsrequired

List of IDs for contacts to be deleted in Conversation API.

curl -i -X DELETE \
  'https://us.conversationbatch.api.sinch.com/v1/projects/{project_id}/contacts' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "contact_ids": [
      "{{CONTACT_1}}",
      "{{CONTACT_2}}",
      "{{CONTACT_3}}",
      "{{CONTACT_4}}",
      "{{CONTACT_5}}"
    ]
  }'

Responses

OK

Response
No content