Logo
Developer Experience API Documentation

Set up a sandbox environment

POST https://api.twilio.com/2010-04-01/Accounts/{{TWILIO_ACCOUNT_SID}}/Messages

Some publishers have an isolated testing environment called a sandbox. This allows users to play around with the API without incurring any costs or side effects in a production environment. You can show users how to interact with your sandbox by pre-populating a collection and environment with the sandbox domain and test credentials.

Here's some examples of APIs that provide test credentials for you to explore data in a sandbox without incurring costs or impacting your production database. - Stripe - Twilio - Yodlee

Twilio example

If you have a Twilio account, go ahead and create environment variables TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, and YOUR_PHONE_NUMBER to use in the URL, Authorization tab, and Body. You can use a test number for the From phone number, and the test credentials for your ACCOUNT_SID and AUTH_TOKEN, so that you can exercise parts of the REST API without charging your account.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://api.twilio.com/2010-04-01/Accounts/TWILIO_ACCOUNT_SID/Messages' --data-urlencode '%7B%22name%22%3D%3E%22To%22%2C+%22value%22%3D%3E%22YOUR_PHONE_NUMBER%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22From%22%2C+%22value%22%3D%3E%22%2B15005550006%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22Body%22%2C+%22value%22%3D%3E%22Hello+from+Postman%21%22%2C+%22datatype%22%3D%3E%22string%22%7D'

ENDPOINTS