Channels API
Retrieve channel connection status and activity metrics from the OpenClaw gateway.List channels
connected when sessions with matching keys exist.
Response
Channel object
| Field | Type | Description |
|---|---|---|
name | string | Display name of the channel |
provider | string | Channel identifier: webchat, telegram, discord, or whatsapp |
status | string | Connection status (see table below) |
lastActive | string | null | ISO 8601 timestamp of the most recent activity on this channel, or null if no activity |
messages | number | Total message count across all sessions for this channel |
Channel statuses
| Status | Condition |
|---|---|
connected | Channel has active sessions or (for webchat) the gateway is healthy |
not-configured | No sessions found for this channel |
unreachable | Gateway health check failed (webchat only) |
Response fields
| Field | Type | Description |
|---|---|---|
channels | array | List of channel objects |
gatewayHealth | string | Overall gateway health: healthy or unreachable |
source | string | Always gateway |
Errors
| Code | Description |
|---|---|
| 401 | Unauthorized — no valid session |