GET/status

Service status

Whether the API is serving, what it depends on to serve, and which contract version it is currently on. Reaching it at all proves the process is up and routing; status and dependencies say whether it is up in a useful sense.

Every check is shallow. It proves that a dependency answers, not that it answers correctly, so read a down as a reason to stop retrying and never an up as a guarantee that a write elsewhere will land.

The answer is coarse: capability names and states, no vendor and no free text, and no distinction between a dependency that failed its probe and one Commune cannot reach at all.

The one operation that takes no credential, and the one that ignores Commune-Version. With no key to count against, the per-key budgets do not apply and no RateLimit-* headers are returned. Whatever sits in front of this service can still refuse a request, which is why 429 stays declared.

3 status codes
200The service is serving traffic. Read status before trusting it to serve every operation: a 200 here reports a degradation rather than hiding it.
dependenciesarray<Dependency>required

Every dependency the API checks, whatever its state. The set is fixed by this contract rather than by the deployment, so the list is the same length on every response from every environment. Order is not meaningful; match on name rather than on position, and do not assume a length: entries may be added or removed as what this API depends on changes.

objectstringrequired

Always service_status.

statusstringrequired

The whole service in one word, driven by the required dependencies alone. ok when every required dependency is up, degraded when one answered slowly or partially, and down when one is unreachable. A degraded service still answers 200 here, because the point of this operation is to say so.

An optional dependency being down would not move this: the operations that need one refuse individually. There is no optional dependency today. Read dependencies for the individual states.

Allowed:okdegradeddown
versionstringrequired

The newest contract version this service serves. An opaque identifier rather than a date, even though every version published so far is one: compare it for equality with the version a request resolved to, and do not parse it.

A request that sends no Commune-Version header is not necessarily on it: an existing key stays pinned to the version that was current when it was issued. Compare the two to find out whether an integration has a newer contract available to move to.

429Too many requests. Back off and retry after the interval named by the Retry-After response header. One of the budgets in RateLimit-Policy ran out, and the RateLimit-* headers on this response say which and when it resets.
errorobjectrequired
500Something failed inside Commune. The request may be retried.
errorobjectrequired

Error handling

A 429 is returned: Too many requests. Back off and retry after the interval named by the Retry-After response header.

One of the budgets in RateLimit-Policy ran out, and the RateLimit-* headers on this response say which and when it resets. A 500 is returned: Something failed inside Commune. The request may be retried.