### Example IFTTT Webhook URL for WhatsApp Source: https://www.callmebot.com/blog/whatsapp-messages-from-ifttt An example of a fully formed URL for the IFTTT Webhook action, demonstrating how to include phone number, text, and API key. ```URL https://api.callmebot.com/whatsapp.php?phone=+33123123123&text=Test from IFTTT&apikey=1234 ``` -------------------------------- ### Example Shopify Webhook URL Source: https://www.callmebot.com/blog/whatsapp-messages-from-shopify An example of a fully configured webhook URL for Shopify notifications, demonstrating the placement of the phone number and API key. ```URL https://api.callmebot.com/whatsapp.php?source=shopify&phone=+49123123123&apikey=1234567 ``` -------------------------------- ### Example WhatsApp Message URL Source: https://www.callmebot.com/blog/whatsapp-text-messages-from-domoticz An example of a complete URL to send a specific WhatsApp message. Note the URL encoding for spaces and the inclusion of WhatsApp formatting. ```URL https://api.callmebot.com/whatsapp.php?source=domz&phone=+34123123123&apikey=987654&text=Alarm+from+Domoticz+to+inform+you+that+the+alarm+has+been+triggered ``` -------------------------------- ### CallMeBot API with wget (English) Source: https://www.callmebot.com/blog/telegram-phone-calls-from-openhab Example of using wget to make a Telegram call with a specific username and English voice. ```bash wget 'http://api.callmebot.com/start.php?source=openHAB&user=@myusername&text=This is openHAB calling to you to inform you about something that is happening at your house&lang=en-GB-Standard-B' ``` -------------------------------- ### Example CallMeBot API Request URL Source: https://www.callmebot.com/phone-call This is a concrete example of the API endpoint with placeholder values for phone number, message, and API key. The message is pre-encoded for demonstration. ```HTTP https://api.callmebot.com/call.php?phone=+34123123123&text=This+is+a+test+from+CallMeBot&apikey=1234567890 ``` -------------------------------- ### Example URL Encoding Source: https://www.callmebot.com/blog/facebook-messenger-custom-commands This is an example of a URL that needs to be URL-encoded. Spaces and special characters should be represented by their encoded equivalents. ```url https://api.callmebot.com/facebook/send.php?apikey=1234567890&text=This+is+a+test+from+my+appliance+%F0%9F%98%84 ``` -------------------------------- ### CallMeBot API with wget (Spanish) Source: https://www.callmebot.com/blog/telegram-phone-calls-from-openhab Example of using wget to make a Telegram call to a phone number with a Spanish voice. ```bash wget 'http://api.callmebot.com/start.php?source=openHAB&user=+33 123 123 1123&text=Este es openHAB llamando para informar sobre algo que esta sucediendo en tu casa&lang=es-ES-Standard-A' ``` -------------------------------- ### Add a Query and Action Source: https://www.callmebot.com/blog/free-api-whatsapp-bot Configure the bot to perform a specific action (GET request to a URL) when a predefined query is received via WhatsApp. ```APIDOC ## Add a Query and Action ### Description This API allows you to associate a specific text query with a URL. When the bot receives a message matching the query via WhatsApp, it will perform a GET request to the specified URL. ### Method GET ### Endpoint https://api.callmebot.com/whatsapp_add.php ### Parameters #### Query Parameters - **phone** (string) - Required - Your phone number associated with WhatsApp, including the country code (e.g., +34 123 123 123). - **apikey** (string) - Required - The API key obtained during the bot activation process. - **query** (string) - Required - The text string that will trigger the action (e.g., "Turn on the alarm"). - **action** (string) - Required - The URL the bot will GET when the query is matched (e.g., https://maker.ifttt.com/use/TkRWa2ti2AwcPwaW). ### Request Example ``` https://api.callmebot.com/whatsapp_add.php?phone=+34123123123&apikey=123456&query=Turn+on+the+alarm&action=https://maker.ifttt.com/use/TkRWa2ti2AwcPwaW ``` ### Response #### Success Response The bot will acknowledge with a message confirming that the action has been executed. If no answer is received within a couple of minutes, the query may not have been recognized. ``` -------------------------------- ### Example 1: CallMeBot API URL with Username Source: https://www.callmebot.com/blog/telegram-phone-calls-from-ifttt An example of the CallMeBot API URL using a Telegram username. The text parameter contains a static message. ```URL http://api.callmebot.com/ifttt.php?user=@myusername&text=This is a test from IFTTT calling from Telegram using callmebot ``` -------------------------------- ### Example WhatsApp API Request Source: https://www.callmebot.com/blog/free-api-whatsapp-messages An example of a complete API request URL for sending a WhatsApp message. Replace placeholders with your actual phone number, message, and API key. ```HTTP https://api.callmebot.com/whatsapp.php?phone=+34123123123&text=This+is+a+test+from+CallMeBot&apikey=1234567890 ``` -------------------------------- ### Example Luup Code for Telegram Phone Calls Source: https://www.callmebot.com/blog/telegram-phone-calls-from-vera This is a concrete example of the Luup code for initiating a Telegram phone call. It demonstrates how to format the Message, User, Language, and Repeat variables for a specific call. ```lua local Message = "This_is_Vera_calling_you_to_test_the_Telegram_phone_calls_through_CallMeBot" local User = "@username" local Language = "en-US-Standard-B" local Repeat = "2" luup.inet.wget('http://api2.callmebot.com/start.php?source=vera&user=' .. User .. '&text=' .. Message .. '&lang=' .. Language .. '&rpt=' .. Repeat,5); ``` -------------------------------- ### Example CallMeBot API Request Source: https://www.callmebot.com/blog/whatsapp-text-messages-from-homeassistant An example of a complete API request URL to send a specific message to a phone number. Note the URL encoding for spaces and the use of '+' for spaces. ```URL https://api.callmebot.com/whatsapp.php?source=HA&phone=+34123123123&apikey=987654&text=Alarm+from+HomeAssistant+to+inform+you+that+the+alarm+has+been+triggered ``` -------------------------------- ### Example WhatsApp API URL with Encoded Text Source: https://www.callmebot.com/blog/whatsapp-text-messages-from-openhab An example of a complete API URL for sending a WhatsApp message. Spaces in the text are encoded using '+' and URL encoding is demonstrated. ```URL https://api.callmebot.com/whatsapp.php?source=openHAB&phone=+34123123123&apikey=987654&text=Alarm+from+OpenHAB+to+inform+you+that+the+alarm+has+been+triggered ``` -------------------------------- ### Example CallMeBot API URL Source: https://www.callmebot.com/blog/whatsapp-messages-from-apple-home-app-homekit An example of a fully formed CallMeBot API URL for sending a test message from a Home App automation. Ensure the text message is URL-encoded. ```URL https://api.callmebot.com/whatsapp.php?source=homeapp&phone=+49123123123&apikey=1234567&text=This+is+a+test+message+from+Home+App+Automation ``` -------------------------------- ### Example using Text-to-Speech Source: https://www.callmebot.com/telegram-call-api2 Initiates a Telegram voice call to a specified user, reading a given text message. The message is spoken in the specified language and can be repeated. Ensure the text is URL-encoded. ```HTTP http://api.callmebot.com/start.php?**user** =@username&**text** =This+is+a+robot+calling+you+to+inform+you+about+something+urgent+that+is+happening&**lang** =en-GB-Standard-B&**rpt** =2 ``` -------------------------------- ### Example wget command for Spanish Telegram Call Source: https://www.callmebot.com/blog/telegram-call-from-home-assistant This wget command demonstrates making a Telegram call with a Spanish message. Note the use of Spanish language code and text. ```bash wget "http://api.callmebot.com/start.php?source=HA&user=+331231231123&text=Este_es_Home_Assistant_llamando_para_informar_sobre_algo_que_esta_sucediendo_en_tu casa&lang=es-ES-Standard-A" ``` -------------------------------- ### Example wget command for Telegram Call Source: https://www.callmebot.com/blog/telegram-call-from-home-assistant Use this wget command to test making a Telegram call directly from your terminal. Ensure the URL is properly formatted. ```bash wget "http://api.callmebot.com/start.php?source=HA&user=@myusername&text=This_is_Home_Assistant_calling_to_you_to_inform_you_about_something_that_is_happening_at_your_house&lang=en-GB-Standard-B" ``` -------------------------------- ### Example 2: CallMeBot API URL with Phone Number and Dynamic Text Source: https://www.callmebot.com/blog/telegram-phone-calls-from-ifttt An example of the CallMeBot API URL using a Telegram phone number. The text parameter uses an IFTTT ingredient {{Text}} for dynamic content, and specifies a language. ```URL http://api.callmebot.com/ifttt.php?user=+33123456789&text={{Text}}&lang=es-ES-Standard-A ``` -------------------------------- ### Test Image Message via Developer Tools Source: https://www.callmebot.com/blog/facebook-messenger-free-api-home-assistant This example demonstrates how to test the Facebook Messenger image notification service using Home Assistant's Developer Tools. ```yaml service: notify.Facebook_image message: "https://www.home-assistant.io/images/home-assistant-logo.png" ``` -------------------------------- ### Example playing an MP3 file Source: https://www.callmebot.com/telegram-call-api2 Initiates a Telegram voice call to a specified user and plays an MP3 file hosted at a given URL. The user can be a Telegram username or a phone number with the international code. ```HTTP http://api.callmebot.com/start.php?user=**@username** &file=**< url of mp3 file>** ``` -------------------------------- ### Using IFTTT Ingredients in WhatsApp Message Text Source: https://www.callmebot.com/blog/whatsapp-messages-from-ifttt Demonstrates how to dynamically insert IFTTT trigger ingredients into the WhatsApp message text. This example shows how to send the content of an SMS received via WhatsApp. ```URL https://api.callmebot.com/whatsapp.php?phone={{phone_number}}&text={{sms_text}}&apikey={{your_apikey}} ``` -------------------------------- ### Home Assistant Shell Command Integration Configuration Source: https://www.callmebot.com/blog/telegram-phone-calls-from-homeassistant-old Configure the Shell Command integration in Home Assistant's configuration.yaml to use wget for executing the call URL. The {{ url }} template receives the URL from the service call. ```yaml shell_command: telegram_call: '/usr/bin/wget {{ url }} -O /dev/null' ``` -------------------------------- ### Example Telegram Group Message API Call Source: https://www.callmebot.com/blog/telegram-group-messages-api-easy An example of how to call the Telegram group message API with a specific API key, text, and format. ```HTTP https://api.callmebot.com/telegram/group.php?apikey=LQzNRk5GiE2N&text=This+is+a+test&html=no ``` -------------------------------- ### Create Custom Command Syntax Source: https://www.callmebot.com/blog/facebook-messenger-custom-commands Use this syntax to create a new custom command. Specify the command name, HTTP method, URL, and optionally headers and body. ```bash create command [name] [GET/POST] [url] [header] [body] ``` -------------------------------- ### Home Assistant Shell Command Integration Source: https://www.callmebot.com/blog/whatsapp-text-messages-from-homeassistant-old Define a shell command in Home Assistant's configuration.yaml to execute wget with a provided URL. The URL is passed as a data template. ```yaml # Example configuration.yaml entry shell_command: whatsapp: '/usr/bin/wget {{ url }} -O /dev/null' ``` -------------------------------- ### Home Assistant Command Line Notify Configuration Source: https://www.callmebot.com/blog/telegram-phone-calls-from-homeassistant-old Configure the Command Line Notification component in Home Assistant's configuration.yaml to use wget for executing the call URL. The $(cat) placeholder receives the URL from the notification service. ```yaml notify: - name: TelegramCall platform: command_line command: 'wget $(cat) -O /dev/null' ``` -------------------------------- ### OpenHab Exec Actions for Telegram Call (Spanish) Source: https://www.callmebot.com/blog/telegram-phone-calls-from-openhab Employs the executeCommandLine action to run a wget command for initiating a Telegram call. Spaces in the message are replaced with %20 for URL encoding. ```java rule "Another Telegram Call Test" when     Item TestCall2 changed to ON then     var MessageTelegram = ("La alarma esta sonando en la cocina. Mirar las camaras por favor")     MessageTelegram = MessageTelegram.replace(" ", "%20") executeCommandLine ("wget http://api.callmebot.com/start.php?source=openHAB&user=@myusername&text="+MessageTelegram+"&lang=es-ES-Standard-A") // ES=Spanish check the list in the link above   end ``` -------------------------------- ### Send WhatsApp Message using OpenHAB Exec Actions with wget Source: https://www.callmebot.com/blog/whatsapp-text-messages-from-openhab This rule shows how to send a WhatsApp message using OpenHAB's executeCommandLine with the 'wget' command. Spaces in the message are replaced with '%20' for URL encoding. ```Rules rule "Another WhatsApp Send Test" when Item WhatsAppTest changed to ON then var MessageWhatsApp = ("La alarma esta sonando en la cocina. Mirar las camaras por favor") MessageWhatsApp = MessageWhatsApp.replace(" ", "%20") executeCommandLine ("wget https://api.callmebot.com/whatsapp.php?source=openHAB&phone=+34123123123&apikey=567567&text="+MessageWhatsApp) end ``` -------------------------------- ### OpenHab v3 ECMAScript for Telegram Call Source: https://www.callmebot.com/blog/telegram-phone-calls-from-openhab Utilizes HttpUtil.executeUrl in OpenHab v3 to send a GET request to the CallMeBot API. Ensure the message is URL-encoded. ```javascript var HttpUtil = Java.type("org.openhab.core.io.net.http.HttpUtil") var urlmessage = encodeURI("This is a test from openHAB calling you becaue something is happening in your house") HttpUtil.executeUrl("GET", "http://api.callmebot.com/start.php?source=openHAB&user=+34123123123&text=" + urlmessage , 2000) ``` -------------------------------- ### Send WhatsApp Text Message Source: https://www.callmebot.com/blog/free-api-whatsapp-messages This endpoint allows you to send a text message to a WhatsApp number. Ensure you have obtained your API key through the setup process. ```APIDOC ## Send WhatsApp Text Message ### Description Send a text message to a specified WhatsApp number using your API key. ### Method GET ### Endpoint https://api.callmebot.com/whatsapp.php ### Parameters #### Query Parameters - **phone** (string) - Required - The recipient's phone number including the country code (e.g., +34 123 123 123). - **text** (string) - Required - The message content. Must be URL-encoded. WhatsApp formatting characters are allowed. - **apikey** (string) - Required - Your unique API key obtained during the setup process. ### Request Example ``` https://api.callmebot.com/whatsapp.php?phone=+34123123123&text=This+is+a+test+from+CallMeBot&apikey=1234567890 ``` ### Response #### Success Response (200) This API does not explicitly define a success response body. A successful request implies the message has been sent. #### Error Handling Refer to the setup guide for potential issues and contact information for support. ``` -------------------------------- ### Send Telegram Voice Call from Domoticz Source: https://www.callmebot.com/tag/hab Use this HTTP GET request to trigger a Telegram voice call from Domoticz. Ensure you have set up a 'Custom HTTP' Notification. ```HTTP http://api.callmebot.com/start.php?source=domoticz&user=@username&text=This is Domoticz calling to you to inform you about something that is happening at your house&lang=en-GB-Standard-B ``` -------------------------------- ### CallMeBot API URL with Spanish Voice Source: https://www.callmebot.com/blog/telegram-phone-calls-from-domoticz-with-voice-messages Example of initiating a Telegram voice call with a Spanish voice. Ensure the 'user' parameter is correctly formatted (username or phone number). ```http http://api.callmebot.com/start.php?source=domz&user=+34 123 123 1123&text=Este es Domoticz llamando para informar sobre algo que esta sucediendo en tu casa&lang=es-ES-Standard-A ``` -------------------------------- ### Telegram Phone Call with Spanish Voice Source: https://www.callmebot.com/blog/telegram-phone-call-api Example of making a phone call using the API with a Spanish voice. The recipient can be a Telegram alias or a phone number with the international code. ```bash wget ‘http://api.callmebot.com/start.php?user=+33 123 123 1123&text=Este es Home Assistant llamando para informar sobre algo que esta sucediendo en tu casa&lang=es-ES-Standard-A‘ ```