> For AI agents: the complete documentation index is available at https://proxykite.com/docs/llms.txt, the full documentation bundle is available at https://proxykite.com/docs/llms-full.txt.

# Proxies

A **proxy** is one 4G dongle on one of your nodes, published on one public port of our cloud router.
Its id is the number in the panel URL (`/proxies/7`).

## The proxy object

```json
{
  "id": 7,
  "label": "Shop A",
  "host": "ind1.proxykite.com",
  "port": 30007,
  "pending_host": null,
  "pending_port": null,
  "switch_at": null,
  "status": "online",
  "enabled": true,
  "disabled_reason": null,
  "data_connection": "connected",
  "data_connection_reason": null,
  "state": "online",
  "state_reason": null,
  "internet": {"ok": true, "error": null, "checked_at": "2026-11-15T06:12:40+00:00", "since": null},
  "current_ip": "100.64.1.2",
  "signal": {"network_type": "LTE", "rsrp": "-95dBm"},
  "fingerprint": "android",
  "auto_rotate_seconds": null,
  "sticky": false,
  "last_rotated_at": "2026-10-09T18:00:00+00:00",
  "rotation_url": "https://proxykite.com/r/<rotation_token>",
  "expires_at": null,
  "quota_bytes": null,
  "used_bytes": 123456,
  "node": {"id": 12, "hostname": "proxyserver2", "online": true, "name": "Rack A", "display_name": "Rack A",
           "country_code": "IN", "city": "Kolkata"},
  "users": [
    {"username": "u7abc", "password": "s3cret", "max_conn": 200, "enabled": true,
     "http": "http://u7abc:s3cret@ind1.proxykite.com:30007",
     "socks5": "socks5://u7abc:s3cret@ind1.proxykite.com:30007"}
  ],
  "whitelist": [{"id": 3, "cidr": "203.0.113.4/32", "note": "office"}],
  "ports": {"mode": "shared", "http_port": 30007, "socks5_port": 30007, "host": "ind1.proxykite.com",
            "range": {"min": 30000, "max": 30999}},
  "site_rules": {"mode": "off", "count": 0},
  "limits": {"...": "..."},
  "traffic": {"...": "..."},
  "device": {"...": "..."}
}
```

| Field                                       | Meaning                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`                                        | proxy id                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `label`                                     | your name for it (`null` = none). Change with `PATCH /proxies/{id}`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `host`, `port`                              | the public endpoint; see [Proxy formats](https://proxykite.com/docs/guide/proxy-formats.md). `host` is the cloud router your node is on: a hostname such as `ind1.proxykite.com`. If that router fails, the name moves to its standby server automatically, so always use the hostname (not its IP) and read it from the API rather than hard-coding it                                                                                                                                                                                                                                                   |
| `pending_host`, `pending_port`, `switch_at` | set only while your node is scheduled to move to another cloud router: the new host (and port, normally unchanged) and when the switch happens. `null` otherwise. You also get an email and the `proxy.address_changing` webhook                                                                                                                                                                                                                                                                                                                                                                          |
| `status`                                    | `online`, `offline`, `pending_approval` or `over_limit`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `enabled`                                   | `false` when the proxy refuses connections; `disabled_reason` says why                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `disabled_reason`                           | `null`, or one of the reasons below                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `data_connection`                           | whether the device has **mobile data**: `connected`, `disconnected` or `unknown` (device not online, or no reading in the last 10 minutes). `status` only says whether the box sees the device; a proxy can be `online` with `disconnected` data (e.g. HiLink connection status 902 on a 2G-only SIM, or a modem whose data bearer is down). The panel shows `disconnected` as a "No data" badge                                                                                                                                                                                                          |
| `data_connection_reason`                    | why it is `disconnected`, e.g. `"disconnected (902) · EDGE"`; otherwise `null`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `state`                                     | the one answer to "is this proxy working right now": `online`, or the worst current problem: `no_data` (no mobile data), `no_internet` (the dongle is up but nothing reaches the internet through it: SIM out of data or balance, carrier session dropped), `stalled` (USB link up, dongle silent), `offline` (unplugged / link down), `over_limit`, `pending`, `node_offline` (the box stopped sending heartbeats), `blocked` (disabled, expired, bandwidth limit, licence). Same order as the badge in the panel; the [uptime history](https://proxykite.com/docs/api/usage.md#uptime) is built from it |
| `state_reason`                              | plain-English cause for any state other than `online`, e.g. `"No internet through the dongle: timeout"`; otherwise `null`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `internet`                                  | the agent's internet check **through the dongle** (agent 1.13.0 or newer, every minute, faster while failing): `ok` `true`/`false`/`null` (not checked: older agent, dongle down), `error` the short cause when `false` (`timeout`, `dns failure`, `network is unreachable`, …), `checked_at` time of the last check, `since` start of the current no-internet run or `null`                                                                                                                                                                                                                              |
| `current_ip`                                | the mobile IP the proxy exits from                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `country_code`                              | country of `current_ip` (ISO-2)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `isp`                                       | `{"name", "asn", "as_name", "org", "country_code", "logo_url"}` of the exit IP, or `null`. `country_code` and `isp` come from a cached lookup refreshed every minute or so; right after a rotation they still show the previous IP's values                                                                                                                                                                                                                                                                                                                                                               |
| `signal`                                    | radio details when the dongle reports them (`network_type`, `operator`, `rsrp`, `rsrq`, `sinr`, `rssi`, …); may be `{}`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `fingerprint`                               | OS fingerprint profile (`android`, `iphone`, `none`)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `auto_rotate_seconds`                       | auto-rotation interval, `null` = off. See [Rotation](https://proxykite.com/docs/api/rotation.md)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `sticky`                                    | `true` pauses auto-rotation, keeping the current IP                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `last_rotated_at`                           | last successful rotation                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `rotation_url`                              | secret [rotation link](https://proxykite.com/docs/guide/rotation-links.md)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `expires_at`                                | for reseller sub-user assignments: when access ends (`null` = never)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `quota_bytes`, `used_bytes`                 | traffic quota (`null` = unlimited) and traffic used                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `node`                                      | the box the dongle is plugged into: `id`, `hostname`, `online`, `name`, `display_name`, `country_code`, `city`; see [Nodes](https://proxykite.com/docs/api/nodes.md#the-node-object)                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `users`                                     | proxy logins, with ready-to-use `http` and `socks5` URLs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `whitelist`                                 | client IPs/ranges allowed without a password; see [Whitelist](https://proxykite.com/docs/api/whitelist.md)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `ports`                                     | port mode and the HTTP / SOCKS5 port numbers; see [Ports](https://proxykite.com/docs/api/ports.md)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `site_rules`                                | `{"mode", "count"}` of the proxy's [website rules](https://proxykite.com/docs/api/website-rules.md)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `traffic`                                   | traffic-insights settings and status; see [Traffic insights](https://proxykite.com/docs/api/traffic.md)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `sim`                                       | `GET /proxies/{id}` only, not for reseller sub-users; see [SIM card and recharge date](#sim-card-and-recharge-date)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `limits`                                    | SMS and bandwidth limits with current usage; see [SMS and bandwidth limits](#sms-and-bandwidth-limits)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `device`                                    | what the device is and what it can do: type, model, capabilities, permanent `uid`; see [Device type and capabilities](#device-type-and-capabilities)                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

**`disabled_reason` values:** `pending_approval` (the node has auto-adopt off; approve the dongle under Nodes),
`admin_disabled`, `over_limit` (more dongles than the licence allows), `license_suspended`, `subscription_expired` (the licence was not
renewed: paid-until date + grace days have passed; it comes back by itself after renewal), `owner_suspended`, `unpaid`,
`assignee_suspended`, `expired`, `over_quota`, `bandwidth_limit` (a day/week/month bandwidth limit is used up; the proxy
starts again when that period resets), `no_address` (the dongle has no IP on the box yet).

## List proxies


`GET /proxies`

**Ability:** `read` · Every proxy your login can see, ordered by id (up to 2000). Reseller sub-users see only the
proxies assigned to them.



**curl**

```bash
curl 'https://proxykite.com/api/v1/proxies' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json'
```


**Python**

```python
import os
import requests

r = requests.get(
    "https://proxykite.com/api/v1/proxies",
    headers={"Authorization": f"Bearer {os.environ['HYP_TOKEN']}", "Accept": "application/json"},
    timeout=30,
)
print(r.status_code, r.json())
```


**Node.js**

```js
const res = await fetch('https://proxykite.com/api/v1/proxies', {
  headers: {
    Authorization: `Bearer ${process.env.HYP_TOKEN}`,
    Accept: 'application/json',
  },
  signal: AbortSignal.timeout(30000),
});
console.log(res.status, await res.json());
```


**PHP**

```php
<?php
$ch = curl_init('https://proxykite.com/api/v1/proxies');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('HYP_TOKEN'),
        'Accept: application/json',
    ],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
var_dump($status, json_decode($body, true));
```



**Response `200`:** `{"data": [<proxy>, ...]}`

## Get one proxy


`GET /proxies/{id}`

**Ability:** `read`



**curl**

```bash
curl 'https://proxykite.com/api/v1/proxies/7' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json'
```


**Python**

```python
import os
import requests

r = requests.get(
    "https://proxykite.com/api/v1/proxies/7",
    headers={"Authorization": f"Bearer {os.environ['HYP_TOKEN']}", "Accept": "application/json"},
    timeout=30,
)
print(r.status_code, r.json())
```


**Node.js**

```js
const res = await fetch('https://proxykite.com/api/v1/proxies/7', {
  headers: {
    Authorization: `Bearer ${process.env.HYP_TOKEN}`,
    Accept: 'application/json',
  },
  signal: AbortSignal.timeout(30000),
});
console.log(res.status, await res.json());
```


**PHP**

```php
<?php
$ch = curl_init('https://proxykite.com/api/v1/proxies/7');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('HYP_TOKEN'),
        'Accept: application/json',
    ],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
var_dump($status, json_decode($body, true));
```



**Response `200`:** `{"data": <proxy>}` · `404 not_found` if the proxy does not exist or is not yours.

## Rename a proxy


`PATCH /proxies/{id}`

**Ability:** `manage` · **Who:** account owner or team admin (sub-users and viewers get `403 forbidden`).

| Body field | Type                                 |                                               |
| ---------- | ------------------------------------ | --------------------------------------------- |
| `label`    | string ≤ 100 chars, or `null` / `""` | **required**; `null` or `""` clears the label |



**curl**

```bash
curl -X PATCH 'https://proxykite.com/api/v1/proxies/7' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{"label":"Shop A"}'
```


**Python**

```python
import os
import requests

r = requests.patch(
    "https://proxykite.com/api/v1/proxies/7",
    headers={"Authorization": f"Bearer {os.environ['HYP_TOKEN']}", "Accept": "application/json"},
    json={"label": "Shop A"},
    timeout=30,
)
print(r.status_code, r.json())
```


**Node.js**

```js
const res = await fetch('https://proxykite.com/api/v1/proxies/7', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.HYP_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"label":"Shop A"}),
  signal: AbortSignal.timeout(30000),
});
console.log(res.status, await res.json());
```


**PHP**

```php
<?php
$ch = curl_init('https://proxykite.com/api/v1/proxies/7');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'PATCH',
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('HYP_TOKEN'),
        'Accept: application/json',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => '{"label":"Shop A"}',
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
var_dump($status, json_decode($body, true));
```



**Response `200`:** `{"data": <proxy>}` (the updated proxy).

## SIM card and recharge date


`PATCH /proxies/{id}`

**Ability:** `manage` · **Who:** account owner or team admin. The SIM details of a dongle: phone number, operator,
plan note and the next recharge date. We remind you (see [Alerts](https://proxykite.com/docs/api/alerts.md)) about 09:00 in your timezone
`remind_days_before` days before, on the day, and daily for a week while overdue.
`GET /proxies/{id}` returns the same `sim` object (not for reseller sub-users). These details belong to the **SIM card**:
when the device reports its SIM (ICCID), a SIM moved to another dongle takes its number, recharge date and SMS limits
along. Read-only extras: `id`, `identified` (the SIM's ICCID is known), `iccid_last4`, `sms_limits` `{day, week, month}`.
Send only the keys you change;
`null` or `""` clears one. `sim` may be sent alone or together with `label` / other fields.

| `sim` field          |                                                                       |
| -------------------- | --------------------------------------------------------------------- |
| `phone`              | international format, `+` and 7–15 digits (spaces/dashes are removed) |
| `operator`           | ≤ 60 chars. Read-only `operator_detected` = the exit IP's ISP, a hint |
| `plan`               | ≤ 200 chars, free text                                                |
| `next_recharge_date` | `YYYY-MM-DD`                                                          |
| `remind_days_before` | 0–60, default 3                                                       |



**curl**

```bash
curl -X PATCH 'https://proxykite.com/api/v1/proxies/7' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{"sim":{"phone":"+919800000000","operator":"Jio","next_recharge_date":"2026-11-01","remind_days_before":3}}'
```


**Python**

```python
import os
import requests

r = requests.patch(
    "https://proxykite.com/api/v1/proxies/7",
    headers={"Authorization": f"Bearer {os.environ['HYP_TOKEN']}", "Accept": "application/json"},
    json={"sim": {"phone": "+919800000000", "operator": "Jio", "next_recharge_date": "2026-11-01", "remind_days_before": 3}},
    timeout=30,
)
print(r.status_code, r.json())
```


**Node.js**

```js
const res = await fetch('https://proxykite.com/api/v1/proxies/7', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.HYP_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"sim":{"phone":"+919800000000","operator":"Jio","next_recharge_date":"2026-11-01","remind_days_before":3}}),
  signal: AbortSignal.timeout(30000),
});
console.log(res.status, await res.json());
```


**PHP**

```php
<?php
$ch = curl_init('https://proxykite.com/api/v1/proxies/7');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'PATCH',
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('HYP_TOKEN'),
        'Accept: application/json',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => '{"sim":{"phone":"+919800000000","operator":"Jio","next_recharge_date":"2026-11-01","remind_days_before":3}}',
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
var_dump($status, json_decode($body, true));
```



**Response `200`:** `{"data": <proxy with "sim">}`:

```json
"sim": {"phone": "+919800000000", "operator": "Jio", "operator_detected": "Reliance Jio Infocomm",
        "plan": null, "next_recharge_date": "2026-11-01", "remind_days_before": 3, "days_left": 22}
```

`days_left` is counted in the owner's timezone; negative = overdue. Errors name the fields `sim_phone`,
`sim_recharge_date`, … in `fields`.

## SMS and bandwidth limits


`GET /proxies/{id}/limits`
&#x20;·&#x20;
`PATCH /proxies/{id}`

**Ability:** `read` to see them (also the `limits` object in every proxy), `manage` to change them ·
**Who changes:** account owner or team admin (reseller sub-users and viewers see them read-only).

Each proxy can have an SMS send limit and a bandwidth limit per **day**, **week** (Monday–Sunday) and **month**,
each optional. Periods are calendar periods in the account's timezone (`timezone` in the answer).

- **SMS:** every SMS the dongle accepts (panel or [`POST /proxies/{id}/sms`](https://proxykite.com/docs/api/sms.md#send-an-sms)) counts. When a
  limit is used up, sending is refused with `429 sms_limit_reached` until that period resets.
- **Bandwidth:** traffic in + out of all proxy logins, checked about once a minute. At 80 % you get a
  `bandwidth_warning` alert, at 100 % the proxy stops (`enabled:false`, `disabled_reason:"bandwidth_limit"`) and you
  get `bandwidth_limit_reached`; it starts again by itself when the period resets. Raising/removing the limit or
  `reset_bandwidth` starts it at once.

`PATCH` body (send only what you change; `null` or `0` removes a limit):

| `limits` field                        |                                                                                   |
| ------------------------------------- | --------------------------------------------------------------------------------- |
| `sms.day`, `sms.week`, `sms.month`    | max SMS per period (0–1,000,000)                                                  |
| `bandwidth_mb.day`, `.week`, `.month` | max traffic per period in MB (1 GB = 1024 MB)                                     |
| `reset_bandwidth`                     | `true` = count bandwidth from zero again in the current day/week/month (unblocks) |



**curl**

```bash
curl -X PATCH 'https://proxykite.com/api/v1/proxies/7' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{"limits":{"sms":{"day":50,"month":1000},"bandwidth_mb":{"day":5120,"month":null}}}'
```


**Python**

```python
import os
import requests

r = requests.patch(
    "https://proxykite.com/api/v1/proxies/7",
    headers={"Authorization": f"Bearer {os.environ['HYP_TOKEN']}", "Accept": "application/json"},
    json={"limits": {"sms": {"day": 50, "month": 1000}, "bandwidth_mb": {"day": 5120, "month": None}}},
    timeout=30,
)
print(r.status_code, r.json())
```


**Node.js**

```js
const res = await fetch('https://proxykite.com/api/v1/proxies/7', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.HYP_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"limits":{"sms":{"day":50,"month":1000},"bandwidth_mb":{"day":5120,"month":null}}}),
  signal: AbortSignal.timeout(30000),
});
console.log(res.status, await res.json());
```


**PHP**

```php
<?php
$ch = curl_init('https://proxykite.com/api/v1/proxies/7');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'PATCH',
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('HYP_TOKEN'),
        'Accept: application/json',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => '{"limits":{"sms":{"day":50,"month":1000},"bandwidth_mb":{"day":5120,"month":null}}}',
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
var_dump($status, json_decode($body, true));
```



**Response `200`:** `{"data": <proxy>}`. The `limits` object (also from `GET /proxies/{id}/limits` as `{"data": …}`):

```json
{"timezone": "Asia/Kolkata",
 "sms": {"day": {"limit": 50, "used": 12, "resets_at": "2026-10-10T18:30:00+00:00"},
         "week": {"limit": null, "used": 40, "resets_at": "2026-10-11T18:30:00+00:00"},
         "month": {"limit": 1000, "used": 210, "resets_at": "2026-10-31T18:30:00+00:00"}},
 "bandwidth": {"day": {"limit_bytes": 5368709120, "used_bytes": 4400000000, "percent": 82, "resets_at": "2026-10-10T18:30:00+00:00"},
               "week": {"limit_bytes": null, "used_bytes": 9100000000, "percent": null, "resets_at": "2026-10-11T18:30:00+00:00"},
               "month": {"limit_bytes": null, "used_bytes": 30500000000, "percent": null, "resets_at": "2026-10-31T18:30:00+00:00"}},
 "blocked": false, "blocked_reason": null, "blocked_period": null, "blocked_until": null}
```

`blocked: true` (with `blocked_period` and `blocked_until`) while a bandwidth limit has stopped the proxy.
Usage is counted in hourly steps: with a half-hour timezone (e.g. India) the hour that straddles midnight counts to the
previous period.



**curl**

```bash
curl 'https://proxykite.com/api/v1/proxies/7/limits' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json'
```


**Python**

```python
import os
import requests

r = requests.get(
    "https://proxykite.com/api/v1/proxies/7/limits",
    headers={"Authorization": f"Bearer {os.environ['HYP_TOKEN']}", "Accept": "application/json"},
    timeout=30,
)
print(r.status_code, r.json())
```


**Node.js**

```js
const res = await fetch('https://proxykite.com/api/v1/proxies/7/limits', {
  headers: {
    Authorization: `Bearer ${process.env.HYP_TOKEN}`,
    Accept: 'application/json',
  },
  signal: AbortSignal.timeout(30000),
});
console.log(res.status, await res.json());
```


**PHP**

```php
<?php
$ch = curl_init('https://proxykite.com/api/v1/proxies/7/limits');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('HYP_TOKEN'),
        'Accept: application/json',
    ],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
var_dump($status, json_decode($body, true));
```



## Device type and capabilities

Every proxy object carries a `device` object. Your own logins (not reseller sub-users) also get `device.identity`.

```json
"device": {
  "uid": "01k7c2y9s8m3v5q1x0h4f6t2wb",
  "type": "hilink",
  "type_label": "Huawei HiLink dongle",
  "reported": true,
  "model": "E3372h-320",
  "firmware": "22.333.01.00.00",
  "driver_version": "1.0.0",
  "state": "ok",
  "control_via": "panel",
  "identity_state": "confirmed",
  "capabilities": {
    "egress": {"s": "yes", "kind": "netdev"},
    "rotate.netmode": {"s": "yes"},
    "sms.send": {"s": "yes"},
    "ussd": {"s": "setup", "hint": "Install ModemManager: sudo hostyourproxy setup modem"},
    "web_ui": {"s": "no"}
  },
  "rotate_methods": ["netmode", "reconnect", "reboot"],
  "identity": {"imei_last4": "0123", "moved_from_node_id": null, "moved_at": null,
               "conflict_with_proxy_id": null, "restorable_from_proxy_id": null}
}
```

| Field            | Meaning                                                                                                                                                                               |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `uid`            | permanent id of the device; stays the same when the device moves to another USB port or another of your nodes                                                                         |
| `type`           | `hilink` (Huawei HiLink dongle), `zte` (ZTE dongle such as the MF833T, agent 1.10.0+), `mm` (USB modem), `android` (phone), `generic` (plain network interface, no device control)    |
| `reported`       | `false` = the node runs an older agent and the type is assumed                                                                                                                        |
| `capabilities`   | each capability → `s`: `yes` (works now), `setup` (possible; `hint` says what to do) or `no`                                                                                          |
| `rotate_methods` | rotation methods that work now, in the order the panel tries them                                                                                                                     |
| `identity_state` | `confirmed` (hardware ID known, settings follow the device), `weak` (no ID, settings follow the USB port), `identifying`, `conflict` (two proxies report one ID; choose in the panel) |
| `identity`       | owner/team only: last 4 digits of the IMEI, where it moved from, conflict and restore pointers                                                                                        |

Capability names: `egress`, `rotate.netmode`, `rotate.reconnect`, `rotate.airplane`, `rotate.reboot`,
`rotate.link_bounce`, `status.signal`, `sms.read`, `sms.send`, `sms.delete`, `ussd`, `device.reboot`, `web_ui`,
`lan.settings`, `netmode.set`, `identity.imei`, `identity.iccid`, `identity.imsi`, `identity.device_key`,
`data_connect` (the box brings the device's data connection up itself, with your [APN](https://proxykite.com/docs/api/interfaces.md#set-the-apn)).
Show only what is `yes`. Asking for something the device cannot do answers **`409 unsupported`** with the
`capability` that is missing (rotation, rotation links, sending SMS; the SMS list and interface endpoints only when the
device has no such thing at all; the interface endpoints when `egress.kind` is `app`).

## Delete and restore

Deleting a proxy frees its public port at once and stops it. Its logins, whitelist, label and rotation link are kept for
**7 days**: restore them here or in the panel (Nodes → Interfaces → Recently deleted). When the same device is plugged
in again within those days, it comes back as a new proxy and the panel offers to restore the old settings.
Only the account owner or a team admin can delete or restore; reseller sub-users cannot (nor list deleted proxies).
A live proxy whose [interface](https://proxykite.com/docs/api/interfaces.md#the-interface-object) shows `warnings.possible_duplicate_of` is a likely
candidate for deleting; nothing is deleted automatically.

|                              |                                                                                                                                                                                                               |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `DELETE /proxies/{id}`       | **manage** → `{"ok": true, "data": {"id", "label", "node_id", "device_uid", "device_type", "port", "deleted_at", "restorable_until"}}`                                                                        |
| `GET /proxies/deleted`       | **read** → `{"data": [ …same objects… ]}` (`port` = the port it had)                                                                                                                                          |
| `POST /proxies/{id}/restore` | **manage** → `{"ok": true, "data": <proxy>}`; the old port comes back when it is still free. If the device is already back as a new proxy, that new proxy is replaced by the restored one. `404` after 7 days |

```bash
curl -X DELETE 'https://proxykite.com/api/v1/proxies/7' -H "Authorization: Bearer $HYP_TOKEN" -H 'Accept: application/json'
curl -X POST 'https://proxykite.com/api/v1/proxies/7/restore' -H "Authorization: Bearer $HYP_TOKEN" -H 'Accept: application/json'
```

## Related

- Rotate, auto-rotate and rotation history: [Rotation](https://proxykite.com/docs/api/rotation.md)
- New passwords: [Credentials](https://proxykite.com/docs/api/credentials.md)
- Whitelist: [Whitelist](https://proxykite.com/docs/api/whitelist.md) · Traffic: [Usage](https://proxykite.com/docs/api/usage.md) · Text messages: [SMS](https://proxykite.com/docs/api/sms.md)
- All connection strings at once: [Export](https://proxykite.com/docs/api/export.md)
