# Terminal

> The Terminal operations of the Hub REST API (1 operation).

URL: https://docs.synap.live/docs/reference/hub-api/terminal · Generated from Synap-core/backend@c31e261ab (main)

Paths are relative to `/api/hub` on a pod.

## GET /terminal/logs

Read pod service logs

Read-only docker logs / journalctl for an allowlisted set of services (api, intelligence, realtime, postgres, typesense). Auto-approved.

Parameters:

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `service` | query | TerminalService | yes |  |
| `lines` | query | string |  | Default 50, hard-capped at 500. |
| `since` | query | string |  | Time window (e.g. '1h', '30m'). Forwarded to docker --since. |
| `filter` | query | string |  | grep -i pattern applied to output. |

Responses:

- `200`: Log output (last N lines)
- `400`: Unknown service
- `403`: Forbidden
- `500`: Internal error
