> ## Documentation Index
> Fetch the complete documentation index at: https://docs.browser.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# BrowserAI API

The **BrowserAI** API enables developers to programmatically create, manage, and retrieve results from browser-based automation tasks powered by AI. This API is designed to help you automate web interactions, extract data, scrape, and run scripts in our cloud-based browser environment with customizable geographic targeting.

Whether you're building a data extraction pipeline, automating web testing, or integrating browser automation into your product, this API provides a secure and scalable interface to manage your automation workflows.

## Getting Started

1. [Obtain your API key](https://docs.browser.ai/api-reference/token) from the Projects Dashboard.
2. Create a **task** by sending a request to /tasks with your prompt and geo settings.
3. **Track** the task using the `session ID` returned.
4. **Fetch results** once the task is completed!

## Authentication

All endpoints are secured using an API key. You must include your API key in the Authorization header using the following format:

```javascript theme={null}
Authorization: apikey <API-KEY>
```

## Available Endpoints

| **Method**                                                             | **Endpoint**                    | **Description**                              |
| ---------------------------------------------------------------------- | ------------------------------- | -------------------------------------------- |
| [POST](https://docs.browser.ai/api-reference/endpoint/tasks)           | `/tasks`                        | Create a new task.                           |
| [POST](https://docs.browser.ai/api-reference/endpoint/forceStop)       | `/tasks/{session_id}/command`   | Force stop a task.                           |
| [GET](https://docs.browser.ai/api-reference/endpoint/taskMetadata)     | `/tasks/{session_id}`           | Get metadata, progress and status of a task. |
| [GET](https://docs.browser.ai/api-reference/endpoint/results)          | `/results/{session_id}`         | Retrieve the results of a task.              |
| [POST](https://docs.browser.ai/api-reference/endpoint/createSavedTask) | `/saved_tasks`                  | Create a saved task.                         |
| [GET](https://docs.browser.ai/api-reference/endpoint/getSavedTaskList) | `/saved_tasks`                  | Get list of saved tasks.                     |
| [GET](https://docs.browser.ai/api-reference/endpoint/getSavedTaskName) | `/saved_tasks/name/{task_name}` | Get a saved task by name.                    |
