---
title: "Plan Workflow"
method: POST
path: "/api/workflows/plan"
tags: ["workflows-exec"]
---

# Plan Workflow

`POST /api/workflows/plan`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/workflows/plan`
- Auth: HTTP bearer

Create a tracked workflow from the agent's plan.

Uses the workflow interpreter (Sonnet) to decompose the agent's
described plan into specific atoms, then creates a WorkflowExecution
+ AgentTask for tracking.

## Request body

- WorkflowPlanRequest
  - `agent_id` string, uuid, required
  - `conversation_id` string, uuid, nullable
  - `title` string, required
  - `trigger` string
  - `context` object, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
