Skip to main content

Twilio

The Twilio connector enables easy and secure data synchronization between your application and your customers’ Twilio accounts through unified data models.

Authorization

The Twilio connector uses OAuth for secure authentication. When creating a connection, the required OAuth scopes are automatically configured based on your specific operations needs (e.g. genericContact::create, genericUser::list).

✓ Automatic token refresh handling
✓ Proactive insufficient permissions detection

View our step-by-step integration guideWhitelabel
Supported
You can choose to provide your own set of clientId and clientSecret for this connector from the Morph Cloud dashboard; allowing a fully whitelabled experience for your end-customers.
import { Morph } from "@runmorph/cloud";

const morph = Morph({ publicKey: "pk_demo_xxxxxxxxxxxxxxx", secretKey: "sk_demo_xxxxxxxxxxxxxxx"}); 

// create a new connection
const connection = morph.connections({ connectorId: "twilio", ownerId: "demo" });
await connection.create({ operations:[ "genericContact::list" ]});

// auhtorize the connection
const { auhtorizationUrl } = await connection.authorize();

// redirect the user to the auhtorizationUrl

Live Demo
Select a connector below to experience our seamless authentication flow and see how easy it is to connect third-party services.

Models

Generic

The Twilio connector seamlessly integrates with our unified genericContact model, enabling you to manage Contacts with rich data including firstName, lastName, phoneNumber, email and other key details

API Reference
GET/resources/genericContactList and Search Twilio Contacts
GET/resources/genericContact/:idRetrieve a Twilio Contact
POST/resources/genericContactCreate a Twilio Contact
PATCH/resources/genericContact/:idUpdate a Twilio Contact
DEL/resources/genericContact/:idDelete a Twilio Contact
Custom Fields
Supported
The Twilio connector supports our Field Mapping feature, enabling you or your customers to seamlessly map Twilio Contact custom fields to the unified contact model. This allows for flexible data synchronization while maintaining data consistency across all connectors.

view Contact model details

The Twilio connector seamlessly integrates with our unified genericUser model, enabling you to manage Users with rich data including firstName, lastName, email and other key details

API Reference
GET/resources/genericUserList and Search Twilio Users
GET/resources/genericUser/:idRetrieve a Twilio User
POST/resources/genericUserCreate a Twilio User
PATCH/resources/genericUser/:idUpdate a Twilio User
DEL/resources/genericUser/:idDelete a Twilio User
Custom Fields
Supported
The Twilio connector supports our Field Mapping feature, enabling you or your customers to seamlessly map Twilio User custom fields to the unified user model. This allows for flexible data synchronization while maintaining data consistency across all connectors.

view User model details

The Twilio connector seamlessly integrates with our unified genericWorkspace model, enabling you to manage Workspaces with rich data including name and other key details

API Reference
GET/resources/genericWorkspaceList and Search Twilio Workspaces
GET/resources/genericWorkspace/:idRetrieve a Twilio Workspace
POST/resources/genericWorkspaceCreate a Twilio Workspace
PATCH/resources/genericWorkspace/:idUpdate a Twilio Workspace
DEL/resources/genericWorkspace/:idDelete a Twilio Workspace
Custom Fields
Supported
The Twilio connector supports our Field Mapping feature, enabling you or your customers to seamlessly map Twilio Workspace custom fields to the unified workspace model. This allows for flexible data synchronization while maintaining data consistency across all connectors.

view Workspace model details

Telephony

The Twilio connector seamlessly integrates with our unified telephonyCall model, enabling you to manage Calls with rich data including direction, status, startedAt, answeredAt, endedAt and other key details

API Reference
GET/resources/telephonyCallList and Search Twilio Calls
GET/resources/telephonyCall/:idRetrieve a Twilio Call
POST/resources/telephonyCallCreate a Twilio Call
PATCH/resources/telephonyCall/:idUpdate a Twilio Call
DEL/resources/telephonyCall/:idDelete a Twilio Call
Custom Fields
Supported
The Twilio connector supports our Field Mapping feature, enabling you or your customers to seamlessly map Twilio Call custom fields to the unified call model. This allows for flexible data synchronization while maintaining data consistency across all connectors.

view Call model details

The Twilio connector seamlessly integrates with our unified telephonyCallTranscript model, enabling you to manage Call Transcripts with rich data including call, duration, segments, speakers and other key details

API Reference
GET/resources/telephonyCallTranscriptList and Search Twilio Call Transcripts
GET/resources/telephonyCallTranscript/:idRetrieve a Twilio Call Transcript
POST/resources/telephonyCallTranscriptCreate a Twilio Call Transcript
PATCH/resources/telephonyCallTranscript/:idUpdate a Twilio Call Transcript
DEL/resources/telephonyCallTranscript/:idDelete a Twilio Call Transcript

view Call Transcript model details

Custom

Supported
Can’t find the unified model you need? The Twilio connector supports your own custom model.

Webhooks

The Twilio connector supports real-time event subscriptions, allowing you to receive instant notifications when records are created, updated, or deleted. Below are the supported models and their corresponding triggers.
ModelsCreatedUpdatedDeletedAPI Reference
genericContactview event
genericUserview event
genericWorkspaceview event
telephonyCallview event
telephonyCallTranscriptview event

Proxy

Supported
The Twilio connector supports our Proxy Request feature, allowing you to directly call any endpoints from Twilio’s public API without needing to handle authentication. Your customer’s token will be automatically set and refreshed as needed, enabling quick implementation of custom connector behaviors. View API Reference.