---
title: "Poll next task for an agent"
method: GET
path: "/api/tasks/queue"
tags: ["Tasks"]
---

# Poll next task for an agent

`GET /api/tasks/queue`

## Query parameters

- `agent` string
- `max_capacity` integer

## Headers

- `x-agent-name` string

## Response `200`

Queue poll result

- object
  - `task` Task
    - `id` integer
    - `title` string
    - `description` string
    - `status` 'inbox' | 'assigned' | 'in_progress' | 'quality_review' | 'done'
    - `priority` 'critical' | 'high' | 'medium' | 'low'
    - `assigned_to` string
    - `created_by` string
    - `due_date` string
    - `estimated_hours` number
    - `tags` string[]
    - `metadata` object
    - `created_at` integer
    - `updated_at` integer
  - `reason` 'continue_current' | 'assigned' | 'at_capacity' | 'no_tasks_available'
  - `agent` string
  - `timestamp` integer

## Other responses

- `400` — Invalid request
- `401` — Authentication required
- `403` — Insufficient permissions

## Changes

- **2026-03-05** `d64540e33e0b` — 1 info
  - endpoint added
- **2026-03-05** `85f20514903e` — 1 breaking
  - api path removed without deprecation
- **2026-03-05** `ece96cd296e5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/builderz-labs/apis/mission-control-api/changes/api/tasks/queue/get.md)

---

[API](https://skmtc.dev/builderz-labs/apis/mission-control-api.md) · [All operations](https://skmtc.dev/builderz-labs/apis/mission-control-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/builderz-labs/mission-control-api/revisions/751f6c65ac77/schema)
