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.
Request Body
[{"name"=>"To", "value"=>"{{YOUR_PHONE_NUMBER}}", "datatype"=>"string"}, {"name"=>"From", "value"=>"+15005550006", "datatype"=>"string"}, {"name"=>"Body", "value"=>"Hello from Postman!", "datatype"=>"string"}]