Submit action job
run_actionCreate an action job. External writes always wait for workspace-owner approval in the dashboard; the owner is emailed, and wait_for_job blocks until the decision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Action input matching the schema advertised by list_actions. | |
| action | Yes | Catalog action name from list_actions, for example integration.execute. | |
| workflow_id | No | Stable identifier of the agent workflow this job belongs to, for grouping events. | |
| workflow_name | No | Human-readable workflow name shown to the workspace owner during review. | |
| idempotency_key | No | Caller-chosen key; resubmitting the same key and input returns the existing job instead of creating another. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Job identifier. | |
| error | Yes | Failure, execution_unknown or queued approval revocation explanation; null otherwise. | |
| input | Yes | Validated action input exactly as submitted. | |
| action | Yes | Catalog action name, for example integration.execute. | |
| output | Yes | For writes awaiting_approval or queued: the exact approval preview bound to the owner's decision. Rejected writes retain that preview, including after a queued approval is revoked. After succeeded: the action result. After execution_unknown: the approved write plus the ambiguous provider response when one was received. Other jobs may have a preserved preview or null. | |
| status | Yes | awaiting_approval, queued, and running are non-terminal; succeeded, failed, rejected, and execution_unknown are terminal. An owner may revoke a queued approval, producing rejected with both approval and rejection evidence. | |
| createdAt | Yes | Creation time. | |
| updatedAt | Yes | Last status change. | |
| approvedAt | Yes | ||
| approvedBy | Yes | Owner who approved the write. | |
| rejectedAt | Yes | ||
| rejectedBy | Yes | Owner who rejected the write. | |
| sideEffect | Yes | True when the action writes to an external system and therefore required owner approval. | |
| workflowId | Yes | Caller-supplied workflow identifier shared across related jobs. | |
| workspaceId | Yes | Workspace that owns the job. | |
| workflowName | Yes | Caller-supplied workflow name shown in the dashboard. | |
| idempotencyKey | Yes | Idempotency key that deduplicates this submission within the workspace. |