Test User
Test Users are the contact addresses (e.g. phone numbers, Chat identities) who can test the latest drafts of a Flow even if they aren't yet published.
Update the Test User resource of a Flow to allow the contacts that need to perform tests of unpublished drafts.
Resource properties
Unique identifier of the flow.
List of test user identities that can test draft versions of the flow.
The URL of this resource.
GET https://studio.twilio.com/v2/Flows/{Sid}/TestUsers
URI parameters
Path Parameter
Unique identifier of the flow.
_11// Download the helper library from https://www.twilio.com/docs/node/install
_11// Find your Account SID and Auth Token at twilio.com/console
_11// and set the environment variables. See http://twil.io/secure
_11const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11const authToken = process.env.TWILIO_AUTH_TOKEN;
_11const client = require('twilio')(accountSid, authToken);
_11client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11 .then(flow_test_user => console.log(flow_test_user.sid));
_10 "sid": "FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10 "url": "https://studio.twilio.com/v2/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/TestUsers"
POST https://studio.twilio.com/v2/Flows/{Sid}/TestUsers
Each Test User identity can be up to 300 bytes.
URI parameters
Path Parameter
Unique identifier of the flow.
Request body parameters
Required
List of test user identities that can test draft versions of the flow.
_11// Download the helper library from https://www.twilio.com/docs/node/install
_11// Find your Account SID and Auth Token at twilio.com/console
_11// and set the environment variables. See http://twil.io/secure
_11const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11const authToken = process.env.TWILIO_AUTH_TOKEN;
_11const client = require('twilio')(accountSid, authToken);
_11client.studio.v2.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11 .update({testUsers: ['+14155551212', '+14155551213']})
_11 .then(flow_test_user => console.log(flow_test_user.sid));
_10 "sid": "FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10 "url": "https://studio.twilio.com/v2/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/TestUsers"