Platform Status API
Availability: Off by default On in the test environment. The code is in production with the switch off, so it answers 404 there until it is enabled.
GET /status/v1 answers one question for a partner product: can Wetel serve my feature right now? Poll it from your server and hide or disable a Wetel-dependent control (for example a “Test workflow” button) while it reports unavailable.
It is a plain REST route on the API host, next to the GraphQL endpoint. It needs no API key, no JWT and no x-huat-platform header (the header is ignored if you send it), and it returns no tenant data.
This route is a separate switch on each environment. Where the switch is off, it answers 404, exactly like a path that does not exist; see the status row for where it is on. The existing /health and /health/ready routes are unchanged: they exist for load balancers and deploy checks, send no CORS headers, and are not meant for partner feature gating.
Request
Section titled “Request”curl -sS -i "$WETEL_API_URL/status/v1"$WETEL_API_URL is the API base address you were given (the host of the GraphQL endpoint, without /graphql).
| Method | Answer |
|---|---|
GET | The status body below. |
HEAD | The same status code and headers, no body. |
OPTIONS | 204, the CORS preflight. |
| any other | 405 with Allow: GET, HEAD, OPTIONS. |
A sub-path such as /status/v1/details is not served and answers 404.
For a cheap liveness-style check that ignores the body, use HEAD and read only the status code:
curl -sS -o /dev/null -I -w '%{http_code}\n' "$WETEL_API_URL/status/v1"Response
Section titled “Response”{ "schemaVersion": 1, "status": "operational", "checkedAt": "2026-11-19T08:00:05Z", "components": { "api": "operational", "sessions": "operational", "workflows": "operational", "llm": "operational", "voice": "operational" }, "maintenance": null}| Field | Type | Notes |
|---|---|---|
schemaVersion | number | 1. Changes are additive within a version; a breaking change would be served at /status/v2. Ignore fields you do not know. |
status | string | Overall: operational, degraded or unavailable. |
checkedAt | string | When the facts were collected, ISO 8601 UTC to the second. It can be up to about a minute old (see caching). |
components | object | One value per capability: api, sessions, workflows, llm, voice. Each is operational, degraded, unavailable or unknown. |
maintenance | null | Always null in this version. Reserved. |
The body carries enum values only: no reasons, versions, counts, host names, queue names or tenant ids.
What each component means
Section titled “What each component means”| Component | It covers |
|---|---|
api | The API process can reach its database and its cache. |
sessions | Starting a session (sdkStart): the API plus the session-token service it needs. |
workflows | The workflow engine is running turns: workers are present and the queue is moving. |
llm | The model provider path. degraded means a fallback model is serving. |
voice | The speech and avatar service behind voice (recognition and synthesis). |
How the overall status is decided
Section titled “How the overall status is decided”unavailablewhenapi,sessionsorworkflowsisunavailable, or whenllmisunavailable(every model path is down).degradedwhen any ofapi,sessionsorworkflowsisdegradedorunknown, or whenllmorvoiceisdegradedorunavailable. A problem withvoicealone therefore reads asdegraded, neverunavailable.operationalotherwise. Anunknownllmorvoiceis shown asunknownand does not change the overall status: a status check that cannot look something up does not claim an outage.
To decide whether one feature works, read the components it needs. “Test workflow” needs sessions, workflows and llm not unavailable; a voice call also needs voice.
HTTP status codes
Section titled “HTTP status codes”| Code | Meaning |
|---|---|
200 | operational or degraded. degraded is still 200, so a client that only checks res.ok hides a feature only when it really fails. |
503 | unavailable. Carries Retry-After: 30. The body is the same JSON. |
429 | You are over the per-address limit (below). Carries Retry-After. Body: {"statusCode":429,"error":"Too Many Requests",...}. |
405 | A method other than GET, HEAD or OPTIONS. |
404 | The route is not switched on for this environment, or a sub-path. |
Caching and freshness
Section titled “Caching and freshness”- The answer comes from a snapshot the server refreshes at most every 10 seconds. A request never runs the checks itself, so polling at any rate does not add load to the checks.
- Successful and
503answers sendCache-Control: public, max-age=5, stale-while-revalidate=10, so a shared cache may keep one for a few seconds.429,405andOPTIONSanswers areno-store. - If a refresh keeps failing, the last good snapshot is served for up to 60 seconds. After that every component reads
unknown(overalldegraded) until a refresh succeeds. UsecheckedAtto see how old the facts are. - Each API server keeps its own snapshot. Behind a load balancer, two requests can briefly disagree for a refresh or two; the rule below absorbs that.
- Some signals are deliberately slow to flip. A missing workflow worker or an unreachable speech or token service reads
degradedfirst andunavailableonly on the second consecutive snapshot, so one blip or a restart does not read as an outage.
Limits and CORS
Section titled “Limits and CORS”- Rate limit: 60 requests a minute per client address by default, shared across API servers. Going over blocks that address for the rest of the window and answers
429withRetry-After. Poll once from your server and fan the result out to your users; do not have every browser tab poll. - CORS: this is the only Wetel REST route that sends
Access-Control-Allow-Origin: *. It sends no credentials, exposesRetry-Afterto scripts and allowsGET,HEADandOPTIONS. A browser can read it directly, but a server-side poller is the recommended shape.
Polling guidance
Section titled “Polling guidance”- Poll every 30 seconds from your backend (not faster than every 15), and fan the result out to your UI. A browser may poll the public route directly at about 60 seconds.
- Hide a feature after two consecutive
unavailableanswers (or a503), and show it again after oneoperationalordegradedanswer. - On a network error, a timeout or a gateway
5xxfrom the edge (not a503with the JSON body), back off 30, 60, then 120 seconds with jitter. - On
429, wait forRetry-Afterbefore the next request. - Set a request timeout of about 5 seconds.
- Treat it as an early warning, not a guarantee. It is best effort with no uptime commitment: the snapshot can lag by about half a minute, and a feature can still fail while the status says
operational, so always handle the real call’s error as well.
A complete poller in Go is in the cookbook.
- Rate limiting for the limits on the GraphQL API.
- Error handling and status codes.
- Telephony API and Start a call from your app: the
voicecomponent is the one that matters for calls.