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.
Documentation Index
Fetch the complete documentation index at: https://docs.retellai.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"
Unique id of the agent.
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"). 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 (or latest) is provided, resolution applies dynamic variables from the preferred tag for that resolved version (most recently assigned), if any.
x >= 01
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.
[
{
"role": "user",
"content": "Hi, I'd like to check my appointment."
},
{
"role": "agent",
"content": "Sure! Could you please provide your name?"
},
{
"role": "user",
"content": "My name is John Smith."
}
]Key-value pairs for dynamic variable substitution.
{
"customer_name": "John Smith",
"customer_phone": "444-223-3564"
}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"
Successfully generated playground completion.
New messages generated by the agent. Same shape as chat completion response messages. Does not include the input messages.
Current state name (retell-llm agents).
"greeting"
Current node id (conversation-flow agents).
"node_abc123"
Updated dynamic variables after this turn.
{ "customer_name": "John Doe" }Whether the agent ended the conversation.
false
Knowledge base chunks retrieved for this turn.
[
"Our business hours are Monday through Friday, 9am to 5pm."
]