FocusSessions
The FocusSessions operations of the Hub REST API (17 operations).
Generated from Synap-core/backend main at 24fabe7, which can be newer than the stable release self-hosters install.
bearerAuthAuthorizationBearer <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.
workspaceId?stringprojectId?stringstatus?string"active""paused""forming""scheduled""closed""failed""cancelled""stale""all"lens?string"default""triage""all"kind?string"work""run""receipt""all"playbookId?stringuuidautomationId?stringuuidsubjectEntityId?stringuuidsubjectProfileSlug?string1 <= lengthlimit?integer1 <= value <= 50offset?|0 <= valueSessions
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/focus-sessions'[ { "id": "string", "workspaceId": "string", "projectId": "string", "userId": "string", "correlationId": "string", "title": "string", "goal": "string", "status": "string", "templateId": "string", "expectedOutputs": null, "channelId": "string", "progress": 0, "currentStage": "string", "agentIds": [ "string" ], "closedAt": "string", "verificationReport": null, "metadata": null, "startedAt": "string", "createdAt": "string", "updatedAt": "string", "kind": "work" }]bearerAuthAuthorizationBearer <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.
application/json- body
workspaceId?string^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/iuuidprojectId?string1 <= lengthtrackId?stringuuidtrackStage?string1 <= length <= 120userId*string1 <= lengthtitle?stringlength <= 200goal*string1 <= length <= 2000correlationId?stringtemplateId?string|nullparams?outcomes?array<>items <= 40expectedOutputs?array<>criteria?array<unknown>channelId?stringuuidagentIds?array<string>subjectEntityId?stringuuidparentSessionId?stringuuidsuspendedIntent?string1 <= length <= 2000blockedBySessionIds?array<>items <= 20forceCreate?booleanCreated or existing session
application/json- response
id*stringworkspaceId*string|nullprojectId*string|nulluserId*stringcorrelationId*string|nulltitle*string|nullgoal*stringstatus*stringtemplateId*string|nullexpectedOutputs?unknownchannelId*string|nullprogress*number|nullcurrentStage*string|nullagentIds*array<string>closedAt*string|nullverificationReport?unknownmetadata?unknownstartedAt*stringcreatedAt*stringupdatedAt*stringkind?string"work""run""receipt"curl -X POST 'https://pod.example.com/api/hub/focus-sessions' \ -H 'Content-Type: application/json' \ -d '{ "userId": "string", "goal": "string"}'{ "id": "string", "workspaceId": "string", "projectId": "string", "userId": "string", "correlationId": "string", "title": "string", "goal": "string", "status": "string", "templateId": "string", "expectedOutputs": null, "channelId": "string", "progress": 0, "currentStage": "string", "agentIds": [ "string" ], "closedAt": "string", "verificationReport": null, "metadata": null, "startedAt": "string", "createdAt": "string", "updatedAt": "string", "kind": "work"}bearerAuthAuthorizationBearer <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.
workspaceId?stringprojectId?stringwindowHours?integer1 <= value <= 720kind?string"work""run""receipt""all"lens?string"default""triage""all"trackId?stringrootSessionId?stringWork graph
application/json- response
nodes*array<>edges*array<>pullRequests*array<>holds*array<>goals*array<>sections*window*curl -X GET 'https://pod.example.com/api/hub/focus-sessions/graph'{ "nodes": [ { "id": "string", "workspaceId": "string", "projectId": "string", "userId": "string", "correlationId": "string", "title": "string", "goal": "string", "status": "string", "templateId": "string", "expectedOutputs": null, "channelId": "string", "progress": 0, "currentStage": "string", "agentIds": [ "string" ], "closedAt": "string", "verificationReport": null, "metadata": null, "startedAt": "string", "createdAt": "string", "updatedAt": "string", "kind": "work", "parentSessionId": "string", "triage": null, "nextMove": null, "unitFacts": null, "live": null, "viewerRole": "owner", "inWindow": true } ], "edges": [ { "kind": "blocked_by", "from": "string", "to": "string", "entityId": "string", "count": 0, "lastAt": "string" } ], "pullRequests": [ { "id": "string", "url": "string", "label": "string", "sessions": [ { "sessionId": "string", "key": "string", "state": "met" } ], "prState": null } ], "holds": [ { "sessionId": "string", "status": "string", "hold": null, "resumeDue": true, "reviewDue": true } ], "goals": [ { "id": "string", "name": "string", "status": "string", "projectId": "string" } ], "sections": { "blockedBy": { "status": "ok", "reason": "string" }, "waitsOnOutputs": { "status": "ok", "reason": "string" }, "interactions": { "status": "ok", "reason": "string" }, "farEnds": { "status": "ok", "reason": "string" }, "pullRequests": { "status": "ok", "reason": "string" }, "holds": { "status": "ok", "reason": "string" }, "goals": { "status": "ok", "reason": "string" } }, "window": { "since": "string", "hours": 0, "ceiling": 0, "truncated": true, "omitted": 0 }}bearerAuthAuthorizationBearer <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.
workspaceId?stringprojectId?stringsubjectEntityId?stringuuidsubjectProfileSlug?string1 <= lengthlimit?integer1 <= value <= 200Owed slots
application/json- response
slots*array<>truncated*booleancurl -X GET 'https://pod.example.com/api/hub/focus-sessions/owed'{ "slots": [ { "property1": null, "property2": null } ], "truncated": true}bearerAuthAuthorizationBearer <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.
id*stringuuidworkspaceId?stringSession
application/json- response
id*stringworkspaceId*string|nullprojectId*string|nulluserId*stringcorrelationId*string|nulltitle*string|nullgoal*stringstatus*stringtemplateId*string|nullexpectedOutputs?unknownchannelId*string|nullprogress*number|nullcurrentStage*string|nullagentIds*array<string>closedAt*string|nullverificationReport?unknownmetadata?unknownstartedAt*stringcreatedAt*stringupdatedAt*stringkind?string"work""run""receipt"curl -X GET 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "string", "workspaceId": "string", "projectId": "string", "userId": "string", "correlationId": "string", "title": "string", "goal": "string", "status": "string", "templateId": "string", "expectedOutputs": null, "channelId": "string", "progress": 0, "currentStage": "string", "agentIds": [ "string" ], "closedAt": "string", "verificationReport": null, "metadata": null, "startedAt": "string", "createdAt": "string", "updatedAt": "string", "kind": "work"}bearerAuthAuthorizationBearer <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.
id*stringuuidapplication/json- body
workspaceId?string^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/iuuidstatus?string"active""paused""forming""scheduled""closed""failed""cancelled"expectedStatus?string"active""paused""forming""scheduled""closed""failed""cancelled""stale"hold?occurredAt?stringprogress?integer0 <= value <= 100channelId?stringuuidcorrelationId?stringtitle?|length <= 200goal?string1 <= length <= 2000agentIds?array<string>addAgentId?string1 <= lengthoutcomes?array<>items <= 40expectedOutputs?array<>verificationReport?unknowncurrentStage?string1 <= lengthsubjectEntityId?|uuidmetadata?criteria?array<>items <= 12followPlaybookId?|uuidfollowStageKey?|1 <= lengthparams?trackId?|uuidtrackStage?|1 <= length <= 120agentUserId?stringuuidreasoning?stringUpdated session
application/json- response
id*stringworkspaceId*string|nullprojectId*string|nulluserId*stringcorrelationId*string|nulltitle*string|nullgoal*stringstatus*stringtemplateId*string|nullexpectedOutputs?unknownchannelId*string|nullprogress*number|nullcurrentStage*string|nullagentIds*array<string>closedAt*string|nullverificationReport?unknownmetadata?unknownstartedAt*stringcreatedAt*stringupdatedAt*stringkind?string"work""run""receipt"curl -X PATCH 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "workspaceId": "string", "projectId": "string", "userId": "string", "correlationId": "string", "title": "string", "goal": "string", "status": "string", "templateId": "string", "expectedOutputs": null, "channelId": "string", "progress": 0, "currentStage": "string", "agentIds": [ "string" ], "closedAt": "string", "verificationReport": null, "metadata": null, "startedAt": "string", "createdAt": "string", "updatedAt": "string", "kind": "work"}bearerAuthAuthorizationBearer <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.
id*stringuuidapplication/json- body
summary?stringverificationReport?terminalStatus?string"closed""cancelled""failed"questionDispositions?array<>items <= 100reason?string1 <= length <= 1000Closed session + proposal pack
application/json- response
[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/complete' \ -H 'Content-Type: application/json' \ -d '{}'{ "property1": null, "property2": null}bearerAuthAuthorizationBearer <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.
id*stringuuidapplication/json- body
kind*string"view""cell""document""entity""url""automation""playbook"refId*string1 <= lengthlabel?string1 <= length <= 500expectedLabel?string1 <= length <= 500workspaceId?stringuuidRecorded
application/json- response
ok*booleanoutputId*stringcurl -X POST 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/outputs' \ -H 'Content-Type: application/json' \ -d '{ "kind": "view", "refId": "string"}'{ "ok": true, "outputId": "string"}bearerAuthAuthorizationBearer <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.
id*stringuuidapplication/json- body
expectedLabel*string1 <= length <= 500agentType?string1 <= length <= 100Delegated
application/json- response
ok*booleanexpectedLabel*stringkind*stringagentType*stringchannelId*stringmessageId*stringtriggered*booleanagentAttached*booleancurl -X POST 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/outputs/delegate' \ -H 'Content-Type: application/json' \ -d '{ "expectedLabel": "string"}'{ "ok": true, "expectedLabel": "string", "kind": "string", "agentType": "string", "channelId": "string", "messageId": "string", "triggered": true, "agentAttached": true}bearerAuthAuthorizationBearer <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.
id*stringuuidapplication/json- body
expectedLabel*string1 <= length <= 500blockedReason*string"credential""permission""capability""policy""decision""physical"why?stringlength <= 500unblocks?string1 <= length <= 200ref?||nullask?|||||nullBlocked on the human
application/json- response
ok*booleanexpectedLabel*stringkind*stringblockGuidelines?unknownhint?stringcurl -X POST 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/outputs/block' \ -H 'Content-Type: application/json' \ -d '{ "expectedLabel": "string", "blockedReason": "credential"}'{ "ok": true, "expectedLabel": "string", "kind": "string", "blockGuidelines": null, "hint": "string"}bearerAuthAuthorizationBearer <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.
id*stringuuidapplication/json- body
expectedLabel*string1 <= length <= 500Reclaimed
application/json- response
ok*booleanexpectedLabel*stringkind*stringcurl -X POST 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/outputs/unblock' \ -H 'Content-Type: application/json' \ -d '{ "expectedLabel": "string"}'{ "ok": true, "expectedLabel": "string", "kind": "string"}bearerAuthAuthorizationBearer <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.
id*stringuuidapplication/json- body
expectedLabel?string1 <= length <= 500text?stringlength <= 4000value?||||askFingerprint?string1 <= length <= 64expectedGranteeId?string1 <= length <= 200confirmRelayed?truetruerejectRelayed?truetruequestionId?stringuuidAnswered, or (rejectRelayed) corrected
application/json- response
ok*booleanexpectedLabel*stringkind*stringanswer?unknownhandedBack*booleanmessageId*string|nullquestionId*string|nullwokeAgentType*string|nulltriggered*booleandecision?unknowncurl -X POST 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/outputs/answer' \ -H 'Content-Type: application/json' \ -d '{}'{ "ok": true, "expectedLabel": "string", "kind": "string", "answer": null, "handedBack": true, "messageId": "string", "questionId": "string", "wokeAgentType": "string", "triggered": true, "decision": null}bearerAuthAuthorizationBearer <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.
id*stringuuidapplication/json- body
disposition*string"answered""withdrawn"messageId?stringuuidslotLabel?string1 <= length <= 500quote?stringlength <= 2000text?stringlength <= 2000value?||||relaySurface?string1 <= length <= 64note?stringlength <= 500Relayed, awaiting the person's tap, or withdrawn
application/json- response
ok*booleanstatus*string"relayed""awaiting_tap""withdrawn"stakes?string"routine""commitment"questionId*string|nullexpectedLabel*string|nullanswer?unknownpendingRelay?unknownhandedBack?booleandecision?unknowncurl -X POST 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/answers/relay' \ -H 'Content-Type: application/json' \ -d '{ "disposition": "answered"}'{ "ok": true, "status": "relayed", "stakes": "routine", "questionId": "string", "expectedLabel": "string", "answer": null, "pendingRelay": null, "handedBack": true, "decision": null}bearerAuthAuthorizationBearer <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.
id*stringuuidsince?stringtimeoutSeconds?integer1 <= value <= 90limit?integer1 <= value <= 100events?stringlength <= 200knownStage?stringlength <= 200stamp?string"true""false"Answered, or timed out
application/json- response
status*string"answered""changed""timeout"sessionId*stringsince*string|nullanswers?array<unknown>events?array<unknown>state?nextSince*string|nullhasMore?booleanwaitedSeconds?numbercurl -X GET 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/answers/wait'{ "status": "answered", "sessionId": "string", "since": "string", "answers": [ null ], "events": [ null ], "state": { "currentStage": "string", "status": "string" }, "nextSince": "string", "hasMore": true, "waitedSeconds": 0}bearerAuthAuthorizationBearer <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.
id*stringuuidsince?stringlimit?integer1 <= value <= 100A page of answers
application/json- response
sessionId*stringsince*string|nullanswers*array<unknown>nextSince*string|nullhasMore*booleancurl -X GET 'https://pod.example.com/api/hub/focus-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/answers'{ "sessionId": "string", "since": "string", "answers": [ null ], "nextSince": "string", "hasMore": true}bearerAuthAuthorizationBearer <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.
Work release
application/json- response
generatedAt*stringsources*repos*array<>prs*array<>blockers*array<>narrowed?curl -X GET 'https://pod.example.com/api/hub/work-release'{ "generatedAt": "string", "sources": { "snapshots": "ok", "sessions": "ok", "holders": "ok", "pullRequests": "ok" }, "repos": [ { "property1": null, "property2": null } ], "prs": [ { "property1": null, "property2": null } ], "blockers": [ { "ref": { "kind": "pr", "repo": "string", "number": 0 }, "waiting": 0, "waitingPrs": 0, "waitingMains": 0, "reason": "string", "property1": null, "property2": null } ], "narrowed": { "snapshotSpaces": [ "string" ], "withheld": [ "snapshots" ], "reason": "string" }}bearerAuthAuthorizationBearer <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.
goalId?stringA goal (track) id.
sessionId?stringA focus session id.
pr?stringA pull request: owner/name#n or its GitHub url.
Timeline
application/json- response
subject*events*array<>truncated*booleancurl -X GET 'https://pod.example.com/api/hub/timeline'{ "subject": { "kind": "goal", "property1": null, "property2": null }, "events": [ { "property1": null, "property2": null } ], "truncated": true}