POST
/
v1
/
sms
/
clear
Clear SMS Conversation
curl --request POST \
  --url https://api.bland.ai/v1/sms/clear \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "to": "<string>",
  "from": "<string>"
}'
{
    "status": "success",
    "count": 42 // the number of messages cleared
}

Enterprise Feature - SMS is only available on Enterprise plans. Contact your Bland representative for access.

Headers

authorization
string
required

Your API key for authentication.

Body

to
string
required

One of the phone numbers in the conversation.

from
string
required

The other phone number in the conversation.

{
    "status": "success",
    "count": 42 // the number of messages cleared
}