Run an agent with specified parameters.
cURL
curl --request POST \ --url https://api.simplex.sh/run_agent \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "agent_name": "<string>", "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "variables": { "key1": "value1", "key2": "value2" } }'
{ "succeeded": true, "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "agent_name": "<string>", "result": {} }
Simplex API Key
The name of the agent to run.
Session ID to use for the agent run.
JSON object containing variables to pass to the agent.
{ "key1": "value1", "key2": "value2" }
Run agent response
Whether the agent ran successfully.
The name of the agent that was run.
The session ID for the agent run.
The result of the agent run.
Was this page helpful?