---
title: "Create project"
method: POST
path: "/v1/projects"
tags: ["Projects"]
---

# Create project

`POST /v1/projects`

## Request

- Base URL: `https://api.agentry.sh`
- URL: `https://api.agentry.sh/v1/projects`
- Auth: HTTP bearer

Requires a stable 8-500 character Idempotency-Key. Project state, owner membership, command receipt, and local success audit commit atomically. Exact retries return the same Agentry project and never provision or mutate PostHog.

## Headers

- `Idempotency-Key` string, required

## Request body

- CreateProjectRequest
  - `name` string, required
  - `repo_url` string
  - `default_branch` string
  - `local_path` string

## Response `200`

OK

- CreateProjectResponse
  - `command_id` string, required
  - `id` string, required
  - `name` string, required
  - `role` 'owner' | 'member', required
  - `deploys_url` string, required
  - `deploys_note` string, required
  - `idempotent_replay` boolean, required
  - `next_action` string, required

## Other responses

- `409`: The key was reused with changed evidence or its encrypted recovery material was superseded
- `default`: Error

---

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