Create a pending run with a free-text run prompt and a snapshot of the saved automation instructions. Any member of the automation's project, or an organization API key, can start a run; it executes as the automation's owner, using the owner's data access and AI usage.
- Productionhttps://api.foxglove.dev/v1/automations/runs
{ "automationId": "string", "runPrompt": "string" }
The pending run
Whether Foxglove ran the automation to the end, separate from what the run found. finished means the agent's turn ended, or a limit stopped the run after the agent reported its result. blocked means a limit or a missing permission stopped the run before that, such as the AI usage limit, the run's time limit, or an owner who lost access to the project. error means the run failed on Foxglove's side.
What the agent reported the run accomplished. needs_review means the task finished but the agent was not sure whether something went wrong. no_result means the task ran and had nothing to act on, such as no matching data. Null when the agent did not report a result, for example because the run was blocked or failed before it finished.
{ "id": "string", "automationId": "string", "actionPrompt": "string", "runPrompt": "string", "status": "pending", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "startedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "errorMessage": "string", "execution": "pending", "result": "succeeded", "resultSummary": "string", "model": "string" }