Hub REST API
Artifacts
The Artifacts operations of the Hub REST API (3 operations).
For BuildersOpen-source podSynap CloudGenerated from Synap-core/backend@c31e261ab (main)
GET
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.
workspaceId?stringstate?stringValue in
"working""kept""swept""all"placement?stringValue in
"desk""home""sidebar""library""all"sessionId?stringFormat
uuidlimit?integerRange
1 <= value <= 100Artifacts
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/artifacts'Example Response
[ { "id": "string", "workspaceId": "string", "userId": "string", "kind": "string", "refId": "string", "cellKey": "string", "props": null, "title": "string", "originKind": "string", "actorId": "string", "sessionId": "string", "state": "string", "placement": "string", "keptAt": "string", "sweptAt": "string", "createdAt": "string", "updatedAt": "string" }]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
workspaceId*stringLength
1 <= lengthuserId*stringLength
1 <= lengthkind*stringValue in
"view""cell""document""entity""url""automation""playbook"refId?stringcellKey?stringprops?unknowntitle*stringLength
1 <= length <= 500originKind?stringDefault
"agent"Value in
"user""agent""deeplink""system"actorId?stringsessionId?stringFormat
uuidplacement?stringValue in
"desk""home""sidebar""library"agentUserId?stringFormat
uuidreasoning?stringCreated artifact or proposal
application/json- response
[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/artifacts' \ -H 'Content-Type: application/json' \ -d '{ "workspaceId": "string", "userId": "string", "kind": "view", "title": "string"}'Example Response
{ "property1": null, "property2": null}PATCH
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.
id*stringFormat
uuidapplication/json- body
state?stringValue in
"working""kept""swept"placement?stringValue in
"desk""home""sidebar""library"agentUserId?stringFormat
uuidreasoning?stringUpdated artifact or proposal
application/json- response
[key: string]?unknowncurl -X PATCH 'https://pod.example.com/api/hub/artifacts/:id' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "property1": null, "property2": null}