Agent

Invoke

POST
Invoke an agent

Path parameters

agent_idstringRequired

Request

This endpoint expects an object.
input
stringRequired
enableStreaming
booleanRequired
sessionId
stringOptional
outputSchema
stringOptional
llm_params
objectOptional

Response

This endpoint returns an object
success
boolean
data
anyOptional
POST
1curl -X POST https://api.beta.superagent.sh/api/v1/agents/agent_id/invoke \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "input": "input",
6 "enableStreaming": true
7}'
200Successful
1{
2 "success": true,
3 "data": {
4 "key": "value"
5 }
6}