Delete Contact

Overview

Deletes an existing contact from a specified list.

Authentication

This request requires a Authorization header with a valid token.

URL: DELETE https://api3.blocksurvey.io/contact/delete-contact

Request Body

Field
Type
Required
Description

teamId

String

Yes

ID of the team owning the list.

listId

String

Yes

ID of the list containing contact.

recordId

String

No

ID of the contact to delete.

Email

String

No

Email of the contact (optional), but required if recordId is not provided.

cURL Example

curl -X DELETE  https://api3.blocksurvey.io/contact/delete-contact
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
    "teamId": "team-123",
    "listId": "list-456",
    "recordId": "contact-789",
    "Email": "[email protected]",

}'

Response

Successful Response

Success (200)
{
    "success": true,
    "message": "Contact deleted successfully."
}

Last updated