Learn more about integration scripts.
nango
helpernango
object (reference), providing helper methods for API requests, data persistence, logging, and access to connection specifics. Scripts can also access environment variables that you configure in the Environment Settings tab of the Nango UI.
nango.yaml
file is where you’ll define your integration configurations. This crucial file outlines:
nango.yaml
specifies what data goes in and out, alongside the specifications for the endpoints that will handle data synchronization or action triggers.
Specifically for syncs, it details the schedule for syncing operations, whether the syncs use the incremental or full refresh mode, and how deletions are handled.
Webhook configurations are also detailed in this file, outlining the subscription mechanisms for receiving updates from external APIs.
nango.yaml
file. Following this, you can use the CLI to generate the necessary script scaffolding (step-by-step guide).
After deploying changes to your integration configuration to a Nango cloud environment, these updates will be visible within the Nango UI under the integration’s Scripts tab, ensuring you have a clear overview of the configurations in effect for your integrations.
Any changes you make in the nango.yaml
affect all connections under that integration. For instance, modifying the sync schedule for tasks in an Asana integration from daily to hourly will adjust the frequency for all linked Asana connections.
npm
, lets you generate, compile, test, and deploy integration scripts & configuration. For a detailed installation guide, refer to the step-by-step guide.
init
) must be executed within the designated Nango integration folder.nango-integrations
folder is generated via the Nango CLI and governs the communication between Nango & external APIs (while your app’s code governs the communication between your app and Nango).
nango.yaml
(yaml file): contains configurations for syncs, actions, webhooks, and input/output models.
models.ts
(Typescript file): auto-generated file with classes for integration scripts. Not to be manually edited.
.env
: stores configuration for the Nango CLI, including API keys for Nango environments. It should not be version-controlled to secure API keys.
nango-integrations
folder, either with your main codebase or separately. Ensure the .env
file is excluded to protect your API keys.
nango-integrations
folder come via PRs in a shared GitHub repository. These PRs contain updates or new integrations that you can merge and deploy.