POST
/
v1
/
sms
/
clear
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
}

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
}