Create trace
Store a production agent turn and its conversation history for later review
Authorizations
API key for authentication
Body
ID of the agent that produced the turn. Must be an agent in your workspace
1 - 36What the agent was given for this turn. For a general agent, the standalone prompt as a string. For a conversation agent, the history up to the reported output, oldest turn first, in OpenAI chat format
1 - 50000What the agent produced for this turn
Your own ID for the last user message in input, stored for reference only. Omit if you have none
1 - 255Your own ID for the conversation this turn belongs to, stored for reference only. Omit if you have none
1 - 255Key-value pairs stored with the trace. Prefer OTel gen_ai.* key names where they fit. Omit if you have none
100Response
Successful Response
Unique ID for the trace
36"f47ac10b-58cc-4372-a567-0e02b2c3d479"
When the trace was created (ISO 8601 UTC)
The message ID you sent, if any
The conversation ID you sent, if any