Delete Contact

Prev Next
Post
/api/v1/contacts.delete
Premium tag

Delete a local personal contact owned by the authenticated user. Contacts imported by the Microsoft Exchange server-to-server sync cannot be deleted here and return 404 with error-contact-not-found.

Changelog

Version Description
9.1.0 Added
Header parameters
X-Auth-Token
stringRequired

The authToken of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The userId of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ
Body parameters
Example 1
{
  "contactId": "690c2b2d4e7e8bcf6985b3d8"
}
object
contactId
string Required

Enter the contact ID to delete.

Example690c2b2d4e7e8bcf6985b3d8
Responses
200

OK

Success
{
  "success": true
}
object
success
boolean
400

Bad Request

Missing Contact ID
{
  "success": false,
  "error": "must have required property 'contactId' [error-invalid-params]"
}
object
success
boolean
error
string
401

Unauthorized

Authorization Error
{
  "success": false,
  "error": "You must be logged in to do this."
}
object
success
boolean
error
string
403

Forbidden

Permission Error
{
  "success": false,
  "error": "User does not have the permissions required for this action",
  "errorType": "error-forbidden"
}
object
success
boolean
error
string
errorType
string
404

Not Found

Not Found
{
  "success": false,
  "error": "error-contact-not-found"
}
object
success
boolean
error
string