Delete Contact POST
Deletes a contact from your account. Deleted contacts no longer appear in Search Contacts and can no longer be updated.
Authorization
API Key (Authentication) — send the header Authorization: Bearer <API_KEY> (API keys start with smsk_)
HTTP Request
http
POST https://public-api.smsup-plus.com/Person/deletePersonContent Type
application/json
Parameter Description
| Property | Type | Required | Description |
|---|---|---|---|
personId | string | Required | ID of the contact to delete (must belong to your account) |
Response Description
| Property | Type | Description |
|---|---|---|
status | number | 200 on success |
description | string | Person deleted. |
Request Example
bash
curl -X POST 'https://public-api.smsup-plus.com/Person/deletePerson' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"personId": "3f8b2c1e-7a4d-4e9b-9c2f-1d5e6a7b8c90"
}'js
const res = await fetch('https://public-api.smsup-plus.com/Person/deletePerson', {
method: 'POST',
headers: { Authorization: 'Bearer <API_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({ personId: '3f8b2c1e-7a4d-4e9b-9c2f-1d5e6a7b8c90' }),
})
console.log(await res.json())Response Example
json
{
"status": 200,
"description": "Person deleted."
}Possible Errors
| HTTP | Response | Cause |
|---|---|---|
| 200 | {"status":400,"description":"personId is required."} | personId missing or body is not JSON |
| 200 | {"status":404,"description":"Person not found."} | Contact does not exist, was already deleted, or belongs to another account |
| 200 | {"status":500,"description":"Failed to delete person."} | Delete failed — retry |
| 401 | {"error":"invalid api key"} | Invalid API key — see Errors |
WARNING
Once authenticated, this endpoint always answers HTTP 200. Check the status field in the body.
INFO
Deleting a contact does not delete its destinations or tag assignments. If you need them gone, call Delete Destination and Unassign Tag before deleting the contact.
