Capture
The Capture operations of the Hub REST API (3 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.
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" } ]}'{ "clusters": [ { "name": "string", "icon": "string", "tabs": [ { "url": "string", "title": "string", "favIconUrl": "string", "tabId": 0, "windowId": 0, "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.
application/json- body
userId?stringtext?string1 <= length <= 8000file?url?stringurihtml?stringlength <= 50000context?stringinstructions?stringlength <= 2000workspaceId?stringuuidpreviousEntities?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?|"not_offered""selected""declined""unstated"nullplacement?degraded?booleandegradedReason?stringdegradedDetail?mentions?array<>extraction?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 '{}'{ "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", "degradedDetail": { "cause": "string", "status": 0, "attempts": 0, "failureClass": "string" }, "mentions": [ { "entityId": "string", "title": "string", "profileSlug": "string", "signal": "email" } ], "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}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
userId?stringworkspaceId?stringuuidprojectId?|uuidentities*array<>relations?array<>targetWorkspaceId?|uuidkeepRaw?booleanfile?idempotencyKey?stringlength <= 200workspaceRouting?string"auto""ask""locked"aiWorkspaceId?|uuidaiWorkspaceConfidence?number|nullaiWorkspaceReason?string|nullaiWorkspaceDecision?|nullworkspaceChoice?string"accepted""changed""removed""ignored"aiProjectId?|uuidaiProjectConfidence?number|nullaiProjectReason?string|nullsessionId?stringuuidintentText?stringlength <= 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" } ]}'{ "property1": null, "property2": null}