Error message
When this error occurs
GET /agents/conversations/{id}, GET /agents/conversations/{id}/messages, or
POST /agents/conversations/{id}/runs was called with an {id} that either:
- does not exist in the system, or
- belongs to a different company than the bearer token’s
company_id.
How to fix
- Confirm the conversation id is correct (no typos, no truncation).
- Confirm the token you’re using belongs to the company that owns the conversation —
GET /whoamireturns yourcompany_id. - If you recently created the conversation, confirm the
POST /agents/conversationsresponse returned the sameidyou’re now passing.
Variant: a failed run carrying this code
Surface:GET /agents/runs/{id}, error.type = "AgentLoopConversationNotFound"
A run can also fail with this code (rather than a 404) when the agent workflow loads the run’s
context and finds the run’s conversation row gone. A run always references a conversation, so this
is a data-integrity violation that should not happen in practice — not a caller mistake. It is
non-retryable.
If you see this, report the log_id and run id to support; it points at a missing or deleted
agent_conversations row for an existing run.
