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 tohttps://api.nango.dev require your secret key as a Bearer token.
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.Retries header:
Syncs
List records
cursor in the params:
Trigger a sync
Get sync status
Actions
Trigger an action
Error handling
All API errors return JSON with anerror field. Check the HTTP status code and handle accordingly.