Only show these results:
private-preview

Create a Zoom Integration

This feature is a private preview release and should be used with caution. Its features and implementation will likely change before it is generally available.

In this guide, you’ll learn how to create a Zoom integration with Nylas.

You'll need to repeat the process for each account you want to connect.

Prerequisites

  • Make sure you create a Zoom app and make note of the following as it will be needed later on:
    • Zoom Client ID and Secret.
    • Redirect URI used when creating a Zoom app.
  • You have a Nylas authenticated account.
    • You can follow our guides on hosted and native authentication if you need to authenticate a Nylas account.
  • Use the correct URL based on your location:

Authenticate the Request

To authenticate the request, use your base64 encoded <NYLAS_CLIENT_ID:CLIENT_SECRET> for basic authentication. You can use the shell or Bash to encode your Client ID/Secret as shown below:

echo<NYLAS_CLIENT_ID:CLIENT_SECRET>| base64
4oCYZDU3OTYzZDU1OGQxOmIzNTU5MmU1MTAxNuKAmQo=

Make sure to put a colon between the NYLAS_CLIENT_ID and NYLAS_CLIENT_SECRET in your command.

Make a POST Request to connect/integrations

In this step, you’ll associate the Zoom integration with your Nylas application.

The request includes the following required fields:

Name Type Description
name string The name of the integration. This is for your own identification.
provider string This is always zoom
settings.client_id string The Zoom Client ID from create a Zoom app.
settings.client_secret string The Zoom Client Secret from create a Zoom app.
redirect_uris array of strings An array of redirect URIs. You can have multiple URIs here. One needs to match the Redirect URL for OAuth in your Zoom integration and one should also be the URL that users go to after authentication. This is a web address that you set up.
expires_in string This shows the specified expiration date of the issued JWT. The default is 14 days (1,209,600 seconds).

Example Create Integration Request

curl --location --request POST 'https://beta.us.nylas.com/connect/integrations' \
--header 'Authorization: Basic <NYLAS_CLIENT_ID:CLIENT_SECRET>' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name": "<APP_NAME>",
"provider": "zoom",
"settings": {
"client_id": "<ZOOM_CLIENT_ID>",
"client_secret": "<ZOOM_CLIENT_SECRET>"
},
"redirect_uris": [
"https://your-app.com/callback-handler"
],
"expires_in": 1209600
}'

Example Create Integration Response

{
"success": true,
"data": {
"id": "a6fc8cad-f2dc-4d18-aee5-2fd8be988ece",
"name": "<APP_NAME>",
"provider": "zoom",
"redirect_uris": [
"https://your-app.com/callback-handler"
],
"expires_in": 1209600
}
}

Learn More

Check out our guide on creating an integration endpoint.

Create a Zoom Authentication Request

Now that you have a Zoom integration set up, you’ll need to grant account access to Zoom.

During this step, you’ll pass in a Nylas account_id to have Zoom associate with the correct account. The response returns the authentication URL. Make sure to review the grant endpoint for more optional fields.

Name Type Description
provider string This is always zoom.
redirect_uri string This needs to match the Redirect URL for OAuth in your Zoom integration.
expires_in string Shows the specified expiration date of the issued JWT. The default is 14 days (1,209,600 seconds). You're able to overwrite this at the grant level.
account_id string The Nylas account_id that can use the Zoom integration.

You’ll notice some of the fields you used for Integration are also in Grants. You can set Integration defaults and override them at the Grant level.

Example Create a Zoom Auth Request

The redirect_uri must match the Redirect URL for OAuth in Zoom.

curl --location --request POST 'https://beta.us.nylas.com/connect/auth' \
--header 'Authorization: Basic <NYLAS_CLIENT_ID:CLIENT_SECRET>' \
--header 'Content-Type: application/json' \
--data-raw '{
"provider": "zoom",
"redirect_uri": "https://your-app.com/callback-handler",
"expires_in": 43200,
"account_id": "<NYLAS_ACCOUNT_ID>"
}'

Example Create a Zoom Auth Response

The url is where the user will be directed to authenticate against Zoom. The redirect_uri is where they will be sent after authentication.

{
"success": true,
"data": {
"url": "https://example.com/connect/login?id=DTocdJxOIChnqgQe7KGxuM8Qxs2xiifQeCRG",
"id": "DTocdJxOIChnqgQe7KGxuM8Qxs2xiifQeCRG",
"expires_at": 1627543615,
"request": {
"provider": "zoom",
"redirect_uri": "https://your-app.com/callback-handler",
"account_id": "7keuifv5667vz4c3cvshe9lsm"
}
}
}

Learn More

Check out our guide on the hosted authentication endpoint.

Redirect the User

In the previous step, Nylas returned an authentication URL. You'll need to direct your user to that URL so they can authenticate the account against Zoom. The user will need to give consent so that the app is authorized to create conferencing objects on behalf of the user.

Nylas Directs the User

Once the user's been authenticated, Nylas will send the user to the redirect URI specified earlier. We’ll also include the status of the grant, the grant_id, and the provider. An example of this is shown below:

/?success=true&provider=zoom&grant_id=9459b732-7165-4a1a-a1cd-8f88a6bda3fa   

Success!

At this point, the authentication is successful and the user can start creating Zoom Meetings.

What's Next?