POST
/
agent
/
executor
/
id
/
{id}
Execute Agent by ID
curl --request POST \
  --url https://{api-address}.org.machina.gg/agent/executor/id/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '{
  "agent-config": {
    "delay": true
  },
  "input": {},
  "context": {}
}'
{
  "execution_id": "67db5c012ae92018b93310a4",
  "status": "scheduled",
  "message": "Agent execution scheduled successfully",
  "result": {}
}

Authorizations

x-api-token
string
header
required

API key authentication

Path Parameters

id
string
required

Unique ID of the agent to execute

Body

application/json
agent-config
object

Configuration options for the execution

input
object

Input parameters for the agent execution

context
object

Additional context data for the agent execution

Response

Agent execution result or status

execution_id
string

Unique identifier for the execution

Example:

"67db5c012ae92018b93310a4"

status
enum<string>

Status of the execution

Available options:
scheduled,
completed,
failed
Example:

"scheduled"

message
string

Informational message about the execution

Example:

"Agent execution scheduled successfully"

result
object

The result of the agent execution (if immediate)