3
votes

Using Twilio test credentials allows simulation of sending SMS messages from/to valid numbers, non-SMS-capable numbers, invalid numbers, etc., by using specific numbers for the value of the 'From'/'To' parameter of the HTTP POST to Twilio.

Is there any way to use Twilio test credentials to simulate sending (successfully or unsuccessfully) using a value for the 'MessagingServiceSid' parameter instead of a value for the 'From' parameter?

2

2 Answers

1
votes

The test credentials page says: "All of the existing outbound SMS parameters will work, with the exception of MessagingServiceSid." so it doesn't sound like it is currently possible.

0
votes

Twilio developer evangelist here.

I'm afraid the test credentials only work for the following endpoints:

  • Buying phone numbers: POST /2010-04-01/Accounts/{TestAccountSid}/IncomingPhoneNumbers
  • Sending SMS messages: POST /2010-04-01/Accounts/{TestAccountSid}/Messages
  • Making calls: POST /2010-04-01/Accounts/{TestAccountSid}/Calls