When to use the proxy
Use the proxy when:- You need a quick, one-off API call without deploying a function
- Your integration logic lives in your application code rather than Nango
- You want centralized logging and retries for ad-hoc API calls
- You need to run complex multi-step logic
- You want to cache or transform data before it reaches your app
- You need incremental data fetching with checkpoints
How it works
Instead of calling an external API directly, you call Nango’s proxy endpoint with the same HTTP method, path, and body. Nango:- Looks up the connection by
providerConfigKeyandconnectionId - Retrieves and refreshes credentials as needed
- Injects the credentials into the request (as a Bearer token, API key header, etc.)
- Forwards the request to the external API
- Returns the response to your application
Making proxy requests
- Node SDK
- cURL
HTTP method shortcuts
The Node SDK provides convenience methods for all standard HTTP methods:method field via the generic nango.proxy() call.
ProxyConfiguration parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
endpoint | string | Yes | The API path to call (e.g., /users/me). Appended to the provider’s base URL. |
providerConfigKey | string | Yes | The integration ID in Nango (e.g., github, salesforce). |
connectionId | string | Yes | The ID of the connection whose credentials to use. |
method | string | No | HTTP method: GET, POST, PUT, PATCH, DELETE. Defaults to GET. |
headers | Record<string, string> | No | Additional headers to include in the request. |
params | Record<string, string> | No | Query string parameters. |
data | any | No | Request body for POST, PUT, and PATCH requests. |
retries | number | No | Number of retries with exponential backoff on failure (default: 0). |
retryOn | number[] | No | Additional HTTP status codes to retry on (e.g., [500, 503]). |
baseUrlOverride | string | No | Override the provider’s default base URL. |
responseType | string | No | Axios response type (e.g., 'arraybuffer' for binary responses). |
Response format
The proxy returns a standard Axios response object:Retries
Passretries: N to retry failed requests with exponential backoff. Rate-limit responses (429) are automatically retried regardless of this setting.
Proxy inside functions
Thenango object available inside syncs and actions exposes the same proxy methods. You don’t need to provide providerConfigKey or connectionId — they are inferred from the function’s execution context:
Proxy via REST API
You can also call the proxy directly via HTTP from any language:/proxy/ is forwarded to the external API’s base URL.