How do I use Copilot features with my existing application?

To start using Messaging Services with your existing application, first login to your project and create your Messaging Service. Once your Messaging Service is created, add the 'MessagingServiceSid' parameter to your API request. To allow Twilio's Copilot Features to select the 'From' phone number used to deliver your message, remove the 'From' parameter of your API request. If you have any code built in to round robin your traffic, you'll want to remove that.

Below is a sample CURL request:

 curl -X POST '{AccountSid}/Messages.json' \ --data-urlencode 'To=+14158675309' \ --data-urlencode 'MessagingServiceSid={MessagingServiceSid}' \ --data-urlencode 'Body=Jenny and I are getting married!' \ -u [AccountSid]:[AuthToken] 

You can find code examples in other languages in our API doc.


Have more questions? Submit a request
Powered by Zendesk