# Proxy requests to an API

Pre-requisite: creation of an integration and at least one connection.

The [Proxy](https://terapi.gitbook.io/terapi-api-explorer/integrate/guides/proxy-requests-to-an-api) lets you query external APIs easily with credentials injection, request logging, and pre-configurations for base URLs, rate-limits, retries, etc.

Here is an example of how to query external APIs with the proxy, using the SDK and API:

```typescript
try 
    });

    // Response was 200!
    // See https://axios-http.com/docs/res_schema
    console.log(res.data);
} catch (error) 
```

```bash
curl -X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer ' \
-H 'Provider-Config-Key: ' \
-H 'Connection-Id: ' \
-d '' \
'https://api.terapi.dev/proxy/'
```

**Questions, problems, feedback?** Please reach out in the Slack community.
