-
Notifications
You must be signed in to change notification settings - Fork 146
Description
Feature: Let clients supply Twilio credentials to enable them to send SMS from their Twilio account.
Step 1:
In the queue settings, add two text boxes to enter their Account SID and Auth Token and a "Save Credentials" button.
Once the user clicks on save credentials, make a network call
PUT /me/sms
{
"integration": "twilio"
"accountSid": "<sid>",
"authToken": "<token>"
}
Saving the credentials is a one time activity, on success or when the user navigates to settings again for the same or a different queue, in place of the above form, a "Clear Credentials" button should be displayed.
Clicking on the clear credentials button will make a DELETE /me/sms?integration=twilio backend call to delete the credentials.
Step 2:
If credentials are saved at backend, a "Enable SMS" toggle will be activated, which the user can use to enable and pause notifications.
This should trigger a patch call to the backend:
PATCH /queue/<queue-id>
{
"enableSms": true/false
}
Step 3:
- Add links and short documentation to help users create twilio credentials.
- Add link to "Contact us if you want our team to set up SMS for for a fee".