@nangohq/node
.
Instantiate the backend SDK
Install it with your favorite package manager, e.g.:Nango
class:
Rate limits
The Nango SDK is rate-limited to prevent abuse and ensure fair usage across all clients. The rate limit is enforced on a per-account basis, with a fixed window of time and a maximum number of requests allowed within that window. If a client exceeds the rate limit, the API will respond with a 429Too Many Requests
status code. In this case, the Retry-After
header is included, indicating the number of seconds the client should wait before making another request to avoid being rate-limited.
To handle rate limiting gracefully, clients should monitor for the 429 status code and honor the Retry-After
header value provided in the response.
Integrations
List all integrations
Returns a list of integrations.Get an integration
Returns a specific integration.Create an integration
Create a new integration.Update an integration
Edits an integration (only for OAuth APIs).Delete an integration
Deletes a specific integration.Connections
List connections
Returns a list of connections without credentials.Get a connection (with credentials)
Returns a specific connection with credentials.The response content depends on the API authentication type (OAuth 2, OAuth 1, API key, Basic auth).If you do not want to deal with collecting & injecting credentials in requests for multiple authentication types, use the Proxy (step-by-step guide).
When you fetch the connection with this API endpoint, Nango will check if the access token has expired. If it has, it will refresh it.We recommend not caching tokens for longer than 5 minutes to ensure they are fresh.
Get connection metadata
Returns a connection’s metadata.Set connection metadata
Set custom metadata for the connection (overrides existing metadata).Edit connection metadata
Edit custom metadata for the connection. Only overrides specified properties, not the entire metadata.Delete a connection
Deletes a specific connection.Scripts
Get scripts config
Return the configuration for all scriptsSyncs
Get records
Returns the synced data.nango.getRecords()
is deprecated and will be removed in future releases as it does not support efficient pagination. Please use nango.listRecords()
detailed below.This endpoint returns a list of records, ordered by modification date ascending. If some records are updated while you paginate through this endpoint, you might see these records multiple times.
Trigger sync(s)
Triggers an additional, one-off execution of specified sync(s) for a given connection or all applicable connections if no connection is specified.Start schedule for sync(s)
Starts the schedule of specified sync(s) for a given connection or all applicable connections if no connection is specified.Pause schedule for sync(s)
Pauses the schedule of specified sync(s) for a given connection or all applicable connections if no connection is specified.Sync status
Get the status of specified sync(s) for a given connection or all applicable connections if no connection is specified.Override sync connection frequency
Override a sync’s default frequency for a specific connection, or revert to the default frequency.Get environment variables
Retrieve the environment variables as added in the Nango dashboard.Actions
Trigger an action
Triggers an action for a connection.Proxy
Proxy - GET requests
Triggers an action for a connection.Proxy - POST requests
Triggers an action for a connection.Proxy - PUT requests
Triggers an action for a connection.Proxy - PATCH requests
Triggers an action for a connection.Proxy - DELETE requests
Triggers an action for a connection.Questions, problems, feedback? Please reach out in the Slack community.