cURL
curl --request POST \ --url https://api.nugen.in/api/v3/agents/run-agents/{agent_name}/run/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "message": "<string>" } '
{ "agent_id": "<string>", "model": "<string>", "response": "<string>", "usage": { "total_tokens": 123, "input_tokens": 123, "output_tokens": 123 } }
Execute an AI agent
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Name of the agent to execute
User message or prompt to send to the agent
Successful Response
Response model for agent execution endpoint
Agent identifier
Model used for execution
Agent response
Token usage information
Show child attributes
Was this page helpful?