Twilio
Overview
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.
Add integration
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
Twilio connected Now you can use Twilio in any Application, Workflow, or Scheduled Job.
Use Twilio in APIs
Once your Twilio integration is created, you can start calling Twilio actions in Superblocks APIs.
Twilio actions are REST requests. To learn more about REST requests in Superblocks, see the Building REST requests guide.
Supported actions
Retrieve collection of calls
Retrieves a collection of calls made to and from your accountCreate outgoing call
Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connectionsFetch call
Fetch the call specified by the provided Call SIDRedirect or terminate call
Initiates a call redirect or terminates a callDelete call record
Delete 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 feedback
Fetch a Feedback resource from a callUpdate call feedback
Update a Feedback resource for a callFetch single media for message
Fetch a single Media resource associated with a specific Message resourceDelete media
Delete the Media resource.Read list of media for message
Read a list of Media resources associated with a specific Message resourceRetrieve messages
Retrieve a list of Message resources associated with a Twilio AccountSend message
Send a messageFetch message
Fetch a specific MessageUpdate message
Update a Message resource (used to redact Message `body` text and to cancel not-yet-sent messages)Delete message
Deletes a Message resource from your accountGeneric 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.