Skip to content

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. Since 2026-11 /status

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.

Terminal window
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).

MethodAnswer
GETThe status body below.
HEADThe same status code and headers, no body.
OPTIONS204, the CORS preflight.
any other405 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:

Terminal window
curl -sS -o /dev/null -I -w '%{http_code}\n' "$WETEL_API_URL/status/v1"
{
"schemaVersion": 1,
"status": "operational",
"checkedAt": "2026-11-19T08:00:05Z",
"components": {
"api": "operational",
"sessions": "operational",
"workflows": "operational",
"llm": "operational",
"voice": "operational"
},
"maintenance": null
}
FieldTypeNotes
schemaVersionnumber1. Changes are additive within a version; a breaking change would be served at /status/v2. Ignore fields you do not know.
statusstringOverall: operational, degraded or unavailable.
checkedAtstringWhen the facts were collected, ISO 8601 UTC to the second. It can be up to about a minute old (see caching).
componentsobjectOne value per capability: api, sessions, workflows, llm, voice. Each is operational, degraded, unavailable or unknown.
maintenancenullAlways null in this version. Reserved.

The body carries enum values only: no reasons, versions, counts, host names, queue names or tenant ids.

ComponentIt covers
apiThe API process can reach its database and its cache.
sessionsStarting a session (sdkStart): the API plus the session-token service it needs.
workflowsThe workflow engine is running turns: workers are present and the queue is moving.
llmThe model provider path. degraded means a fallback model is serving.
voiceThe speech and avatar service behind voice (recognition and synthesis).
  • unavailable when api, sessions or workflows is unavailable, or when llm is unavailable (every model path is down).
  • degraded when any of api, sessions or workflows is degraded or unknown, or when llm or voice is degraded or unavailable. A problem with voice alone therefore reads as degraded, never unavailable.
  • operational otherwise. An unknown llm or voice is shown as unknown and 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.

CodeMeaning
200operational or degraded. degraded is still 200, so a client that only checks res.ok hides a feature only when it really fails.
503unavailable. Carries Retry-After: 30. The body is the same JSON.
429You are over the per-address limit (below). Carries Retry-After. Body: {"statusCode":429,"error":"Too Many Requests",...}.
405A method other than GET, HEAD or OPTIONS.
404The route is not switched on for this environment, or a sub-path.
  • 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 503 answers send Cache-Control: public, max-age=5, stale-while-revalidate=10, so a shared cache may keep one for a few seconds. 429, 405 and OPTIONS answers are no-store.
  • If a refresh keeps failing, the last good snapshot is served for up to 60 seconds. After that every component reads unknown (overall degraded) until a refresh succeeds. Use checkedAt to 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 degraded first and unavailable only on the second consecutive snapshot, so one blip or a restart does not read as an outage.
  • 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 429 with Retry-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, exposes Retry-After to scripts and allows GET, HEAD and OPTIONS. A browser can read it directly, but a server-side poller is the recommended shape.
  • 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 unavailable answers (or a 503), and show it again after one operational or degraded answer.
  • On a network error, a timeout or a gateway 5xx from the edge (not a 503 with the JSON body), back off 30, 60, then 120 seconds with jitter.
  • On 429, wait for Retry-After before 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.