Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Integrating with APIs and Apps | Introduction to n8n
n8n Overview

Integrating with APIs and Apps

Desliza para mostrar el menú

When you want to automate tasks across different services, n8n provides a wide range of integration nodes to help you connect and interact with popular apps and APIs. These nodes allow you to automate everything from sending emails to managing tasks or posting messages. Here’s a categorized list of some of the most commonly used integration nodes in n8n:

Communication:

  • Gmail;
  • Slack;
  • Microsoft Outlook;
  • Twilio;
  • Telegram.

Productivity & Project Management:

  • Trello;
  • Asana;
  • Jira;
  • Notion;
  • Google Sheets.

Storage & File Management:

  • Dropbox;
  • Google Drive;
  • OneDrive;
  • Box.

CRM & Marketing:

  • HubSpot;
  • Salesforce;
  • Mailchimp;
  • ActiveCampaign.

Developer Tools:

  • GitHub;
  • GitLab;
  • Bitbucket;
  • HTTP Request (for custom APIs).

These nodes make it easy to connect your workflows with the tools you already use, handling the details of authentication and API communication for you.

API Key
expand arrow

Pros: Simple to set up; widely supported; easy to use for scripts and automated workflows.

Cons: Less secure if keys are exposed; limited control over permissions; often tied to a user or service account.

OAuth2
expand arrow

Pros: More secure; allows for granular permissions; supports user consent and token expiration.

Cons: More complex to configure; may require application registration with the service provider; token refresh logic needed.

Basic Auth
expand arrow

Pros: Very simple; supported by many legacy systems; quick to implement for testing.

Cons: Least secure; credentials are sent with every request; not recommended for production use.

To connect n8n with an external service, you usually need to authenticate using one of the supported methods. Here’s a step-by-step example of integrating with the Trello API using an API key, followed by an OAuth2 example for the Gmail node.

Connecting to Trello with an API Key:

  1. Open your n8n workflow editor and add a new Trello node;
  2. Click on the Credentials dropdown in the node’s settings and select Create New;
  3. Enter your Trello API key and token, which you can obtain from your Trello account settings;
  4. Save the credentials. The Trello node is now ready to use in your workflow.

Connecting to Gmail with OAuth2:

  1. Add a Gmail node to your workflow;
  2. In the node’s settings, click Credentials and choose Create New;
  3. Provide the required OAuth2 details, such as Client ID and Client Secret, which you get from your Google Cloud Console;
  4. Authorize n8n to access your Gmail account by following the OAuth2 consent flow;
  5. Save the credentials and test the node to ensure it’s connected.

Screenshot of n8n workflow editor showing Trello and Gmail node credential setup

These steps are similar for most integration nodes—just choose the right authentication method and supply your credentials in a secure way.

Note
Note

Security tip: Always store your API credentials and tokens securely in n8n’s built-in credential manager. Avoid hardcoding sensitive information in node parameters or workflow data, and restrict credential access to only those who need it.

slack-trello-workflow.json

slack-trello-workflow.json

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 8

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

Sección 1. Capítulo 8
some-alt