Agent Playground Completion
Stateless playground completion. Send the full conversation history (same shape as chat completion messages) and receive only the newly generated messages. Nothing is persisted server-side — the caller manages conversation state. Payment agents only support audio testing and cannot use this endpoint.
Authorizations
Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"
Path Parameters
Unique id of the agent.
Query Parameters
Agent version to use. Defaults to latest. Agent version reference. Supports a numeric version (for example 3) or a tag/environment name (for example "prod"). The string "latest" resolves to the most recently created version (the largest version number), and "latest_published" resolves to the most recently published version. When a tag is provided, resolution uses that exact tag assignment (including its dynamic variables). If the tag exists but is currently unassigned, it resolves to latest. When a numeric version, latest, or latest_published is provided, resolution applies dynamic variables from the preferred tag for that resolved version (most recently assigned), if any.
1 - 20^(latest|latest_published|(?!(?:latest|latest_published|v\d+)$)[a-z][a-z0-9_-]{0,19})$"latest_published"
Body
Full conversation history, same shape as chat completion messages. message_id and created_timestamp are optional — server generates them if omitted.
Same shape as chat completion messages. message_id and created_timestamp are optional — server generates them if omitted.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
Key-value pairs for dynamic variable substitution.
Optional mock responses for tools. When provided, the agent uses these instead of executing real tool calls.
Current state name for retell-llm agents. Used to resume from a specific state.
"greeting"
Current node id for conversation-flow agents. Used to resume from a specific node. Must be provided together with component_id when testing components.
"start-node-abc123"
Conversation flow component id. Required when current_node_id refers to a node within a component.
"component_xyz789"
Response
Successfully generated playground completion.
New messages generated by the agent. Same shape as chat completion response messages. Does not include the input messages.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
Current state name (retell-llm agents).
"greeting"
Current node id (conversation-flow agents).
"node_abc123"
Updated dynamic variables after this turn.
Whether the agent ended the conversation.
false
Knowledge base chunks retrieved for this turn.

