Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
57 lines (44 loc) · 1.28 KB

livechat-sms-incoming-twilio.md

File metadata and controls

57 lines (44 loc) · 1.28 KB
description
Receive SMS

SMS Incoming (Twilio)

URL Requires Auth HTTP Method
/api/v1/livechat/sms-incoming/:service no POST

Payload

Argument Example Required Description
service twilio Required Only the server twilio is accepted at moment.

Twilio payload

{
  "From": "5551123456789",
  "To": "5551987654321",
  "Body": "SMS message",
  "ToCountry": "Brazil",
  "ToState": "RS",
  "ToCity": "Porto Alegre",
  "ToZip": "",
  "FromCountry": "Brazil",
  "FromState": "RS",
  "FromCity": "Porto Alegre",
  "FromZip": ""
}

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -X POST \
     -H "Content-type:application/json" \
     http://localhost:3000/api/v1/livechat/sms-incoming/twilio \
    -d '{"From": "5551123456789", "To": "5551987654321", "Body": "SMS message", "ToCountry": "Brazil", "ToState": "RS", "ToCity": "Porto Alegre", "ToZip": "", "FromCountry": "Brazil", "FromState": "RS", "FromCity": "Porto Alegre", "FromZip": ""}'

Result to Twilio

<Response></Response>

Change Log

Version Description
0.42.0 Added