Skip to main content

Tasks API

The Tasks API allows you to manage tasks in the Bytebot agent system. It’s available at http://localhost:9991/tasks when running the full agent setup.

Task Model

Endpoints

Create Task

Create a new task for the agent to process.

POST /tasks

Create a new task

Request Body

With File Upload

To upload files with a task, use multipart/form-data:
Uploaded files are automatically saved to the desktop and can be referenced in the task description.

Response

Get All Tasks

Retrieve a list of all tasks.

GET /tasks

Get all tasks

Response

Get In-Progress Task

Retrieve the currently in-progress task, if any.

GET /tasks/in-progress

Get the currently in-progress task

Response

If no task is in progress, the response will be null.

Get Task by ID

Retrieve a specific task by its ID.

GET /tasks/:id

Get a task by ID

Response

Update Task

Update an existing task.

PATCH /tasks/:id

Update a task

Request Body

Response

Delete Task

Delete a task.

DELETE /tasks/:id

Delete a task

Response

Status code 204 No Content with an empty response body.

Message Content Structure

Messages in the Bytebot agent system use a content block structure compatible with Anthropic’s Claude API:

Error Responses

The API may return the following error responses:
Status CodeDescription
400Bad Request - Invalid parameters
404Not Found - Resource does not exist
500Internal Server Error - Server side error
Example error response:

Code Examples