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

# Read Proxy

> Returns the proxy configured for the instance

**Auth:** `TokenAccount` or `TokenInstance` • **Rate-limit:** `Global` (100/min) • **Idempotent:** yes

## Description

Returns **only** the individual proxy of the instance (does not include fallback to the deploy global proxy). If the instance has no proxy of its own, returns `enabled: false` with the other fields empty. The password is **not** returned.

## Example

Performs a `GET` on the instance path and returns the `proxy` object with the active configuration (without including the `password`). If the instance has no individual proxy, it comes with `enabled: false` and the other fields `null`.

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://ryzeapi.cloud/api/instance/getProxy/my-instance" \
    -H "token: $Token_Instance"
  ```

  ```javascript JavaScript theme={null}
  await fetch("https://ryzeapi.cloud/api/instance/getProxy/my-instance", {
    method: "GET",
    headers: {
      "token": process.env.Token_Instance
    }
  });
  ```

  ```python Python theme={null}
  import os, requests

  requests.get(
      "https://ryzeapi.cloud/api/instance/getProxy/my-instance",
      headers={
          "token": os.environ["Token_Instance"]
      }
  )
  ```

  ```go Go theme={null}
  package main

  import (
      "net/http"
      "os"
  )

  func main() {
      req, _ := http.NewRequest("GET", "https://ryzeapi.cloud/api/instance/getProxy/my-instance", nil)
      req.Header.Set("token", os.Getenv("Token_Instance"))
      http.DefaultClient.Do(req)
  }
  ```
</CodeGroup>

## Success response

<Tabs>
  <Tab title="With proxy">
    ```json 200 OK theme={null}
    {
      "success": true,
      "message": "Proxy configuration retrieved successfully",
      "proxy": {
        "enabled": true,
        "host": "proxy.example.com",
        "port": "1080",
        "protocol": "socks5",
        "username": "user1"
      }
    }
    ```
  </Tab>

  <Tab title="Without proxy">
    ```json 200 OK theme={null}
    {
      "success": true,
      "message": "Proxy configuration retrieved successfully",
      "proxy": {
        "enabled": false,
        "host": null,
        "port": null,
        "protocol": null,
        "username": null
      }
    }
    ```
  </Tab>
</Tabs>

<Note>
  The `password` field is **never** returned by this endpoint.
</Note>

## Path parameters

<ParamField path="instance" type="string" required>
  Instance name.
</ParamField>

## Headers

<ParamField header="token" type="string" required>
  TokenAccount or TokenInstance.
</ParamField>

## Errors

| HTTP | `error.message`                         | When                      |
| :--: | --------------------------------------- | ------------------------- |
|  401 | `Invalid token`                         | Token missing or invalid. |
|  404 | `Instance not found`                    | Name does not exist.      |
|  429 | `Rate limit exceeded. Try again later.` | More than 100 req/min.    |
|  500 | `Failed to get proxy configuration`     | Database error.           |

```json theme={null}
{
  "success": false,
  "error": {
    "message": "Instance not found"
  }
}
```

## Notes

<Note>
  This endpoint **does not expose** the deploy global proxy intentionally, you only see what you configured for this instance.
</Note>

## Next

<CardGroup cols={2}>
  <Card title="Update proxy" icon="pen-to-square" href="/en/api/instance/proxy-update">
    `POST /api/instance/proxy/:instance` to change.
  </Card>
</CardGroup>
