Get Your API Key
- Sign up at webrun.ai
- Navigate to Settings → API Keys
- Click Create API Key and save it
Run Your First Task
The simplest approach: one API call that creates a session, runs your task, and auto-terminates.Multi-Task Sessions
For multiple tasks in sequence, create a persistent session: 1. Create the sessionterminateOnCompletion: true on your last task to auto-terminate the session.
Multi-task workflows guide
Polling for Results
When a task returnsstatus: "pending", poll the URL until completion.
Real-Time Updates with WebSocket
For live agent thoughts and action notifications, use WebSocket. This requires more setup but gives you sub-second visibility into task execution. WebSocket integration guideNext Steps
Multi-Task Workflows
Chain multiple tasks in a session
MCP Integration
Set up Claude Desktop integration
Video Streaming
Watch sessions execute in real-time
Cost Optimization
Reduce costs and improve efficiency
File Uploads
Upload files for the agent to use in sessions