> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Health

> Database and Temporal namespace probes both passed.

### Response

`object`

<ResponseField name="status" type="string" required />

<ResponseField name="database" type="object" required>
  <Expandable title="database">
    <ResponseField name="ok" type="boolean" required />

    <ResponseField name="latency_ms" type="integer" />

    <ResponseField name="error" type="string">
      Present when the check failed
    </ResponseField>

    <ResponseField name="note" type="string">
      'control-plane disabled' when no database is configured
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="temporal" type="object" required>
  <Expandable title="temporal">
    <ResponseField name="ok" type="boolean" required />

    <ResponseField name="latency_ms" type="integer" required />

    <ResponseField name="namespace" type="string" required />

    <ResponseField name="error" type="string">
      Present when the probe failed or timed out
    </ResponseField>
  </Expandable>
</ResponseField>

### Status codes

| Code  | Meaning                                             |
| ----- | --------------------------------------------------- |
| `200` | Database and Temporal namespace probes both passed. |
| `400` | Validation error                                    |
| `401` | Unauthorized                                        |
| `404` | Not found                                           |
| `429` | Rate limited                                        |
| `500` | Internal error                                      |
| `503` | At least one probe failed; `status` is `degraded`.  |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.workstream.stateset.com/health'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "status": "ok",
    "database": {
      "ok": true,
      "latency_ms": 250,
      "error": "string",
      "note": "Two-person tent, green — replacement for damaged pole set."
    },
    "temporal": {
      "ok": true,
      "latency_ms": 250,
      "namespace": "string",
      "error": "string"
    }
  }
  ```
</ResponseExample>
