Get a generation's transcript
Returns one generation's turn read back as an ordered sequence of steps: what it was asked, each model step with its tool calls and results, and how it ended.
The transcript is assembled at read time from the generation record and the trace's steps object; nothing is stored, so it cannot outlive the content it projects. Requires traces:GetTrace in addition to generations:GetGeneration, because the response merges content from both resources.
A generation whose content is unavailable — never written under zero-retention, or cleared by a purge — returns 200 with the skeleton rather than an error: input and output are null, steps is empty, and the content_redacted_* fields say which happened. content_redacted_by_principal_id is zero_retention when the content was never stored, and the purging principal's ID when it was erased later. A generation that is still running returns the same shape with an empty steps; status disambiguates the two.
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/generations/{generation_id}/transcript
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Path parameters
Public ID of the generation
Response
The generation's transcript
Example response
{
"generation_id": "gen_V1StGXR8Z5jdHi6B",
"trace_id": "trace_V1StGXR8Z5jdHi6B",
"status": "completed",
"stop_reason": "stop",
"step_count": 2,
"steps": [
{
"finish_reason": "tool-calls",
"tool_calls": [
{
"tool_name": "weather",
"args": {
"cityName": "Paris"
}
}
],
"tool_results": [
{
"tool_name": "weather",
"result": {
"tempC": 18
},
"error": {
"code": "AI_PROVIDER_ERROR",
"message": "Provider returned 402: insufficient credits"
}
}
]
}
],
"output": {
"content": "It's 18°C in Paris right now.",
"finish_reason": "stop"
},
"error": {
"code": "AI_PROVIDER_ERROR",
"message": "Provider returned 402: insufficient credits"
},
"content_redacted_by_principal_type": "user"
}Changes
No recorded changes to this operation across all 1 revision of this API.