Tasks API
The Tasks API allows you to manage tasks in the Bytebot agent system. It’s available athttp://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, usemultipart/form-data
:
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
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 code204 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 Code | Description |
---|---|
400 | Bad Request - Invalid parameters |
404 | Not Found - Resource does not exist |
500 | Internal Server Error - Server side error |