Skip to main content
A dedicated Python SDK is not yet available. Use the Nango REST API directly with the requests library or any HTTP client. This page shows how to authenticate and call the most common endpoints.

Authentication

All requests to https://api.nango.dev require your secret key as a Bearer token.
Get your secret key from Settings > Environment Settings in the Nango dashboard.
Never expose your secret key in client-side code or public repositories. Store it in an environment variable.
For self-hosted instances, replace https://api.nango.dev with your instance URL (e.g. http://localhost:3003).

Integrations

List integrations

Get an integration

Create an integration

Delete an integration


Connect sessions

Create a connect session

Generate a short-lived session token to open the Connect UI for an end user.

Connections

List connections

Get a connection (with credentials)

Nango automatically refreshes expired tokens when you fetch a connection.

Delete a connection

Get connection metadata

Set connection metadata

Update connection metadata

Merges the supplied keys into existing metadata without overwriting other keys.

Proxy

Route authenticated requests to external APIs through Nango. Nango injects credentials automatically.
To configure retries, pass the Retries header:

Syncs

List records

To paginate, pass cursor in the params:

Trigger a sync

Get sync status


Actions

Trigger an action


Error handling

All API errors return JSON with an error field. Check the HTTP status code and handle accordingly.

Helper class

For convenience, you can wrap the common patterns in a simple client class: