SynapSynapDocs
Hub REST API

Terminal

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

For BuildersOpen-source podSynap CloudGenerated from Synap-core/backend@c31e261ab (main)

Read pod service logs

GET
/terminal/logs

Authorization

bearerAuth
headerAuthorizationBearer <API key>

Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.

Query Parameters

service*string
Value in"api""intelligence""realtime""postgres""typesense"
lines?string

Default 50, hard-capped at 500.

since?string

Time window (e.g. '1h', '30m'). Forwarded to docker --since.

filter?string

grep -i pattern applied to output.

Response Body

Log output (last N lines)

application/json
  1. response
service*string
lines*number
truncated*boolean
output*string
Example Request
curl -X GET 'https://pod.example.com/api/hub/terminal/logs?service=api'
Example Response
{  "service": "string",  "lines": 0,  "truncated": true,  "output": "string"}