POST
/
action
/
invoke_agent
curl --request POST \
  --url https://api-lr.agent.ai/v1/action/invoke_agent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "deepseek-r1",
  "input": "value"
}'
{
  "response": "<think>\n\n</think>\n\nAI agents are autonomous entities that use artificial intelligence to perceive their environment, make decisions, and take actions to achieve specific goals. They operate with varying levels of autonomy, ranging from simple rule-based systems to complex, adaptive, and learning-based models. AI agents can be deployed across diverse applications, including software applications, robotics, and IoT devices, to perform tasks such as data analysis, decision-making, and interaction with humans.",
  "status": 200
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/settings#credits)

Body

application/json
id
string
required

Enter the ID of the agent you want to invoke, such as 'agent_123' or 'data_processor'

input
string
required

Top-level key value pairs for inputs and their values.

Response

200 - application/json
API response
status
integer

HTTP status code of the action response

response
object

Response data from the action