# List Conversation Trace

`GET /v1/conversations/{conversation_id}/trace`

What the platform did during this conversation's sessions, oldest first.

Authenticate with `Authorization: Bearer $TALQING_API_KEY`. Errors use the shared envelope: https://docs.talqing.com/api-reference/errors.md

## OpenAPI

```json
{
 "openapi":"3.1.0",
 "servers":[
  {
   "description":"Talqing API",
   "url":"https://api.talqing.com"
  }
 ],
 "paths":{
  "/v1/conversations/{conversation_id}/trace":{
   "get":{
    "description":"What the platform did during this conversation's sessions, oldest first.",
    "operationId":"conversations.trace",
    "parameters":[
     {
      "in":"path",
      "name":"conversation_id",
      "required":true,
      "schema":{
       "format":"uuid",
       "title":"Conversation Id",
       "type":"string"
      }
     },
     {
      "description":"Only events at or after this.",
      "in":"query",
      "name":"after",
      "required":false,
      "schema":{
       "anyOf":[
        {
         "format":"date-time",
         "type":"string"
        },
        {
         "type":"null"
        }
       ],
       "description":"Only events at or after this.",
       "title":"After"
      }
     },
     {
      "description":"Only events before this.",
      "in":"query",
      "name":"before",
      "required":false,
      "schema":{
       "anyOf":[
        {
         "format":"date-time",
         "type":"string"
        },
        {
         "type":"null"
        }
       ],
       "description":"Only events before this.",
       "title":"Before"
      }
     }
    ],
    "responses":{
     "200":{
      "content":{
       "application/json":{
        "schema":{
         "$ref":"#/components/schemas/ConversationTraceResponse"
        }
       }
      },
      "description":"Successful Response"
     },
     "401":{
      "$ref":"#/components/responses/Unauthorized"
     },
     "404":{
      "$ref":"#/components/responses/NotFound"
     },
     "422":{
      "$ref":"#/components/responses/ValidationFailed"
     },
     "default":{
      "$ref":"#/components/responses/Error"
     }
    },
    "security":[
     {
      "BearerAuth":[]
     },
     {
      "SessionCookie":[]
     }
    ],
    "summary":"List Conversation Trace",
    "tags":[
     "conversations"
    ]
   }
  }
 },
 "components":{
  "responses":{
   "Error":{
    "content":{
     "application/json":{
      "schema":{
       "$ref":"#/components/schemas/ErrorResponse"
      }
     }
    },
    "description":"Unexpected error. Every error this API returns carries this body."
   },
   "NotFound":{
    "content":{
     "application/json":{
      "schema":{
       "$ref":"#/components/schemas/ErrorResponse"
      }
     }
    },
    "description":"No such resource in this organization."
   },
   "Unauthorized":{
    "content":{
     "application/json":{
      "schema":{
       "$ref":"#/components/schemas/ErrorResponse"
      }
     }
    },
    "description":"Missing credential, or one that is revoked or no longer a member of this organization."
   },
   "ValidationFailed":{
    "content":{
     "application/json":{
      "schema":{
       "$ref":"#/components/schemas/ErrorResponse"
      }
     }
    },
    "description":"The request did not match this operation's schema; `detail.errors` lists each field."
   }
  },
  "schemas":{
   "ConversationTraceEventResponse":{
    "description":"One trace row of a conversation, and the session it belongs to.",
    "properties":{
     "created_at":{
      "format":"date-time",
      "title":"Created At",
      "type":"string"
     },
     "payload":{
      "additionalProperties":true,
      "title":"Payload",
      "type":"object"
     },
     "seq":{
      "title":"Seq",
      "type":"integer"
     },
     "session_id":{
      "format":"uuid",
      "title":"Session Id",
      "type":"string"
     },
     "type":{
      "title":"Type",
      "type":"string"
     }
    },
    "required":[
     "seq",
     "type",
     "payload",
     "created_at",
     "session_id"
    ],
    "title":"ConversationTraceEventResponse",
    "type":"object"
   },
   "ConversationTraceResponse":{
    "description":"A conversation's trace over one window, oldest first.",
    "properties":{
     "events":{
      "items":{
       "$ref":"#/components/schemas/ConversationTraceEventResponse"
      },
      "title":"Events",
      "type":"array"
     }
    },
    "required":[
     "events"
    ],
    "title":"ConversationTraceResponse",
    "type":"object"
   },
   "ErrorBody":{
    "description":"The structured half of our error contract: a human `message` plus a list\nof individual `errors` (used wherever we surface many problems at once,\nincluding tool publish, op-tree checks, and request validation). The global\nexception handlers normalize every API error to\n`{detail: {message, errors, code}}`, so SDKs can parse one shape consistently.",
    "properties":{
     "code":{
      "anyOf":[
       {
        "type":"string"
       },
       {
        "type":"null"
       }
      ],
      "default":null,
      "description":"A stable identifier for this error, when it has one.",
      "title":"Code"
     },
     "errors":{
      "items":{
       "type":"string"
      },
      "title":"Errors",
      "type":"array"
     },
     "message":{
      "title":"Message",
      "type":"string"
     }
    },
    "required":[
     "message",
     "errors"
    ],
    "title":"ErrorBody",
    "type":"object"
   },
   "ErrorResponse":{
    "description":"The body of every error response, at every status code.",
    "properties":{
     "detail":{
      "$ref":"#/components/schemas/ErrorBody"
     }
    },
    "required":[
     "detail"
    ],
    "title":"ErrorResponse",
    "type":"object"
   }
  }
 }
}
```
