HTTP status: 404Documentation Index
Fetch the complete documentation index at: https://docs.narrative.io/llms.txt
Use this file to discover all available pages before exploring further.
When this error occurs
This page covers two distinct sources of the same failure class:- Synchronous —
GET /agents/runs/{id}returned 404 because the run id is unknown to the system, or it belongs to a different company. The response detail is generic on purpose; the API doesn’t leak existence across companies. - Asynchronous —
error.type = "AgentLoopAgentRunNotFound"on a failed run row means the workflow’s load activity tried to read theagent_runsrow by id and got nothing back. This only happens if the row was deleted between API insert and workflow start (unusual; investigate vialog_idand the workflow worker logs).
How to fix
- Verify the run id from the original
POST /agents/conversations/{id}/runsresponse. - Verify your bearer token’s company id matches the conversation that owns the run.
- For the workflow-side variant, check the worker logs filtering on the
agent_run_<uuid>Temporal workflow id; the load activity logs include the database query result.

