Skip to content

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.

  1. In the agent app, open Settings > Messaging apps and choose SMS.
  2. Fill in the fields below.
  3. Under New chats go to, pick the group that answers this channel, then connect.
  4. Finish the steps the app shows in the provider's console, below.

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.

FieldKey
SMS gateway (twilio, vonage or http)providerrequired
Sending number (E.164)from_numberoptional
Account SIDaccount_sidoptional
Auth tokenauth_tokenoptional, secret
Messaging Service SIDmessaging_service_sidoptional
API keyapi_keyoptional
API secretapi_secretoptional, secret
Signature secretsignature_secretoptional, secret
Gateway send URLsend_urloptional
Auth header nameauth_header_nameoptional
Auth header valueauth_header_valueoptional, secret

A secret is stored encrypted and never shown again, only a hint of it.

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>.

With a token holding channels.manage, connect with one call; group_id is optional:

Terminal window
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.