Connect SMS to Click2Reply live chat
Messages your customers send on SMS arrive in Click2Reply as chats, and your agents’ replies go back through SMS.
Connect in the agent app
Section titled “Connect in the agent app”- In the agent app, open Settings > Messaging apps and choose SMS.
- Fill in the fields below.
- Under New chats go to, pick the group that answers this channel, then connect.
- Finish the steps the app shows in the provider's console, below.
What you need
Section titled “What you need”Provider is twilio, vonage or http. Twilio takes the Account SID, auth token, and a sending number or a Messaging Service SID. Vonage takes the API key and secret, the signature secret, and a sending number.
http is any gateway of your own: we POST outgoing messages to its send URL, with an auth header if you set one, and it POSTs incoming messages back signed with a secret the app shows.
| Field | Key | |
|---|---|---|
| SMS gateway (twilio, vonage or http) | provider | required |
| Sending number (E.164) | from_number | optional |
| Account SID | account_sid | optional |
| Auth token | auth_token | optional, secret |
| Messaging Service SID | messaging_service_sid | optional |
| API key | api_key | optional |
| API secret | api_secret | optional, secret |
| Signature secret | signature_secret | optional, secret |
| Gateway send URL | send_url | optional |
| Auth header name | auth_header_name | optional |
| Auth header value | auth_header_value | optional, secret |
A secret is stored encrypted and never shown again, only a hint of it.
In the provider’s console
Section titled “In the provider’s console”The app lists these under One more step in the provider's console, with the exact values to paste:
- Twilio: set the Messaging Service's incoming message URL to the URL the app shows.
- Vonage: in your Messages API application, set the inbound and status URLs it shows and turn on signed webhooks.
- http: have the gateway POST incoming messages and statuses to the URL it shows, signed with x-c2r-signature: t=<unix>,v1=<hex HMAC-SHA256 of t.body>.
Connect with the API
Section titled “Connect with the API”With a token holding channels.manage, connect with one call; group_id is optional:
curl -sS -X POST "https://api.click2reply.com/v1/channels/connections" \ -H "Authorization: Bearer $C2R_TOKEN" \ -H "Content-Type: application/json" \ -d '{"channel":"sms","name":"SMS support","credentials":{"provider":"<provider>"}}'The answer is { connections, manual_steps }: the connection, and each step left to do by hand as a code and the value to paste, such as the webhook URL.