Hub REST API
Widgets
The Widgets operations of the Hub REST API (2 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?stringWidget definitions
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/widget-definitions'Example Response
[ { "id": "string", "workspaceId": "string", "kind": "string", "name": "string", "category": "string", "config": { "property1": null, "property2": null }, "schema": { "property1": null, "property2": null }, "createdAt": "string", "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?string|nullkind*stringname?stringcategory?stringconfig?schema?sourceMessageId?string[key: string]?unknownUpserted widget definition
application/json- response
id*stringworkspaceId?string|nullkind*stringname?stringcategory?stringconfig?schema?createdAt?string|[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/widget-definitions' \ -H 'Content-Type: application/json' \ -d '{ "kind": "string", "property1": null, "property2": null}'Example Response
{ "id": "string", "workspaceId": "string", "kind": "string", "name": "string", "category": "string", "config": { "property1": null, "property2": null }, "schema": { "property1": null, "property2": null }, "createdAt": "string", "property1": null, "property2": null}