Complete API reference for the Browserable JavaScript SDK
apiKey (required): Your Browserable API keybaseURL (optional): Override the default API base URLtask: Natural language description of what you want to automateagent: Agent (defaults to 'BROWSER_AGENT')taskId (required): The ID of the task to monitorrunId (optional): The specific run ID to monitor. If not provided, monitors the most recent runoptions (optional): Configuration options for the wait operation
pollInterval: Time in milliseconds between status checks (default: 1000ms)timeout: Maximum time to wait in milliseconds (default: 5 minutes)onStatusChange: Callback function for status updatestaskId (required): The ID of the taskrunId (optional): The specific run ID to get the GIF for. If not provided, returns the GIF status for the most recent runpending: GIF is being generatedcompleted: GIF is ready and can be accessed via the url fielderror: GIF generation failed, check the error field for detailsApiResponse object: