Packages
The Packages operations of the Hub REST API (4 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.
drift?stringOpt into the EXPENSIVE drift pass for view/skill/automation rows (one Control-Plane fetch per distinct package slug). Default false: drift is reported only where a local comparison can answer it.
"true""false"kind?stringReport only this kind.
"workspace""capability""view""skill""automation""cell"Installed rows
application/json- response
installed*array<>driftComputed*booleancounts*curl -X GET 'https://pod.example.com/api/hub/installed'{ "installed": [ { "kind": "workspace", "id": "string", "name": "string", "packageSlug": "string", "templateKey": "string", "installedVersion": "string", "latestVersion": "string", "drift": true, "installedAt": "string", "workspaceId": "string", "provisioningStatus": "string", "failedStep": "string", "lifecycle": "current", "replacedBy": "string", "retiredReason": "string", "lifecycleWarning": "string", "overlays": [ { "slug": "string", "installedVersion": "string", "latestVersion": "string", "drifted": true, "lifecycle": "current", "replacedBy": "string", "retiredReason": "string", "lifecycleWarning": "string", "replacementHere": true } ], "templateState": { "property1": null, "property2": null }, "note": "string" } ], "driftComputed": true, "counts": { "property1": 0, "property2": 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.
Waiting updates
application/json- response
updates*array<>unreadable*array<>installed*array<>Every installed package (one per slug and kind) with its verdict, the up-to-date ones included.
curl -X GET 'https://pod.example.com/api/hub/package-updates'{ "updates": [ { "slug": "string", "kind": "string", "comparedBy": "field", "name": "string", "installedVersion": "string", "latestVersion": "string", "counts": { "updates": 0, "yours": 0, "both": 0, "same": 0 }, "dataChanges": 0, "needs": "consent", "reviewUrl": "string" } ], "unreadable": [ { "slug": "string", "kind": "string", "name": "string", "reason": "string" } ], "installed": [ { "slug": "string", "kind": "workspace", "name": "string", "installedVersion": "string", "latestVersion": "string", "hasUpdate": true, "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.
slug*string1 <= lengthThe update plan
application/json- response
slug*stringkind*stringcomparedBy*stringfield: compared and applied field by field (view, skill, automation). package: applied as a whole through the kind's own template door (workspace, capability); no field rows.
"field""package"name*stringinstalledVersion*string|nulllatestVersion*string|nullrows*array<>recommended?counts*needs*string"consent""choice""review""nothing"curl -X GET 'https://pod.example.com/api/hub/package-updates/string'{ "slug": "string", "kind": "string", "comparedBy": "field", "name": "string", "installedVersion": "string", "latestVersion": "string", "rows": [ { "rowKind": "view", "rowId": "string", "name": "string", "fields": [ { "key": "string", "label": "string", "state": "updates", "base": null, "desired": null, "live": null, "merged": "string", "overlap": true } ] } ], "recommended": { "property1": "catalog", "property2": "catalog" }, "counts": { "updates": 0, "yours": 0, "both": 0, "same": 0 }, "needs": "consent"}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.
slug*string1 <= lengthapplication/json- body
expectedVersion*string1 <= lengthchoices?{}acceptDataChanges?array<string>Applied or proposed
application/json- response
status*"applied""applied"warning?stringA whole-package update that landed but did not finish: what is left.
receipt*|nullcurl -X POST 'https://pod.example.com/api/hub/package-updates/string/apply' \ -H 'Content-Type: application/json' \ -d '{ "expectedVersion": "string"}'{ "status": "applied", "warning": "string", "receipt": { "id": "string", "slug": "string", "kind": "string", "name": "string", "fromVersion": "string", "toVersion": "string", "appliedAt": "string", "source": "person", "changes": [ { "rowKind": "view", "rowId": "string", "field": "string", "before": null, "after": null } ], "undoUntil": "string", "undoneAt": "string" }}