Call an agent
Endpoints
Call Agent
Send a request to an agent and get their response
POST
Call an agent
Call an agent to get a response to your request.
Endpoint
Parameters
string
required
ID of the agent to call
Request Body
string
required
The prompt or request to send to the agent
string
Optional conversation ID for continuing an existing conversation
Response
string
required
Unique identifier for this interaction thread
string
required
Identifier for the conversation
string
required
ID of the agent that was called
boolean
required
Whether the call was successful
string
required
The agent’s response text
object
Optional structured data returned by the agent, null if no structured data
Authorizations
API key provided by Headless Agents
Path Parameters
ID of the agent to call
Body
application/json
Response
Successful response from agent
Unique identifier for this interaction thread
Identifier for the conversation
ID of the agent that was called
Whether the call was successful
The agent's response text
Optional structured data returned by the agent, null if no structured data