API Reference
Execute an AI agent
Runs an autonomous AI agent that can perform complex multi-step browser tasks.
POST
JavaScript
Documentation Index
Fetch the complete documentation index at: https://docs.stagehand.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Browserbase API key for authentication
Deprecated. Browserbase API keys are now project-scoped, so this header is no longer required.
Headers
Whether to stream the response via SSE
Available options:
true, false Example:
"true"
Path Parameters
Unique session identifier
Example:
"c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123"
Body
application/json
Previous
End a browser sessionTerminates the browser session and releases all associated resources.
Next
JavaScript

