Skip to content

Delete Destination POST ​

Deletes a destination previously added to a contact.

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/DeletePersonDestination

Content Type ​

application/json

Parameter Description ​

PropertyTypeRequiredDescription
destinationIdstringRequiredDestination ID returned by Add Destination (must belong to your account)

Response Description ​

PropertyTypeDescription
statusnumber200 on success
descriptionstringDestination deleted.

Request Example ​

bash
curl -X POST 'https://public-api.smsup-plus.com/Person/DeletePersonDestination' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "destinationId": "7e6d5c4b-3a29-4180-9f7e-6d5c4b3a2918"
  }'
js
const res = await fetch('https://public-api.smsup-plus.com/Person/DeletePersonDestination', {
  method: 'POST',
  headers: { Authorization: 'Bearer <API_KEY>', 'Content-Type': 'application/json' },
  body: JSON.stringify({ destinationId: '7e6d5c4b-3a29-4180-9f7e-6d5c4b3a2918' }),
})
console.log(await res.json())

Response Example ​

json
{
  "status": 200,
  "description": "Destination deleted."
}

Possible Errors ​

HTTPResponseCause
200{"status":400,"description":"destinationId is required."}destinationId missing or body is not JSON
200{"status":404,"description":"Destination not found."}Destination does not exist, was already deleted, or belongs to another account
200{"status":500,"description":"Failed to delete destination."}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.

TIP

This path starts with a capital D (DeletePersonDestination) and paths are case-sensitive — /Person/deletePersonDestination returns 404.