> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Proxy requests

> How to use the requests proxy from Nango

The proxy is Nango's lowest-level way to make authenticated HTTP requests to an external API. It uses an existing connection to authenticate the request.

## When to use the proxy

Start with [Agent sessions](https://nango.dev/docs/guides/agent-sessions.md) for agent workflows, or use [Tools](https://nango.dev/docs/guides/tools/overview.md), [Triggers](https://nango.dev/docs/guides/triggers/overview.md), and [Syncs](https://nango.dev/docs/guides/syncs/overview.md) when they cover what you need.

Use the HTTP proxy when you need a raw request to a provider or need to upload or download binary files.

## How to use the proxy

Make sure you have a [configured integration](https://nango.dev/docs/guides/auth/setup.md#create-integration) and at least one connection for it.

> [tab] Node
>
> ```typescript theme={null}
> try {
>     const res = await nango.proxy({
>         method: 'POST',
>         endpoint: '/<API-ENDPOINT>',
>         providerConfigKey: '<INTEGRATION-ID>',
>         connectionId: '<CONNECTION-ID>',
>         retries: 5, // Retries with exponential backoff (optional, default 0)
>         data: {
>             colorId: 'blue'
>         }
>     });
>
>     // Response was 200!
>     // See https://axios-http.com/docs/res_schema
>     console.log(res.data);
> } catch (error) {
>     // Status of response != 200
>     // See https://axios-http.com/docs/handling_errors
>     console.log(error.response.data);
>     console.log(error.response.status);
>     console.log(error.response.headers);
> }
> ```

> [tab] cURL
>
> ```bash theme={null}
> curl -X POST -H 'Content-Type: application/json' \
> -H 'Authorization: Bearer <NANGO-API-KEY>' \
> -H 'Provider-Config-Key: <INTEGRATION-ID>' \
> -H 'Connection-Id: <CONNECTION-ID>' \
> -d '{"colorId": "blue"}' \
> 'https://api.nango.dev/proxy/<API-ENDPOINT>'
> ```

## Related guides

* [Setup guide](https://nango.dev/docs/guides/auth/setup.md) - create the connection used by proxy requests
* [Node SDK reference](https://nango.dev/docs/reference/backend/backend-sdk/node.md#proxy) - proxy helper methods
* [Proxy API reference](https://nango.dev/docs/reference/backend/http-api/proxy/get.md) - REST endpoints for proxied requests
* [Rate limits](https://nango.dev/docs/guides/platform/functions/rate-limits.md) - handle provider throttling


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.