Automations
The Automations operations of the Hub REST API (7 operations).
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?stringagentUserId?stringworkspaceId?string|nullsourceMessageId?stringname*stringdescription?stringtriggerType*AutomationTriggerType"event""cron""webhook""manual"triggerConfig?flowDefinition*status?AutomationStatus"draft""active""paused""error"metadata?Created automation
application/json- response
id*stringuserId*stringworkspaceId?string|nullname*stringdescription?string|nulltriggerType*AutomationTriggerType"event""cron""webhook""manual"triggerConfig?flowDefinition?status*AutomationStatus"draft""active""paused""error"metadata?createdAt?string|updatedAt?string|curl -X POST 'https://pod.example.com/api/hub/automations/create' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "triggerType": "event", "flowDefinition": { "nodes": [ { "property1": null, "property2": null } ], "edges": [ { "property1": null, "property2": null } ] }}'{ "id": "string", "userId": "string", "workspaceId": "string", "name": "string", "description": "string", "triggerType": "event", "triggerConfig": { "property1": null, "property2": null }, "flowDefinition": { "nodes": [ { "property1": null, "property2": null } ], "edges": [ { "property1": null, "property2": null } ] }, "status": "draft", "metadata": { "property1": null, "property2": null }, "createdAt": "string", "updatedAt": "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.
userId*stringworkspaceId?stringstatus?string"draft""active""paused""error"limit?stringArray of automations
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/automations?userId=string'[ { "id": "string", "userId": "string", "workspaceId": "string", "name": "string", "description": "string", "triggerType": "event", "triggerConfig": { "property1": null, "property2": null }, "flowDefinition": { "nodes": [ { "property1": null, "property2": null } ], "edges": [ { "property1": null, "property2": null } ] }, "status": "draft", "metadata": { "property1": null, "property2": null }, "createdAt": "string", "updatedAt": "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.
automationId*stringuserId*stringworkspaceId?stringAutomation
application/json- response
id*stringuserId*stringworkspaceId?string|nullname*stringdescription?string|nulltriggerType*AutomationTriggerType"event""cron""webhook""manual"triggerConfig?flowDefinition?status*AutomationStatus"draft""active""paused""error"metadata?createdAt?string|updatedAt?string|curl -X GET 'https://pod.example.com/api/hub/automations/string?userId=string'{ "id": "string", "userId": "string", "workspaceId": "string", "name": "string", "description": "string", "triggerType": "event", "triggerConfig": { "property1": null, "property2": null }, "flowDefinition": { "nodes": [ { "property1": null, "property2": null } ], "edges": [ { "property1": null, "property2": null } ] }, "status": "draft", "metadata": { "property1": null, "property2": null }, "createdAt": "string", "updatedAt": "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.
automationId*stringapplication/json- body
userId?stringworkspaceId*stringname?stringdescription?stringtriggerType?AutomationTriggerType"event""cron""webhook""manual"triggerConfig?flowDefinition?status?AutomationStatus"draft""active""paused""error"metadata?Updated automation
application/json- response
id*stringuserId*stringworkspaceId?string|nullname*stringdescription?string|nulltriggerType*AutomationTriggerType"event""cron""webhook""manual"triggerConfig?flowDefinition?status*AutomationStatus"draft""active""paused""error"metadata?createdAt?string|updatedAt?string|curl -X PATCH 'https://pod.example.com/api/hub/automations/string' \ -H 'Content-Type: application/json' \ -d '{ "workspaceId": "string"}'{ "id": "string", "userId": "string", "workspaceId": "string", "name": "string", "description": "string", "triggerType": "event", "triggerConfig": { "property1": null, "property2": null }, "flowDefinition": { "nodes": [ { "property1": null, "property2": null } ], "edges": [ { "property1": null, "property2": null } ] }, "status": "draft", "metadata": { "property1": null, "property2": null }, "createdAt": "string", "updatedAt": "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.
automationId*stringapplication/json- body
userId?stringagentUserId?stringExplicit agent user ID when an AI agent asks for the run — routes through the governance gate.
reasoning?stringAI reasoning surfaced on the proposal card.
length <= 2000workspaceId?string|nullpayload?Optional payload passed to the flow's first node.
Trigger result (run id, status, optional output)
application/json- response
[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/automations/string/trigger' \ -H 'Content-Type: application/json' \ -d '{}'{ "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.
automationId*stringapplication/json- body
userId?stringworkspaceId*stringActivated automation
application/json- response
id*stringuserId*stringworkspaceId?string|nullname*stringdescription?string|nulltriggerType*AutomationTriggerType"event""cron""webhook""manual"triggerConfig?flowDefinition?status*AutomationStatus"draft""active""paused""error"metadata?createdAt?string|updatedAt?string|curl -X POST 'https://pod.example.com/api/hub/automations/string/activate' \ -H 'Content-Type: application/json' \ -d '{ "workspaceId": "string"}'{ "id": "string", "userId": "string", "workspaceId": "string", "name": "string", "description": "string", "triggerType": "event", "triggerConfig": { "property1": null, "property2": null }, "flowDefinition": { "nodes": [ { "property1": null, "property2": null } ], "edges": [ { "property1": null, "property2": null } ] }, "status": "draft", "metadata": { "property1": null, "property2": null }, "createdAt": "string", "updatedAt": "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.
automationId*stringapplication/json- body
userId?stringworkspaceId*stringPaused automation
application/json- response
id*stringuserId*stringworkspaceId?string|nullname*stringdescription?string|nulltriggerType*AutomationTriggerType"event""cron""webhook""manual"triggerConfig?flowDefinition?status*AutomationStatus"draft""active""paused""error"metadata?createdAt?string|updatedAt?string|curl -X POST 'https://pod.example.com/api/hub/automations/string/pause' \ -H 'Content-Type: application/json' \ -d '{ "workspaceId": "string"}'{ "id": "string", "userId": "string", "workspaceId": "string", "name": "string", "description": "string", "triggerType": "event", "triggerConfig": { "property1": null, "property2": null }, "flowDefinition": { "nodes": [ { "property1": null, "property2": null } ], "edges": [ { "property1": null, "property2": null } ] }, "status": "draft", "metadata": { "property1": null, "property2": null }, "createdAt": "string", "updatedAt": "string"}