Skip to content

Delete a contact

Request

You can delete a single contact.

Requires the read_write_users or write_users_companies OAuth scope.

Security
bearerAuth
Path
contact_idstringrequired

contact_id

Headers
Intercom-Versionstring(intercom_version)

Intercom API version.
If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.

Enum:"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4"
Example:2.17
library(httr)

contact_id = "YOUR_contact_id_PARAMETER"

# create you own operator
"%&%" <- function(x, y)paste0(x,y)

url = "https://api.intercom.io/contacts/" %&% contact_id

data_req <- DELETE(
  url,
  add_headers("Intercom-Version" = "2.17", "Authorization" = "Bearer <YOUR_TOKEN_HERE>"),
  verbose()
)

content(data_req)

Responses

successful

Bodyapplication/json
typestring

always contact

Value:"contact"
Example:"contact"
idstring

The unique identifier for the contact which is given by Intercom.

Example:"5ba682d23d7cf92bef87bfd4"
external_idstring or null

The unique identifier for the contact which is provided by the Client.

Example:"70"
deletedboolean

Whether the contact is deleted or not.

Example:true
Response
{ "deleted": true, "type": "contact", "id": "5ba682d23d7cf92bef87bfd4", "external_id": "70" }