All users for Retool organizations on Free or Team plans have global Edit permissions and can add, edit, and remove resources. If your organization manages user permissions for resources, you must be a member of a group with Edit all permissions.
To create your Twilio resource, you need:
- The API version number you want to use.
- An account SID.
- An auth token.
Twilio uses Basic authentication. You must provide an account SID and auth token for Retool to authorize requests. Refer to the Twilio documentation on authenticating requests to learn how to obtain the account SID and auth token.
If Twilio is behind a firewall, you must also allow access from Retool's IP addresses. Add these IP addresses to your firewall's allowlist before you create the resource.
1. Create a new resource
Sign in to your Retool organization and navigate to the Resources tab. Click Create new, then select Resource.
Retool can connect to almost any API or database, and has built-in integrations for popular data sources. Select the Twilio integration.
2. Configure the resource
Provide the necessary details to configure the resource so Retool can connect to Twilio. Not all settings are required but refer to the Twilio documentation to learn what is needed.
These settings configure the name and location of the resource within Retool.
The name to use for the resource (e.g., Twilio).
The folder in which to save the resource.
A brief description of the resource (e.g., Twilio data).
These settings configure how Retool connects to Twilio.
The version of the Twilio API you want to use.
Your Twilio account SID used for authentication.
Your Twilio auth token used for authentication.
3. Save the resource
Click Create resource to complete the setup. You can then click either Create an app to immediately start building a Retool app or Back to resources to return to the list of resources.
Your Twilio resource is now ready to use. You write queries to make API requests by specifying the request method and endpoint, additional parameters to include, and the request body.
To verify you can successfully interact with Twilio, write a test query to retrieve some data. The following example returns the accounts belonging to the account that made the API request.