### Example GET Request with `ask` Parameter Source: https://docs-latam.messaging.sinch.com/whatsapp/username-bsuid-coming-soon Use this GET request format to query the documentation. Replace `` with your specific question in natural language. ```http GET https://docs-latam.messaging.sinch.com/whatsapp/username-bsuid-coming-soon.md?ask= ``` -------------------------------- ### Install HAProxy on RedHat-Like Systems (Source) Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/sms-api Installs necessary development tools and downloads/compiles HAProxy from source for RedHat-like systems. ```bash sudo yum install wget gcc pcre-static pcre-devel -y wget -O ~\/haproxy.tar.gz tar xzvf ~\/haproxy.tar.gz -C ~\/ cd ~\/haproxy-1.6.3 make TARGET=linux2628 USE_LINUX_TPROXY=1 USE_ZLIB=1 USE_REGPARM=1 USE_OPENSSL=1 USE_PCRE=1 sudo make install sudo cp /usr/local/sbin/haproxy /usr/sbin/ sudo cp ~\/haproxy-1.6.3\/examples\/haproxy.init /etc/init.d\/haproxy sudo chmod 755 /etc/init.d/haproxy sudo mkdir -p /etc/haproxy sudo mkdir -p /run/haproxy sudo mkdir -p /var/lib/haproxy sudo touch /var/lib/haproxy/stats sudo useradd -r haproxy sudo haproxy -vv ``` -------------------------------- ### Install HAProxy on Debian-Like Systems Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/sms-api Installs HAProxy using the apt-get package manager. ```bash sudo apt-get install haproxy ``` -------------------------------- ### Send SMS using GET Method Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/sms-api This example shows how to send an SMS message by including all parameters as a query string in the URL. This method is an alternative to using the POST method. ```http GET .. ``` -------------------------------- ### Install HAProxy on Debian/Ubuntu Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/sms-api Installs HAProxy with OpenSSL development libraries on Debian or Ubuntu systems. ```bash sudo apt-get install -y openssl-devel haproxy ``` -------------------------------- ### Query Documentation via HTTP GET Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/introduction-integrations To get additional information not directly on the page, perform an HTTP GET request to the current page URL with the 'ask' query parameter. The question should be specific and self-contained. ```http GET https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/introduction-integrations.md?ask= ``` -------------------------------- ### Query Documentation via HTTP GET Source: https://docs-latam.messaging.sinch.com/status-page/components-status-page/integrations/smpp To get additional information not present on the page, perform an HTTP GET request with the 'ask' query parameter. The question should be specific and in natural language. Use this for clarifications or to retrieve related documentation. ```http GET https://docs-latam.messaging.sinch.com/status-page/components-status-page/integrations/smpp.md?ask= ``` -------------------------------- ### Example MO Forwarding (POST Method) Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/sms-api This is an example of the JSON payload received when MOs are forwarded to your API via the POST method. Ensure your API is configured to accept this format. ```json { "id": "25950050-7362-11e6-be62-001b7843e7d4", "subAccount": "iFoodMarketing", "campaignAlias": "iFoodPromo", "carrierId": 1, "carrierName": "VIVO", "source": "5516981562820", "shortCode": "28128", "messageText": "I want pizza", "receivedAt": 1473088405588, "receivedDate": "2016-09-05T12:13:25Z", "mt": { "id": "8be584fd-2554-439b-9ba9-aab507278992", "correlationId": "1876", "username": "iFoodCS", "email": "" } } ``` -------------------------------- ### Install HAProxy on Red Hat/CentOS Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/sms-api Installs HAProxy with OpenSSL development libraries on Red Hat or CentOS systems. ```bash sudo yum install -y openssl-devel haproxy ``` -------------------------------- ### Query Documentation Source: https://docs-latam.messaging.sinch.com/send-a-message/sms-report-greater-than-rcs To get more information not directly on the page, you can query the documentation dynamically. Send an HTTP GET request to the page URL with the 'ask' query parameter. ```http GET https://docs-latam.messaging.sinch.com/send-a-message/sms-report-greater-than-rcs.md?ask= ``` -------------------------------- ### Query Documentation with GET Request Source: https://docs-latam.messaging.sinch.com/whatsapp/whatsapp-embedded-signup/potential-errors-during-the-embedded-signup-flow To get more information not explicitly present on the page, ask a question by appending the `ask` query parameter to the page URL. The response will include a direct answer and relevant excerpts. ```http GET https://docs-latam.messaging.sinch.com/whatsapp/whatsapp-embedded-signup/potential-errors-during-the-embedded-signup-flow.md?ask= ``` -------------------------------- ### Query Documentation Dynamically Source: https://docs-latam.messaging.sinch.com/permission/ip-restriction To get additional information not directly on the page, perform an HTTP GET request to the page URL with the `ask` query parameter. The question should be specific and in natural language. ```HTTP GET https://docs-latam.messaging.sinch.com/permission/ip-restriction.md?ask= ``` -------------------------------- ### Query Documentation Dynamically Source: https://docs-latam.messaging.sinch.com/whatsapp/template To get specific information not readily available on a page, make an HTTP GET request to the page URL with the 'ask' query parameter. The question should be clear and self-contained. ```HTTP GET https://docs-latam.messaging.sinch.com/whatsapp/template.md?ask= ``` -------------------------------- ### Consult Open Sessions API Request Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/whatsapp-api Example of a GET request to consult open sessions via the API. Requires customerId and optionally subAccountId. Authentication headers are also necessary. ```http GET http://api-messaging.wavy.global/v1/session?customerId={customerId}\&subAccountId={subAccountId}> Content-Type: application/json authenticationToken: Token userName: Username ``` -------------------------------- ### Query Documentation Dynamically Source: https://docs-latam.messaging.sinch.com/getting-started-menu/sinch-messaging-platform/groups Use this HTTP GET request to ask questions about the documentation. The response includes direct answers and relevant excerpts. ```bash GET https://docs-latam.messaging.sinch.com/getting-started-menu/sinch-messaging-platform/groups.md?ask= ``` -------------------------------- ### Query Documentation Dynamically Source: https://docs-latam.messaging.sinch.com/send-a-message/campaigns Use this GET request to ask questions about the documentation. Append the 'ask' query parameter with your question to the page URL. ```bash GET https://docs-latam.messaging.sinch.com/send-a-message/campaigns.md?ask= ``` -------------------------------- ### Query Documentation Dynamically Source: https://docs-latam.messaging.sinch.com/reports/saved-reports Use this HTTP GET request to ask questions about the documentation. Include your specific question in the 'ask' query parameter. ```http GET https://docs-latam.messaging.sinch.com/reports/saved-reports.md?ask= ``` -------------------------------- ### LATAM Payload Example Source: https://docs-latam.messaging.sinch.com/whatsapp/conversation-api-migration-guide Example of a LATAM payload structure for sending contact information. ```json { "destinations": [ { "destination": "{{destination_phone_number}}" } ], "message": { "contacts": [ { "name": { "first_name": "Sinch", "formatted_name": "Sinch AB Full Name", "last_name": "AB" }, "addresses": [ { "street": "Av. Brig. Faria Lima", "city": "São Paulo", "state": "São Paulo", "zip": "01452-001", "country": "Brazil", "type": "WORK" } ] } ] } } ``` -------------------------------- ### LATAM Document Payload Example Source: https://docs-latam.messaging.sinch.com/whatsapp/conversation-api-migration-guide Example of a document message payload in the LATAM format. ```json { "destinations": [ { "destination": "{{destination_phone_number}}" } ], "message": { "document": { "type": "PDF", "url": "https://...document.pdf" } } } ``` -------------------------------- ### HAProxy Configuration Example Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/sms-api A sample HAProxy configuration file for setting up a TLS proxy for SMPP connections. ```haproxy global # log 127.0.0.1 local0 log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid ssl-server-verify none maxconn 4000 user haproxy group haproxy daemon # turn on stats unix socket stats socket /var/lib/haproxy/stats resolvers dns nameserver google 8.8.8.8:53 hold valid 1s defaults log global option redispatch retries 3 timeout http-request 10s timeout queue 1m timeout connect 10s timeout client 1m timeout server 1m timeout http-keep-alive 10s timeout check 10s maxconn 3000 frontend movile bind *:2444 mode tcp option tcplog use_backend movile backend movile mode tcp server smpp-messaging.movile.com smpp-messaging.wavy.global.com:2444 ssl resolvers dns check inter 15000 ``` -------------------------------- ### WhatsApp Text Message Example Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/whatsapp-api Example of a received text message from a WhatsApp user. ```json { "total": 1, "data": [ { "id": "ce425ffe-bc62-421f-9261-e6819a5eab43", "source": "5519900000000", "origin": "5519900000000", "userProfile": { "name": "username" }, "campaignId": 100, "correlationId": "...", "campaignAlias": "...", "flowId": "....", "extraInfo": "...", "message": { "type": "TEXT", "messageText": "Hello, this is a user message." }, "receivedAt": 1513616971473, "receivedDate": "2017-12-18T17:09:31.473Z" } ] } ``` -------------------------------- ### Query Documentation with GET Request Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/sms-api Use this method to ask questions about the documentation dynamically. The response includes direct answers and relevant excerpts. ```http GET https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/sms-api.md?ask= ``` -------------------------------- ### Query Documentation Dynamically Source: https://docs-latam.messaging.sinch.com/ia-conversational/untitled-8/go-to Use this HTTP GET request to ask questions about the documentation. Append the 'ask' query parameter with your specific question in natural language. The response includes a direct answer and relevant excerpts. ```http GET https://docs-latam.messaging.sinch.com/ia-conversational/untitled-8/go-to.md?ask= ``` -------------------------------- ### Query Documentation via HTTP GET Source: https://docs-latam.messaging.sinch.com/whatsapp/whatsapp-dashboard Use this endpoint to ask questions about the documentation. The response includes a direct answer and relevant excerpts. ```bash GET https://docs-latam.messaging.sinch.com/whatsapp/whatsapp-dashboard.md?ask= ``` -------------------------------- ### Query Documentation Dynamically Source: https://docs-latam.messaging.sinch.com/status-page/components-status-page/whatsapp-sending-messages-to-the-user-mt/internal-queues-mt Use this HTTP GET request to ask questions about the documentation. Append the 'ask' query parameter with your question in natural language to the page URL. ```HTTP GET https://docs-latam.messaging.sinch.com/status-page/components-status-page/whatsapp-sending-messages-to-the-user-mt/internal-queues-mt.md?ask= ``` -------------------------------- ### Query Documentation Dynamically Source: https://docs-latam.messaging.sinch.com/status-page/components-status-page/integrations Use this endpoint to ask questions about the documentation. The response includes direct answers and relevant excerpts. ```HTTP GET https://docs-latam.messaging.sinch.com/status-page/components-status-page/integrations.md?ask= ``` -------------------------------- ### Query Documentation Dynamically Source: https://docs-latam.messaging.sinch.com/whatsapp/whatsapp-embedded-signup/verifying-your-company-on-business-manager Perform an HTTP GET request on the current page URL with the `ask` query parameter to retrieve additional information or clarification. ```HTTP GET https://docs-latam.messaging.sinch.com/whatsapp/whatsapp-embedded-signup/verifying-your-company-on-business-manager.md?ask= ``` -------------------------------- ### Sinch Conversation API Document Payload Example Source: https://docs-latam.messaging.sinch.com/whatsapp/conversation-api-migration-guide Example of a document message payload for the Sinch Conversation API. ```json { "app_id": "{{conv_api_app}}", "recipient": { "identified_by": { "channel_identities": [ { "channel": "WHATSAPP", "identity": "{{destination_phone_number}}" } ] } }, "message": { "media_message": { "url": "https://...document.pdf" } } } ``` -------------------------------- ### WhatsApp Location Message Example Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/whatsapp-api Example of a received location message from a WhatsApp user, including coordinates, name, and address. ```json { "total": 1, "data": [ { "id": "ce425ffe-bc62-421f-9261-e6819a5eab43", "source": "5519900000000", "origin": "5519900000000", "userProfile": { "name": "username" }, "campaignId": 100, "correlationId": "...", "campaignAlias": "...", "flowId": "....", "extraInfo": "...", "message": { "location": { "geoPoint": "-22.894180,-47.047960", "name": "Wavy", "address": "Av. Cel. Silva Telles" } }, "receivedAt": 1513616971473, "receivedDate": "2017-12-18T17:09:31.473Z" } ] } ``` -------------------------------- ### Query Documentation with `ask` Parameter Source: https://docs-latam.messaging.sinch.com/ia-conversational/untitled-9/detecting-information-in-expressions Perform an HTTP GET request to query the documentation dynamically. The `ask` parameter should contain a specific, self-contained question in natural language. ```http GET https://docs-latam.messaging.sinch.com/ia-conversational/untitled-9/detecting-information-in-expressions.md?ask= ``` -------------------------------- ### WhatsApp Extra Info Example Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/whatsapp-api Example of extra information received with a WhatsApp message, potentially containing segmentation lists. ```json { "segmentation_list":[ { "id":26, "customerId":42, "subAccountId":0, "name":"Movile WhatsApp Segmentation List", "active":true }, { "id":27, "customerId":43, "subAccountId":0, "name":"Movile WhatsApp Segmentation List 2", "active":true } ] } ``` -------------------------------- ### WhatsApp Media Message Example Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/whatsapp-api Example of a received media message (image) from a WhatsApp user, including URL and MIME type. ```json { "total": 1, "data": [ { "id": "ce425ffe-bc62-421f-9261-e6819a5eab43", "source": "5519900000000", "origin": "5519900000000", "userProfile": { "name": "username" }, "campaignId": 100, "correlationId": "...", "campaignAlias": "...", "flowId": "....", "extraInfo": "...", "message": { "type": "IMAGE", "mediaUrl": "https://...", "mimeType": "image/jpg", "caption": "..." }, "receivedAt": 1513616971473, "receivedDate": "2017-12-18T17:09:31.473Z" } ] } ``` -------------------------------- ### Query Documentation via HTTP GET Source: https://docs-latam.messaging.sinch.com/rcs/insights-hub Use this method to ask specific questions about the documentation. The response includes direct answers and relevant excerpts. ```http GET https://docs-latam.messaging.sinch.com/rcs/insights-hub.md?ask= ``` -------------------------------- ### WhatsApp Contact Message Example Source: https://docs-latam.messaging.sinch.com/technical-documentation/api-and-integrations/whatsapp-api Example of a received contact message from a WhatsApp user, including name, phone numbers, emails, and addresses. ```json { "total": 1, "data": [ { "id": "ce425ffe-bc62-421f-9261-e6819a5eab43", "source": "5519900000000", "origin": "5519900000000", "userProfile": { "name": "username" }, "campaignId": 100, "correlationId": "...", "campaignAlias": "...", "flowId": "....", "extraInfo": "...", "message": { "contacts":[ { "addresses":[ { "city":"Menlo Park", "country":"United States", "country_code":"us", "state":"CA", "street":"1 Hacker Way", "type":"HOME", "zip":"94025" }, { "city":"Menlo Park", "country":"United States", "country_code":"us", "state":"CA", "street":"200 Jefferson Dr", "type":"WORK", "zip":"94025" } ], "birthday":"2012-08-18", "emails":[ { "email":"", "type":"WORK" }, { "email":"", "type":"WORK" } ], "name":{ "first_name":"John", "formatted_name":"John Smith", "last_name":"Smith" }, "org":{ "company":"WhatsApp", "department":"Design", "title":"Manager" }, "phones":[ { "phone":"+1 (940) 555-1234", "type":"HOME" }, { "phone":"+1 (650) 555-1234", "type":"WORK" } ] } ] }, "receivedAt": 1513616971473, "receivedDate": "2017-12-18T17:09:31.473Z" } ] } ``` -------------------------------- ### Query Documentation Dynamically Source: https://docs-latam.messaging.sinch.com/status-page/components-status-page To get information not explicitly on the page, make an HTTP GET request to the page URL with the 'ask' query parameter. The question should be clear and in natural language. The response includes a direct answer and relevant documentation excerpts. ```http GET https://docs-latam.messaging.sinch.com/status-page/components-status-page.md?ask= ``` -------------------------------- ### Query Documentation Source: https://docs-latam.messaging.sinch.com/getting-started-menu/sinch-messaging-platform/login-language-and-menu To get information not explicitly found on a page, make an HTTP GET request to the page URL with an 'ask' query parameter containing your question. ```HTTP GET https://docs-latam.messaging.sinch.com/getting-started-menu/sinch-messaging-platform/login-language-and-menu.md?ask= ```