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

# Responses and HTTP

## Discord replies

Invoke commands through Discord. Celiact can answer with a private card, publish an approved result, update an older message, or open a confirmation dialog. The individual command entries use example replies so you can recognize a normal result. Exact wording can vary with the action, locale, and server settings.

> **CELIACT / CASES**
> \>
> Updated case #42.

### Components V2 message example

This abridged JSON shows a case notice using Celiact's actual component types. Discord message data can include IDs and extra fields. The attachment reference resolves to the banner uploaded with the response.

```json theme={null}
{
  "flags": 32768,
  "components": [
    {
      "type": 17,
      "components": [
        { "type": 10, "content": "-# **CELIACT / CASES**" },
        {
          "type": 12,
          "items": [
            {
              "media": { "url": "attachment://celiact-cases.png" },
              "description": "Celiact cases"
            }
          ]
        },
        { "type": 14, "divider": true, "spacing": 1 },
        { "type": 10, "content": "Updated case #42." }
      ]
    }
  ]
}
```

The flag above enables Components V2. Discord also tracks whether an interaction response is ephemeral. Celiact can defer the original interaction while it checks permissions and then edit the deferred message with the card.

## Local HTTP health endpoints

The optional health listener accepts HTTP probes. Enable it with `CELIACT_HEALTH_PORT=8080`. Celiact binds to `127.0.0.1` by default. Slash commands are handled through Discord.

### Liveness

```http theme={null}
GET /livez HTTP/1.1
Host: 127.0.0.1:8080
```

```http theme={null}
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{"status": "live"}
```

### Readiness

```http theme={null}
GET /readyz HTTP/1.1
Host: 127.0.0.1:8080
```

The probe checks Discord gateway readiness, shard connections, and a MongoDB ping. A ready bot returns:

```http theme={null}
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{"status": "ready"}
```

During startup, a gateway interruption, or a database outage, it returns:

```http theme={null}
HTTP/1.1 503 Service Unavailable
Content-Type: application/json; charset=utf-8

{"status": "unavailable"}
```

```console theme={null}
curl -i http://127.0.0.1:8080/livez
curl -i http://127.0.0.1:8080/readyz
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.