Retrieves AI agent execution traces for a session, providing granular visibility into agent orchestration flows, LLM interactions, and tool invocations.
get/assistants/{assistantId}/sessions/{sessionId}/spans
Path parameters
assistantIdstring required
UUID or ARN of the Connect AI Assistant resource
sessionIdstring required
UUID or ARN of the Connect AI Session resource
Query parameters
nextTokenstring
Pagination token for retrieving the next page of results
maxResultsinteger
Maximum number of spans to return per page
Response
Success