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

# Get IP whitelist

> GET /api/reseller/v1/subusers/{id}/whitelist: a subuser's whitelisted IPs

Retrieve the whitelisted IPs for a subuser.

## Authentication

Requires a reseller API key. Pass it as `Authorization: Bearer YOUR_API_KEY` or `X-API-Key: YOUR_API_KEY`. See [Reseller overview](/api/reseller/overview#authentication).

## Path parameters

<ParamField path="id" type="string" required>
  The subuser username (full prefixed username, e.g. `MYSTORE_user1`).
</ParamField>

## Response

<ResponseField name="username" type="string">Full prefixed username.</ResponseField>
<ResponseField name="whitelistIPs" type="array">The subuser's whitelisted IPs.</ResponseField>

## Example response

```json theme={"dark"}
{
  "status": "success",
  "message": "OK",
  "messageCode": "OK",
  "data": {
    "username": "MYSTORE_user1",
    "whitelistIPs": ["192.168.1.1", "10.0.0.1"]
  }
}
```

## Related

* [Add whitelist IP](/api/reseller/add-whitelist-ip)
* [Remove whitelist IP](/api/reseller/remove-whitelist-ip)

## Errors

* **401** `UNAUTHORIZED`: missing or invalid API key
* **403** `NOT_RESELLER`: account is not a reseller
* **404** `NOT_FOUND`: no subuser with that username
