Twilio is a cloud communications platform that allows developers to integrate communication features like SMS, voice calls, video calls, and more, into their applications and services. Connect Twilio to Superblocks to create custom internal tools to programmatically send text messages, update media, and manage short codes.
Setting up Twilio
Create an access token
To get started, locate your Twilio auth token or create an API key:
- Log in to the Twilio Console
- Expand the Account dropdown in the top right and select API keys and tokens
- Click Create API key
- Name the key and click Create
- Copy the SID and Secret before clicking Done to configure your integration
Learn more about working with Twilio's API.
Once you have an access token, you're ready to set up your Superblocks integration.
- In the web app, navigate to the Integrations page
- Click on the Twilio tile
- Name the integration
- Paste your credentials into the relevant fields
- Optionally, add more configurations to set credentials for different environments
- Click Create
Use Twilio in APIs
Once your Twilio integration is created, you can start creating steps in Application backend APIs, Workflows, and Scheduled Jobs to call Twilio API actions. Twilio actions are REST requests. To learn more about REST requests in Superblocks, see the Building REST requests guide.
Retrieve collection of callsRetrieves a collection of calls made to and from your account
Create outgoing callCreate a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections
Fetch callFetch the call specified by the provided Call SID
Redirect or terminate callInitiates a call redirect or terminates a call
Delete call recordDelete a Call record from your account. Once the record is deleted, it will no longer appear in the API and Account Portal logs.
Fetch call feedbackFetch a Feedback resource from a call
Update call feedbackUpdate a Feedback resource for a call
Fetch single media for messageFetch a single Media resource associated with a specific Message resource
Delete mediaDelete the Media resource.
Read list of media for messageRead a list of Media resources associated with a specific Message resource
Retrieve messagesRetrieve a list of Message resources associated with a Twilio Account
Send messageSend a message
Fetch messageFetch a specific Message
Update messageUpdate a Message resource (used to redact Message `body` text and to cancel not-yet-sent messages)
Delete messageDeletes a Message resource from your account
Generic HTTP Request
Every SaaS integration in Superblocks comes with a built in Generic HTTP Request Action. This is a powerful action you can use to call Twilio API endpoints not in the Superblocks supported actions.
To use this action simply add the method, path, required query parameters, and body for the desired endpoint.
Learn more about REST requests in Superblocks in our Building REST requests guide.
Generic HTTP Requests use the authentication set up and base URL you've configured for your integration, making it an easy for your team to extend Superblocks Integrations to meet their needs.