---
title: "Enqueue Task"
method: POST
path: "/tasks/enqueue"
---

# Enqueue Task

`POST /tasks/enqueue`

## Request

- Base URL: `https://usemeridian.us` (the document declares no server; this is the origin it was published from)
- URL: `https://usemeridian.us/tasks/enqueue`
- Auth: none declared

Paid-tier: queue a Claude subprocess and return the pending task row.

Responds with 202 Accepted so clients can distinguish this from a
synchronous task creation. The worker runs in the background; poll
``GET /projects/{id}/tasks`` to see the result land.

ece2ac0a — this spawns a ``claude`` subprocess ON THE SERVER with a
caller-chosen prompt and the server's own environment. On the hosted
service that is operator-only (admin session + admin password); it was
previously open to anonymous callers. Self-hosted is unchanged.

## Request body

- EnqueueTask: Body for POST /tasks/enqueue (paid-tier). The prompt is handed to a Claude Code subprocess; the server returns a pending task row immediately and updates it when the worker exits.
  - `session_id` string, required
  - `project_id` string, required
  - `prompt` string, required
  - `timeout` number, nullable

## Response `202`

Successful Response

- Task: A task-log entry.
  - `id` string, required
  - `session_id` string, required
  - `project_id` string, required
  - `description` string, required
  - `status` 'pending' | 'in_progress' | 'done' | 'failed' | 'pending-hitl' | 'backlog' | 'future' | 'backburner' | 'skipped', required
  - `parent_task_id` string, nullable
  - `sprint_item_id` string, nullable
  - `claimed_by` string, nullable
  - `claimed_at` string, nullable
  - `created_at` string, required
  - `session_name` string, nullable
  - `human_id` string, nullable
  - `claimed_by_human_id` string, nullable
  - `claimed_by_session_name` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usemeridian/apis/meridian.md) · [All operations](https://skmtc.dev/usemeridian/apis/meridian/llms.txt) · [OpenAPI document](https://skmtc.dev/usemeridian/apis/meridian/revisions/f37a894bd374?raw)
