> 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.

# SMS

Text messages received by the dongle's SIM card (for example verification codes), and sending SMS from it.

## Received messages


`GET /proxies/{id}/sms`

**Ability:** `read` · Messages saved by the panel (it copies the dongle's inbox every 2 minutes), paged.

| Query      |                                                            |
| ---------- | ---------------------------------------------------------- |
| `page`     | page number, from 1                                        |
| `per_page` | 1–200, default 50 (`limit` means the same and still works) |
| `sort`     | `newest` (default) or `oldest`, by received date           |



**curl**

```bash
curl 'https://proxykite.com/api/v1/proxies/7/sms?limit=10' \
  -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/sms?limit=10",
    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/sms?limit=10', {
  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/sms?limit=10');
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`**

```json
{"data": [
  {"id": 55, "phone": "+919800000000", "content": "Your code is 123456", "received_at": "2026-10-09T18:00:00+00:00", "read": false}
 ],
 "meta": {"page": 1, "per_page": 50, "total": 1, "last_page": 1, "sort": "newest"}}
```

## Delete saved messages


`DELETE /proxies/{id}/sms`

**Ability:** `manage` · **Who:** account owner, team admin, or a sub-user the SMS inbox is shared with (not viewers).
Removes messages from the panel only; the dongle is not touched.

| Body field |                                                    |
| ---------- | -------------------------------------------------- |
| `ids`      | list of message ids (up to 500), or                |
| `all`      | `true` to delete every saved message of this proxy |

```bash
curl -X DELETE 'https://proxykite.com/api/v1/proxies/7/sms' \
  -H "Authorization: Bearer $HYP_TOKEN" -H 'Accept: application/json' -H 'Content-Type: application/json' \
  -d '{"ids":[55,56]}'
```

**Response `200`**: `{"ok": true, "data": {"deleted": 2}}`

## Sync now / free the dongle's storage


`POST /proxies/{id}/sms/sync`

**Ability:** `manage` · 10 requests/min. Copies the dongle's inbox to the panel right now. A HiLink stick stores only
50–100 SMS; when it is full, new verification codes are lost. With `delete_from_dongle: true` (owner or team admin)
every message is saved here first and then deleted from the dongle. Use it as a one-off cleanup, or switch on
"delete after sync" in the proxy's settings to do it automatically. Do not delete from the dongle if another
application also reads its SMS.

| Body field           |                                                                                           |
| -------------------- | ----------------------------------------------------------------------------------------- |
| `delete_from_dongle` | `false` (default) keeps the dongle's copy; `true` empties the dongle's inbox after saving |

```bash
curl -X POST 'https://proxykite.com/api/v1/proxies/7/sms/sync' \
  -H "Authorization: Bearer $HYP_TOKEN" -H 'Accept: application/json' -H 'Content-Type: application/json' \
  -d '{"delete_from_dongle":true}'
```

**Response `200`**: `{"ok": true, "data": {"fetched": 37, "new": 4, "deleted_from_dongle": 37}}`

Errors: `409 dongle_busy` (rotation or another SMS running, retry shortly), `409 unsupported` (device cannot
read / delete SMS), `502 dongle_unreachable`.

## Send an SMS


`POST /proxies/{id}/sms`

**Ability:** `manage` · **Who:** account owner, team admin, or the reseller sub-user the proxy is assigned to ·
20 requests/min. Sends one SMS from the dongle's SIM (operator charges apply). "OK" means the dongle accepted it,
not that it was delivered. Counts toward the proxy's [SMS limits](https://proxykite.com/docs/api/proxies.md#sms-and-bandwidth-limits).

| Body field |                                                                                       |
| ---------- | ------------------------------------------------------------------------------------- |
| `to`       | phone number, digits with optional leading `+` (spaces, dashes, brackets are removed) |
| `text`     | 1–670 characters                                                                      |



**curl**

```bash
curl -X POST 'https://proxykite.com/api/v1/proxies/7/sms' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{"to":"+919800000000","text":"Hello"}'
```


**Python**

```python
import os
import requests

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


**Node.js**

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


**PHP**

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



**Response `200`**

```json
{"ok": true, "data": {"id": 31, "to": "+919800000000", "chars": 5, "sent_at": "2026-10-10T09:00:00+00:00"},
 "limits": {"day": {"limit": 50, "used": 13, "resets_at": "2026-10-10T18:30:00+00:00"}, "week": {…}, "month": {…}}}
```

**`429`: an SMS limit is used up** (`limit` = the period that frees up last; `Retry-After` header in seconds):

```json
{"error": "sms_limit_reached", "limit": "day", "max": 50, "used": 50,
 "resets_at": "2026-10-10T18:30:00+00:00", "message": "SMS limit reached: 50 of 50 this day. …"}
```

Other errors: `409 dongle_busy` (a rotation or another SMS is running, retry shortly), `422 validation_failed`
(bad number or text), `502 sms_failed` (the dongle refused or is unreachable).

## Send from any number


`POST /sms`

**Ability:** `manage` · 60 requests/min. One call for all your numbers: ProxyKite picks the proxy itself, so you do
not have to track limits or choose an id.

How a number is picked:

- only proxies your login may send from, whose device can send SMS, and that are plugged in and answering;
- a number that has reached its day, week or month [SMS limit](https://proxykite.com/docs/api/proxies.md#sms-and-bandwidth-limits) is left out until the limit resets;
- among the rest, the number that sent the fewest SMS today goes first, so sends spread evenly;
- if that dongle is busy or refuses the SMS, the next number is tried (up to 3 attempts).

Set a per-day limit on each proxy (panel: proxy page → **SMS** tab → "SMS limit per day", or
`PATCH /proxies/{id}` with `{"limits":{"sms":{"day":50}}}`) and the pool moves on to the next number by itself when one is full.

| Body field |                                                                                     |
| ---------- | ----------------------------------------------------------------------------------- |
| `to`       | phone number, digits with optional leading `+`                                      |
| `text`     | 1–670 characters                                                                    |
| `proxies`  | optional list of proxy ids to choose from. Left out = every proxy you may send from |



**curl**

```bash
curl -X POST 'https://proxykite.com/api/v1/sms' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{"to":"+919800000000","text":"Hello"}'
```


**Python**

```python
import os
import requests

r = requests.post(
    "https://proxykite.com/api/v1/sms",
    headers={"Authorization": f"Bearer {os.environ['HYP_TOKEN']}", "Accept": "application/json"},
    json={"to": "+919800000000", "text": "Hello"},
    timeout=30,
)
print(r.status_code, r.json())
```


**Node.js**

```js
const res = await fetch('https://proxykite.com/api/v1/sms', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.HYP_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"to":"+919800000000","text":"Hello"}),
  signal: AbortSignal.timeout(30000),
});
console.log(res.status, await res.json());
```


**PHP**

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



**Response `200`**: `proxy_id` / `from` tell you which number sent it; `skipped` lists the numbers that were left out and why
(`limit_reached`, `offline`, `unsupported`, `busy`, `send_failed`).

```json
{"ok": true,
 "data": {"id": 32, "to": "+919800000000", "chars": 5, "sent_at": "2026-11-23T09:00:00+00:00",
          "proxy_id": 9, "label": "Jio 2", "from": "+919811111111"},
 "limits": {"day": {"limit": 50, "used": 14, "resets_at": "2026-11-23T18:30:00+00:00"}, "week": {…}, "month": {…}},
 "skipped": [{"proxy_id": 7, "reason": "limit_reached"}]}
```

**`429`: every number is at its limit** (`resets_at` = when the first one is free again; `Retry-After` header in seconds):

```json
{"error": "sms_limit_reached", "message": "Every number in the pool has reached its SMS limit.",
 "skipped": [{"proxy_id": 7, "reason": "limit_reached"}, {"proxy_id": 9, "reason": "limit_reached"}],
 "resets_at": "2026-11-23T18:30:00+00:00"}
```

Other errors: `409 no_sms_proxy` (no proxy that can send right now: none shared with you, all offline, or none of the
listed ids are yours), `409 dongle_busy` (retry shortly), `422 validation_failed`, `502 sms_failed` (the dongles tried
did not accept the SMS).

## List the sending numbers


`GET /sms/senders`

**Ability:** `read` · Every proxy you may send SMS from, in the order `POST /sms` would use them, with today's usage.

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

**Response `200`**

```json
{"data": [
  {"proxy_id": 9, "label": "Jio 2", "from": "+919811111111", "available": true, "skip_reason": null,
   "limits": {"day": {"limit": 50, "used": 14, "resets_at": "2026-11-23T18:30:00+00:00"}, "week": {…}, "month": {…}}},
  {"proxy_id": 7, "label": "Airtel 1", "from": null, "available": false, "skip_reason": "limit_reached", "limits": {…}}
]}
```
