SynapDocs
Hub REST API

Packages

The Packages operations of the Hub REST API (4 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
/installed

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

drift?string

Opt 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.

Value in"true""false"
kind?string

Report only this kind.

Value in"workspace""capability""view""skill""automation""cell"

Response Body

Installed rows

application/json
  1. response
installed*array<>
driftComputed*boolean
counts*
Example Request
curl -X GET 'https://pod.example.com/api/hub/installed'
Example Response
{  "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  }}
GET
/package-updates

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

Waiting updates

application/json
  1. response
updates*array<>
unreadable*array<>
installed*array<>

Every installed package (one per slug and kind) with its verdict, the up-to-date ones included.

Example Request
curl -X GET 'https://pod.example.com/api/hub/package-updates'
Example Response
{  "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"    }  ]}
GET
/package-updates/{slug}

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

slug*string
Length1 <= length

Response Body

The update plan

application/json
  1. response
slug*string
kind*string
comparedBy*string

field: 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.

Value in"field""package"
name*string
installedVersion*string|null
latestVersion*string|null
rows*array<>
recommended?
counts*
needs*string
Value in"consent""choice""review""nothing"
Example Request
curl -X GET 'https://pod.example.com/api/hub/package-updates/string'
Example Response
{  "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"}
POST
/package-updates/{slug}/apply

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

slug*string
Length1 <= length

Request Body

application/json
  1. body
expectedVersion*string
Length1 <= length
choices?
Default{}
acceptDataChanges?array<string>

Response Body

Applied or proposed

application/json
  1. response
status*"applied"
Value in"applied"
warning?string

A whole-package update that landed but did not finish: what is left.

receipt*|null
Example Request
curl -X POST 'https://pod.example.com/api/hub/package-updates/string/apply' \  -H 'Content-Type: application/json' \  -d '{  "expectedVersion": "string"}'
Example Response
{  "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"  }}

On this page