← Zoom + Twilio integrations

List Calls with Twilio API on Custom Events from Zoom API

Pipedream makes it easy to connect APIs for Twilio, Zoom and 800+ other apps remarkably fast.

Trigger workflow on
Custom Events from the Zoom API
Next, do this
List Calls with the Twilio API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a Zoom trigger and Twilio action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the Custom Events trigger
    1. Connect your Zoom account
    2. Select one or more Zoom Events
    3. Configure zoomApphook
  3. Configure the List Calls action
    1. Connect your Twilio account
    2. Optional- Select a From
    3. Optional- Configure To
    4. Optional- Select a Parent Call SID
    5. Optional- Select a Status
    6. Optional- Configure Limit
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Listen for any events tied to your Zoom user or resources you own
Version:0.0.4
Key:zoom-custom-events

Trigger Code

import zoom from "../../zoom.app.mjs";

export default {
  key: "zoom-custom-events",
  name: "Custom Events",
  description:
    "Listen for any events tied to your Zoom user or resources you own",
  version: "0.0.4",
  props: {
    zoom,
    eventNameOptions: {
      label: "Zoom Events",
      type: "string[]",
      async options() {
        return [
          "meeting.alert",
          "meeting.created.by_me",
          "meeting.created.for_me",
          "meeting.updated",
          "meeting.deleted.by_me",
          "meeting.deleted.for_me",
          "meeting.started",
          "meeting.ended",
          "meeting.registration_created",
          "meeting.registration_approved",
          "meeting.registration_cancelled",
          "meeting.registration_denied",
          "meeting.sharing_started.host",
          "meeting.sharing_started.participant",
          "meeting.sharing_ended.host",
          "meeting.sharing_ended.participant",
          "meeting.participant_jbh_joined",
          "meeting.participant_jbh_waiting",
          "meeting.participant_joined",
          "meeting.participant_left",
          "meeting.participant_joined_waiting_room",
          "meeting.participant_admitted",
          "meeting.participant_put_in_waiting_room",
          "meeting.participant_left_waiting_room",
          "recording.started",
          "recording.paused",
          "recording.resumed",
          "recording.stopped",
          "recording.completed",
          "recording.trashed.by_me",
          "recording.trashed.for_me",
          "recording.deleted.by_me",
          "recording.deleted.for_me",
          "recording.recovered.by_me",
          "recording.recovered.for_me",
          "recording.transcript_completed",
          "recording.registration_created",
          "recording.registration_approved",
          "recording.registration_denied",
          "user.updated",
          "user.settings_updated",
          "user.signed_in",
          "user.signed_out",
          "webinar.created.by_me",
          "webinar.created.for_me",
          "webinar.updated",
          "webinar.started",
          "webinar.ended",
          "webinar.alert",
          "webinar.sharing_started.host",
          "webinar.sharing_started.participant",
          "webinar.sharing_ended",
          "webinar.registration_created",
          "webinar.registration_approved",
          "webinar.registration_denied",
          "webinar.registration_cancelled",
          "webinar.participant_joined",
          "webinar.participant_left",
        ];
      },
    },
    zoomApphook: {
      type: "$.interface.apphook",
      appProp: "zoom",
      async eventNames() {
        return this.eventNameOptions;
      },
    },
  },
  async run(event) {
    console.log(event);
    this.$emit(event, {
      summary: event.event,
    });
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
ZoomzoomappThis component uses the Zoom app.
Zoom EventseventNameOptionsstring[]Select a value from the drop down menu.
zoomApphook$.interface.apphook

Trigger Authentication

Zoom uses OAuth authentication. When you connect your Zoom account, Pipedream will open a popup window where you can sign into Zoom and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zoom API.

Pipedream requests the following authorization scopes when you connect your account:

About Zoom

Zoom is the leader in modern enterprise video communications, with an easy, reliable cloud platform for video and audio conferencing, chat, and webinars.

Action

Description:Return a list of calls associated with your account. [See the docs](https://www.twilio.com/docs/voice/api/call-resource#read-multiple-call-resources) for more information
Version:0.0.1
Key:twilio-list-calls

Action Code

import twilio from "../../twilio.app.mjs";
import { omitEmptyStringValues } from "../../utils.mjs";

export default {
  key: "twilio-list-calls",
  name: "List Calls",
  description: "Return a list of calls associated with your account. [See the docs](https://www.twilio.com/docs/voice/api/call-resource#read-multiple-call-resources) for more information",
  version: "0.0.1",
  type: "action",
  props: {
    twilio,
    from: {
      propDefinition: [
        twilio,
        "from",
      ],
      description: "Only include calls from this phone number, SIP address, Client identifier or SIM SID. Format the phone number in E.164 format with a `+` and country code (e.g., `+16175551212`).",
      optional: true,
    },
    to: {
      propDefinition: [
        twilio,
        "to",
      ],
      description: "Only show calls made to this phone number, SIP address, Client identifier or SIM SID. Format the phone number in E.164 format with a `+` and country code (e.g., `+16175551212`).",
      optional: true,
    },
    parentCallSid: {
      propDefinition: [
        twilio,
        "parentCallSid",
      ],
    },
    status: {
      propDefinition: [
        twilio,
        "status",
      ],
    },
    limit: {
      propDefinition: [
        twilio,
        "limit",
      ],
    },
  },
  async run({ $ }) {
    const resp = await this.twilio.listCalls(omitEmptyStringValues({
      to: this.to,
      from: this.from,
      parentCallSid: this.parentCallSid,
      status: this.status,
      limit: this.limit,
    }));
    /* eslint-disable multiline-ternary */
    $.export("$summary", `Successfully fetched ${resp.length} call${resp.length === 1 ? "" : "s"}${
      this.from ? ` from ${this.from}` : ""}${this.to ? ` to ${this.to}` : ""}`);
    return resp;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
TwiliotwilioappThis component uses the Twilio app.
FromfromstringSelect a value from the drop down menu.
Totostring

Only show calls made to this phone number, SIP address, Client identifier or SIM SID. Format the phone number in E.164 format with a + and country code (e.g., +16175551212).

Parent Call SIDparentCallSidstringSelect a value from the drop down menu.
StatusstatusstringSelect a value from the drop down menu:queuedringingin-progresscanceledcompletedfailedbusyno-answer
Limitlimitinteger

The maximum number of results to be worked with during one execution cycle.

Action Authentication

Twilio uses API keys for authentication. When you connect your Twilio account, Pipedream securely stores the keys so you can easily authenticate to Twilio APIs in both code and no-code steps.

1) Create an API key in Twilio. There are two types of keys: Master and Standard. You'll need a Master key to interact with certain API endpoints, like /Accounts. If you don't need to interact with those endpoints, you can use a Standard key.

2) After creating your key, you'll see an Sid and Secret. Enter those in the fields below.

3) Visit your Twilio Dashboard. You'll see your Account SID listed near the top. Enter that in the AccountSid field below.

About Twilio

Cloud communications platform for building SMS, Voice & Messaging applications on an API built for global scale

More Ways to Connect Twilio + Zoom