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
How far Foxglove got in executing the automation. A run skipped by its filter is finished. 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 run accomplished. needs_review means the task finished but the agent was unsure whether something went wrong. no_result means the task ran and had nothing to act on. not_applicable means the source did not match the run filter, so the agent did not run. Null when the run has no result, such as when it is blocked.
{ "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" }