Why aren't my test credentials working?

Twilio provides test credentials for you to exercise parts of the REST API without charging your account.  The test credentials can be found here in your account portal. Below are a few common issues we often hear about regarding exercising test credentials:

I never received any messages or calls when using test credentials.

Test credentials only provide a way for you to "pretend" sending a message or making a phone call. Twilio will not charge your account, nor will the actions be performed. You would rely on the response and error codes Twilio returns to verify if it would be a valid request to Twilio when initiating the request using your live credentials. The SMS SIDs or call SIDs Twilio returns when using test credentials are fake SIDs and they cannot be found in the logs section. If you are looking for end-to-end testing without being charged, we recommend that you create a separate Twilio account and stay in the trial mode to take advantage of the trial credits.

My Twilio number doesn't work as the From parameter.

Your test credentials don't have access to any valid 'From' phone numbers on your real account. Therefore the only phone number you should use as a 'From' number is the magic number listed in the documentation. +15005550006, for example, is the valid and available phone number with the test SID and token.
Have more questions? Submit a request
Powered by Zendesk