Getting Started
Create a browser session and automate it in under a minute.
2. Get Your API Key
Go to Settings to generate your API key. Include it in every request:
x-api-key: YOUR_API_KEY3. Create a Session
A session provisions a dedicated cloud browser. You can optionally provide an initialPrompt to navigate or act immediately.
curl -X POST https://api.thinkrun.ai/api/sessions \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"initialPrompt": "Go to https://example.com"}'4. Control the Browser
Use the REST API to navigate, click, type, extract data, and more.
# Navigate to a page
curl -X POST https://api.thinkrun.ai/api/sessions/SESSION_ID/navigate \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
# Take a screenshot
curl -X POST https://api.thinkrun.ai/api/sessions/SESSION_ID/screenshot \
-H "x-api-key: YOUR_API_KEY"5. Clean Up
Terminate the session when done to free resources.
curl -X DELETE https://api.thinkrun.ai/api/sessions/SESSION_ID \ -H "x-api-key: YOUR_API_KEY"