cURL
curl --request POST \ --url https://api.lmnr.ai/v1/agent/run \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "<string>", "parentSpanContext": "<string>", "modelProvider": "anthropic", "model": "<string>", "stream": true, "enableThinking": true, "agentState": "<string>", "storageState": "<string>", "timeout": 123, "maxSteps": 123, "cdpUrl": "<string>", "thinkingTokenBudget": 123, "startUrl": "<string>", "returnScreenshots": true, "returnAgentState": true, "returnStorageState": true }'
{ "result": { "isDone": true, "content": "<string>", "error": "<string>", "giveControl": true }, "storageState": "<string>", "agentState": "<string>", "stepCount": 123 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Agent run result
The response is of type object.
object