SynapDocs
Hub REST API

Runs

The Runs operations of the Hub REST API (5 operations).

For BuildersOpen-source podSynap Cloud

Generated from Synap-core/backend main at 24fabe7, which can be newer than the stable release self-hosters install.

GET
/runs

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.

Response Body

Run feed

application/json
  1. response
runs*array<unknown>
Example Request
curl -X GET 'https://pod.example.com/api/hub/runs'
Example Response
{  "runs": [    null  ]}
GET
/runs/{id}

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.

Path Parameters

id*string

Query Parameters

flowType*string
Value in"automation""playbook""capture""capability""session""chat"

Response Body

Run detail

response?unknownapplication/json
Example Request
curl -X GET 'https://pod.example.com/api/hub/runs/string?flowType=automation'
Example Response
null
POST
/diagnose

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.

Request Body

application/json
  1. body
agentId?string
id?string
type?string
Value in"proposal""session""capability""agent""entity""run""workspace""usage"
workspaceId?string|null
stuckThresholdHours?number
flowType?string
Value in"automation""playbook""capture""capability""session""chat"
flowId?string
runId?string
limit?number
since?string
groupBy?array<string>
apiKeyId?string
client?string

Response Body

Diagnose result

response?unknownapplication/json
Example Request
curl -X POST 'https://pod.example.com/api/hub/diagnose' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
null
GET
/usage

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

since?string

Window start: ISO time or a span back from now (30m, 24h, 7d; default 24h).

until?string

Window end: ISO time or a span (default now).

groupBy?string

Comma-separated dimensions: hour, day, apiKeyId, limiterKey, client, conversationId, rlClass, outcome (default client,rlClass,outcome).

apiKeyId?string

Narrow to one API key.

client?string

Narrow to one client (X-Synap-Client, e.g. synap-bridge/0.6.0).

limit?string

Max groups, largest first (default 200, max 1000).

Response Body

Usage groups

response?unknownapplication/json
Example Request
curl -X GET 'https://pod.example.com/api/hub/usage'
Example Response
null
GET
/errors/{errorId}

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.

Path Parameters

errorId*string

Response Body

Server fault

response?unknownapplication/json
Example Request
curl -X GET 'https://pod.example.com/api/hub/errors/string'
Example Response
null

On this page