POST /api/mission-control/tasks Bearer

Create Mission Control Task

Create a new task in PocketPaw's Mission Control with title, description, priority, tags, and optional agent assignment. Tasks can be linked to Deep Work projects for orchestrated execution.

Overview

Creates a new task. Optionally link it to a Deep Work project and assign it to agents.

Request Body

title string

Task title.

description string

Full task description with acceptance criteria.

priority string

Priority: low, medium, high, or urgent.

tags array

List of categorization tags.

assignee_ids array

Agent IDs to assign the task to.

project_id string

Deep Work project to associate with.

Terminal window
curl -X POST http://localhost:8000/api/mission-control/tasks \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Implement user authentication",
"description": "Add JWT-based auth with login/register endpoints",
"priority": "high",
"tags": ["backend", "security"],
"assignee_ids": ["agent-uuid-1"]
}'
{
"task": {
"id": "task-uuid-2",
"title": "Implement user authentication",
"status": "assigned",
"priority": "high",
"assignee_ids": ["agent-uuid-1"],
"tags": ["backend", "security"],
"created_at": "2024-01-15T14:32:00Z"
}
}
Request
curl -X POST "http://localhost:8000/api/mission-control/tasks" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>"
const response = await fetch("http://localhost:8000/api/mission-control/tasks", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
},
});

const data = await response.json();
console.log(data);
import requests

response = requests.post(
    "http://localhost:8000/api/mission-control/tasks",
    headers={'Content-Type':'application/json','Authorization':'Bearer <token>'},
)

print(response.json())
package main

import (
    "fmt"
    "net/http"
    "io"
)

func main() {
    req, _ := http.NewRequest("POST", "http://localhost:8000/api/mission-control/tasks", nil)
    req.Header.Set("Content-Type", "application/json")
    req.Header.Set("Authorization", "Bearer <token>")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
Response
Send a request to see the response