---
title: "Create a task"
method: POST
path: "/api/v1/tasks"
tags: ["Tasks"]
---

# Create a task

`POST /api/v1/tasks`

## Request

- Base URL: `http://dobby-ai.com`
- URL: `http://dobby-ai.com/api/v1/tasks`
- Auth: HTTP bearer

Create a new task for an agent to execute

## Request body

- object
  - `title` string, required: Task title
  - `description` string: Detailed task description
  - `priority` 'low' | 'medium' | 'high': Task priority
  - `agent_id` string: ID of the agent to assign the task to

## Response `200`

Task created successfully

- object
  - `success` boolean
  - `task_id` string
  - `status` string

## Other responses

- `400`: Bad Request - Invalid parameters
- `401`: Unauthorized - Missing or invalid authentication
- `403`: Forbidden - Missing required scope
- `404`: Not Found - Resource does not exist
- `429`: Too Many Requests - Rate limit exceeded

---

[API](https://skmtc.dev/dobby-ai/apis/dobby-platform-api.md) · [All operations](https://skmtc.dev/dobby-ai/apis/dobby-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dobby-ai/apis/dobby-platform-api/revisions/398634f0306f?raw)
