# Status API: the status page, by API

`GET /v1/public/status`

`GET /v1/public/status` tells how WAIA Connect is doing right now: an overall indicator (`status.indicator`: `none`, `minor`, `major`, `critical` or `maintenance`), every component with its status, the open incidents and the scheduled maintenances. **It is public: no API key, no cookies, open CORS.** It is global to the platform: it never carries data of any account.

**Components.** `api` (requests to `/v1`), `meta` (WhatsApp Cloud API: an external dependency, `external: true`), `panel`, `site` and `signup` (connecting numbers). Measured every 5 minutes. Statuses: `operational`, `degraded`, `partial_outage`, `major_outage`, `maintenance`. With too little traffic it reports `operational` with `note: low_traffic` (or `no_data` if it was not measured in the last 20 minutes), never a false alarm. An incident we publish raises its components to at least its impact; a maintenance in progress shows them as `maintenance`. **Webhooks are not here:** their delivery depends on your endpoint, and this page does not know who is reading it. Your own webhooks' status is in `GET /v1/status/me`, with your key.

**The other routes.** `GET /v1/public/status/components`; `GET /v1/public/status/incidents` (`limit` 1 to 50, `status` `active`, `resolved` or `all`); `GET /v1/public/status/incidents/{id}` (`inc_…`, with its updates); `GET /v1/public/status/uptime` (`days` 1 to 90, per component and per day, Argentina time); `GET /v1/public/status/summary.json`, in Statuspage format, for tools that already read one; and `GET /v1/public/status/feed.rss` and `GET /v1/public/status/feed.atom` (the last 50 incidents).

**Language and cache.** `?lang=es|en|pt|it` (default `en`). Cached 30 s, with an `ETag`: with `If-None-Match` it answers `304`. 60 requests per minute per IP.

## Examples

### cURL

```bash
# the platform status: public, no API key (cached 30 s)
curl "https://api.waiaconnect.com/v1/public/status?lang=en"
# → { "status": { "indicator": "none", "description": "All systems operational" },
#     "components": [ { "id": "api", "status": "operational", "uptime90d": 99.98, … } ],
#     "activeIncidents": [], "scheduledMaintenances": [], "updatedAt": "…" }
# Statuspage-compatible (for tools that read a summary.json URL)
curl "https://api.waiaconnect.com/v1/public/status/summary.json"
```

### Node.js

```javascript
const s = await (await fetch("https://api.waiaconnect.com/v1/public/status?lang=en")).json();
if (s.status.indicator !== "none") console.log(s.status.description);
for (const c of s.components) if (c.status !== "operational") console.log(c.id, c.status);
```

### PHP

```php
<?php
$s = json_decode(file_get_contents("https://api.waiaconnect.com/v1/public/status?lang=en"), true);
foreach ($s["components"] as $c) {
  if ($c["status"] !== "operational") echo $c["id"], " ", $c["status"], "\n";
}
```

### Python

```python
import requests
s = requests.get("https://api.waiaconnect.com/v1/public/status", params={"lang": "en"}).json()
print(s["status"]["indicator"], s["status"]["description"])
for c in s["components"]:
    if c["status"] != "operational":
        print(c["id"], c["status"])
```

## Notes

- A wrong parameter is `400 STATUS_QUERY_INVALID`; an incident that does not exist, `404 STATUS_INCIDENT_NOT_FOUND`.
- If the status page is switched off, it answers `503` with `{"status":"disabled"}`.
- The `meta` status is what we measure in Meta's answers to our sends, not a statement from Meta.
