• You'll love us, guaranteed
    Free Signup with 100 credits and a 60-day satisfaction guarantee.

Cancel Msg API

Endpoint: https://wbiztool.com/api/v1/cancel_msg/

Request Type: POST

Fields:
  • Required Fields in Request
    • client_id (Integer) - Your Client Id (Given on Dashboard in API Setting Section
    • api_key (String) - Your Api Key (Given on Dashboard in API Setting Section
    • msg_id (Integer) - Unique Msg Id (Received from Send msg api or Schedule msg api)
  • Response
    • message (String) - Readable status of your request
    • status (Integer) - 0/1 if status is 0 then there is some error with this request explaination will be given in message key

Example


The following example uses curl to make an API request. Note the use of the api key, client id, whatsapp client id and the setting of the Content-Type header.

curl -X POST https://wbiztool.com/api/v1/cancel_msg/  -d '{
    "client_id": <your_client_id>,
    "api_key": "<your_api_key>",
    "msg_id": <your_msg_id>,
}' -H "Content-Type: application/json"

// Response
{"status": 1, "message": "Cancelled"}

  • import requests
    data={
        "client_id" : <client_id>,
        "api_key" : "<api_key>",
        "msg_id" : <your_msg_id>,
    }
    url = 'https://wbiztool.com/api/v1/cancel_msg/'
    response = requests.post(url,data=data).text
                                    
  • $url = 'https://wbiztool.com/api/v1/cancel_msg/';
    $myvars = 'client_id=<client_id>&api_key=<api_key>&msg_id=<your_msg_id>';
    
    $ch = curl_init( $url );
    curl_setopt( $ch, CURLOPT_POST, 1);
    curl_setopt( $ch, CURLOPT_POSTFIELDS, $myvars);
    
    $response = curl_exec( $ch );
    echo $response;