API used to delete an SMS message
Use the SMS Delete Message API to delete an SMS message
The SMS Delete Message API is used to delete a single SMS message sent to/from a DialogTech SMS enabled tracking number.
Base URL for SMS Delete Message
Parameter List
Parameter | Required | Accepts | Max Length | Notes | Usage |
---|---|---|---|---|---|
action | Yes | String: sms.delete_message | n/a | Only accepts sms.delete_message to retrieve an SMS Message | Defines the API Call as "SMS Delete Message" type |
access_key | Yes | String | n/a | Access Key from the Key Manager within a DialogTech account | Credentials used for access to the API for a particular DialogTech account |
secret_access_key | Yes | String | n/a | Secret Access Key from the Key Manager within a DialogTech account | Credentials used for access to the API for a particular DialogTech account |
msg_id | Yes | Message ID | n/a | Message ID of a previously sent/received SMS message | Selects only the SMS records where the message ID matches the msg_id provided |
Using this API
These code examples are meant to show a basic method of accessing DialogTech's Delete Message API.
<?php
https://secure.dialogtech.com/ibp_api.php?access_key=ACCESS_KEY&secret_access_key=SECRET_ACCESS_KEY&action=sms.delete_message&msg_id=177931295
?>
curl -X ""
Example Response
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE response [
<!ELEMENT response (result,result_description,data)>
<!ELEMENT result (#PCDATA)>
<!ELEMENT result_description (#PCDATA)>
]>
<response>
<result>success</result>
<result_description>Message [1] Deleted</result_description>
</response>