POST
https://api.lmnr.ai
/
v1
/
agent
/
run
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
}

Description

Run the Laminar agent with the given prompt. The response can be streamed or returned as a single response.

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Agent run result

The response is of type object.