POST
/
run
Run Agent
curl --request POST \
  --url https://api.webagent.cloud/run \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "prompt": "<string>",
  "model": "gpt-4.1",
  "provider": "openai",
  "webhook_url": "<string>",
  "json_schema": "<string>",
  "auth_context_id": "<string>",
  "timeout": 123
}'
{
  "history": [
    {
      "is_done": true,
      "success": true,
      "extracted_content": "<string>",
      "error": "<string>",
      "include_in_memory": true
    }
  ],
  "result": "<any>",
  "is_done": true,
  "is_successful": true,
  "status": "pending",
  "screenshots": "<any>"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

200
application/json

Successful Response

Represents the complete response from the agent.