---
title: "retrieve client proxy setup details"
method: GET
path: "/mockserver/proxyConfiguration"
tags: ["control"]
---

# retrieve client proxy setup details

`GET /mockserver/proxyConfiguration`

## Request

- Base URL: `http://localhost:1080`
- URL: `http://localhost:1080/mockserver/proxyConfiguration`
- Auth: none declared

Returns everything a client needs to route through this instance as a proxy: the CA certificate (path and PEM), the proxy URL, and ready-to-paste environment-variable snippets for Unix shells and PowerShell. Send `Accept: text/plain` to get the copy-paste snippet on its own instead of the JSON document.

## Response `200`

proxy configuration returned

- object
  - `caCertificatePath` string
  - `caCertificatePem` string
  - `httpsProxy` string
  - `environmentVariables` object
    - `unix` string
    - `powershell` string
  - `usingDefaultCa` boolean
  - `warning` string, nullable

## Other responses

- `500`: an unexpected failure inside MockServer; the error field names a correlation id for the MockServer log

---

[API](https://skmtc.dev/mock-server/apis/mockserver-api.md) · [All operations](https://skmtc.dev/mock-server/apis/mockserver-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mock-server/apis/mockserver-api/revisions/9239b693996e?raw)
