> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ada.cx/_mcp/server.

# Data Export API: last_agent fields now reflect the most recent handler

The v2 Conversations endpoint now derives `last_agent_id` and `last_agent_name` from the Agent with the most recent activity timestamp, rather than the last Agent to join.

For conversations where an earlier-joining Agent re-enters and closes the conversation (for example, a transfer-back), these fields previously named the latest-joining Agent instead of the one who most recently handled it. The returned value now matches the Agent who most recently handled the conversation. The `agent_id` and `agent_name` arrays are unchanged.

See the [Conversation object reference](/data-export-conversation-object) for the full schema.