> For the complete documentation index, see [llms.txt](https://documentation.freshpaint.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.freshpaint.io/reference/faqs/running-freshpaint-with-a-proxy.md).

# Running Freshpaint with a Proxy

If you want to route data through your own server before the data is sent to Freshpaint, you can do so by customizing the initialization of the SDK. When calling `freshpaint.init()` you should provide your own API url you want to send the data to first like so:

```javascript
freshpaint.init('<env-id>', {'api_host': '<custom-api-host>'});
```
