POST
/
api
/
v3
/
agents
/
{agent_id}
/
run
/
curl --request POST \
  --url https://api.nugen.in/api/v3/agents/{agent_id}/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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

Unique identifier of the agent to execute

Body

application/json

Response

200
application/json

Successful Response

Response model for agent execution endpoint