Skip to main content
POST
Preview Agent Draft

Authorizations

X-API-Key
string
header
required

Path Parameters

agent_id
string
required

Body

application/json
question
string
required
Required string length: 1 - 16000
thread_id
string<uuid> | null
version
integer | null
Required range: x >= 0
retry
boolean
default:false

Response

200 - application/json

OK

outcome
enum<string>
required
Available options:
completed,
empty,
tool_only,
failed,
incomplete,
needs_input
object
string
default:agent_draft_preview
Allowed value: "agent_draft_preview"
response
string | null
tool_calls
Tool Calls · object[]
execution_time_ms
integer | null
error
string | null
error_code
string | null
thread_id
string | null
documents
Documents · object[] | null