Retrieve run logs by AI contact
AI Run Logs
Retrieve run logs by AI contact
Returns the run logs (tree structure with descendants) for a given AI contact, ordered by start time descending. Supports pagination over the root run logs.
GET
Retrieve run logs by AI contact
Overview
Retrieve the AI run logs (assistant execution traces) associated with a specific AI contact. Each run log is returned as a full tree with its descendants, ordered from the most recent root run to the oldest. Use this endpoint to inspect what the AI did during a conversation: which assistants were used, which tools were called, what predefined behaviours triggered, and the input/output of each step.Use Cases
- Debug Assistant Behaviour: Inspect tool calls, context retrieval, and decisions step-by-step
- Audit & Compliance: Build an audit trail of AI actions taken per contact
- Analytics: Compute per-contact metrics about AI runs, tool usage, latency
- Customer Support: Understand why the assistant replied in a certain way to a given contact
Authentication
This endpoint requires authentication using an API key. Include your API key in the request header:Query Parameters
Pagination applies to the root run logs only. Each root is returned together with its full descendant tree.
