# Health

**Summary:** Endpoints for Health

- Role: [Developers](https://www.subrite.no/developers)
- Source: https://www.subrite.no/developers/health
- Updated: 2026-10-13
- Markdown index: https://www.subrite.no/developers/llms.txt

<a id="get-health"></a>
## Check health of API server

`GET /health`

### Responses

#### 200

Content type: `application/json` · `object`

The Health Check is successful

| Name | Type | Description |
| --- | --- | --- |
| `status` | `string` |   |
| `info` | `object with object values` | Can be null |
| `error` | `object with object values` | Can be null |
| `details` | `object with object values` |   |

#### 503

Content type: `application/json` · `object`

The Health Check is not successful

| Name | Type | Description |
| --- | --- | --- |
| `status` | `string` |   |
| `info` | `object with object values` | Can be null |
| `error` | `object with object values` | Can be null |
| `details` | `object with object values` |   |

**Example response**

`application/json`

```json
{
  "status": "error",
  "info": {
    "database": {
      "status": "up"
    }
  },
  "error": {
    "redis": {
      "status": "down",
      "message": "Could not connect"
    }
  },
  "details": {
    "database": {
      "status": "up"
    },
    "redis": {
      "status": "down",
      "message": "Could not connect"
    }
  }
}
```

### Example request

```bash
curl https://api.subrite.no/health
```

### Example response

200 · `application/json`

```json
{
  "status": "ok",
  "info": {
    "database": {
      "status": "up"
    }
  },
  "error": {},
  "details": {
    "database": {
      "status": "up"
    }
  }
}
```

<a id="get-health-worker"></a>
## Check that the background worker fleet is polling Temporal task queues

`GET /health/worker`

Returns 503 if no worker is connected to any canary task queue (workflow or activity pollers = 0). Separate from /health so the api-server health probe is not affected by worker outages.

### Responses

#### 200

Content type: `application/json` · `object`

The Health Check is successful

| Name | Type | Description |
| --- | --- | --- |
| `status` | `string` |   |
| `info` | `object with object values` | Can be null |
| `error` | `object with object values` | Can be null |
| `details` | `object with object values` |   |

#### 503

Content type: `application/json` · `object`

The Health Check is not successful

| Name | Type | Description |
| --- | --- | --- |
| `status` | `string` |   |
| `info` | `object with object values` | Can be null |
| `error` | `object with object values` | Can be null |
| `details` | `object with object values` |   |

**Example response**

`application/json`

```json
{
  "status": "error",
  "info": {
    "database": {
      "status": "up"
    }
  },
  "error": {
    "redis": {
      "status": "down",
      "message": "Could not connect"
    }
  },
  "details": {
    "database": {
      "status": "up"
    },
    "redis": {
      "status": "down",
      "message": "Could not connect"
    }
  }
}
```

### Example request

```bash
curl https://api.subrite.no/health/worker
```

### Example response

200 · `application/json`

```json
{
  "status": "ok",
  "info": {
    "database": {
      "status": "up"
    }
  },
  "error": {},
  "details": {
    "database": {
      "status": "up"
    }
  }
}
```

<a id="get-api-health-redis-memory"></a>
## Check redis memory health

`GET /api/health/redis-memory`

**Authentication:** Bearer token (JWT)

### Responses

#### 200

#### 401

unauthorized

### Example request

```bash
curl https://api.subrite.no/api/health/redis-memory \
  --header 'Authorization: Bearer <token>'
```
