Hub REST API
Capture
The Capture operations of the Hub REST API (3 operations).
For BuildersOpen-source podSynap CloudGenerated from Synap-core/backend@c31e261ab (main)
POST
bearerAuthheader
AuthorizationBearer <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
tabs*array<>Tab clusters
application/json- response
clusters*array<>curl -X POST 'https://pod.example.com/api/hub/capture/cluster-tabs' \ -H 'Content-Type: application/json' \ -d '{ "tabs": [ { "url": "string", "title": "string" } ]}'Example Response
{ "clusters": [ { "name": "string", "icon": "string", "tabs": [ { "url": "string", "title": "string", "favIconUrl": "string", "tabId": 0, "windowId": 0, "property1": null, "property2": null } ] } ]}POST
bearerAuthheader
AuthorizationBearer <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
userId?stringtext?stringLength
1 <= length <= 8000file?url?stringFormat
urihtml?stringLength
length <= 50000context?stringinstructions?stringLength
length <= 2000workspaceId?stringFormat
uuidpreviousEntities?array<>Structured entity proposals
application/json- response
proposals?array<>relations?array<>followUp?unknowntargetWorkspaceId?string|nulltargetWorkspaceName?string|nulltargetWorkspaceReason?string|nulltargetWorkspaceConfidence?number|nulltargetProjectId?string|nulltargetProjectReason?string|nulltargetProjectConfidence?number|nulltargetProjectOutcome?|Value in
"not_offered""selected""declined""unstated"nullplacement?degraded?booleandegradedReason?stringextraction?status?stringdegradedMessage?stringdegradedRetryable?booleansalvagedEntities?array<>nextStep?stringpendingQuestion?unknown[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/capture/structure' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "proposals": [ { "property1": null, "property2": null } ], "relations": [ { "property1": null, "property2": null } ], "followUp": null, "targetWorkspaceId": "string", "targetWorkspaceName": "string", "targetWorkspaceReason": "string", "targetWorkspaceConfidence": 0, "targetProjectId": "string", "targetProjectReason": "string", "targetProjectConfidence": 0, "targetProjectOutcome": "not_offered", "placement": { "workspaceId": "string", "workspaceName": "string", "deterministic": true, "suggestion": { "workspaceId": "string", "workspaceName": "string", "reason": "string", "alternatives": [ { "workspaceId": "string", "workspaceName": "string", "weight": 0 } ] } }, "degraded": true, "degradedReason": "string", "extraction": { "kind": "string", "extractor": "string", "metadata": { "property1": null, "property2": null }, "warnings": [ "string" ], "text": "string", "textTruncated": true, "degraded": true, "degradedReason": "string" }, "status": "string", "degradedMessage": "string", "degradedRetryable": true, "salvagedEntities": [ { "property1": null, "property2": null } ], "nextStep": "string", "pendingQuestion": null, "property1": null, "property2": null}POST
bearerAuthheader
AuthorizationBearer <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
userId?stringworkspaceId?stringFormat
uuidprojectId?|Format
uuidentities*array<>relations?array<>targetWorkspaceId?|Format
uuidkeepRaw?booleanfile?idempotencyKey?stringLength
length <= 200workspaceRouting?stringValue in
"auto""ask""locked"aiWorkspaceId?|Format
uuidaiWorkspaceConfidence?number|nullaiWorkspaceReason?string|nullaiWorkspaceDecision?|nullworkspaceChoice?stringValue in
"accepted""changed""removed""ignored"aiProjectId?|Format
uuidaiProjectConfidence?number|nullaiProjectReason?string|nullsessionId?stringFormat
uuidintentText?stringLength
length <= 4000Created entities + relations
application/json- response
[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/capture/execute' \ -H 'Content-Type: application/json' \ -d '{ "entities": [ { "tempId": "string", "profileSlug": "string", "title": "string" } ]}'Example Response
{ "property1": null, "property2": null}