Skip to main content
GET
Get a project's plan
Every project a spec creates gets a verified plan as soon as the spec completes, and pre.dev keeps it current as the project is built. Read it before you change a project built with pre.dev: it says what is built, what is proven to work, what is left, and where to look in the code. Pass exactly one of specId (from Fast Spec or Deep Spec) or projectId.
Add format=markdown to receive only the Markdown summary, ready to hand to a coding agent:
An organization key reads its organization’s projects; any other key reads only its own. Someone else’s ID returns 404, the same as an ID that does not exist.

What the plan says

A feature’s status comes from pre.dev’s checks: A spec that has just completed reads as all planned, with no appMap or lastRun until code exists. plan is null while a project has nothing planned or built yet. Keys appear by name only (for example, in a Ready to launch item that names a missing key), never their values. Spec status carries the same plan once a spec is completed, and the MCP server has a matching get_plan tool.

Errors

Each status has an example body in the response examples. See errors and retries.

Authorizations

Authorization
string
header
required

Your pre.dev workspace API key (pdk_...) from Integrations, Built-in tab: https://pre.dev/projects/integrations?tab=built-in

Query Parameters

specId
string

A specId from fast-spec or deep-spec.

Pattern: ^[a-fA-F0-9]{24}$
projectId
string

A pre.dev project ID.

Pattern: ^[a-fA-F0-9]{24}$
format
enum<string>
default:json

markdown returns the Markdown alone as text/markdown.

Available options:
json,
markdown

Response

The plan, or plan null while the project has none yet.

projectId
string
required
Pattern: ^[a-fA-F0-9]{24}$
specId
string | null
required
Pattern: ^[a-fA-F0-9]{24}$
plan
object | null
required

A project's verified plan: what it is for, each feature's status from pre.dev's checks, progress, Ready to launch, where things live in the code, and the last change.

markdown
string
required

The plan as Markdown for a coding agent.