---
title: "Init Project"
method: POST
path: "/api/projects/init"
---

# Init Project

`POST /api/projects/init`

Initialize a new project at the start of the agent flow with 'scoping' status.

This endpoint creates the project record early in the flow, allowing assets
to be saved during the planning/augmentation phase.

Args:
    project_id: Client-generated project ID
    prompt: User's initial prompt
    session_id: Socket.IO session ID for workflow restoration
    current_user: Authenticated user
    db: Database session
    
Returns:
    CreateProjectResponse with project details

## Response `201`

Successful Response

- CreateProjectResponse — Response schema for project creation
  - `success` boolean
  - `projectId` string, required
  - `status` string
  - `message` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/latted/apis/motion-graphics-designer-api.md) · [All operations](https://skmtc.dev/latted/apis/motion-graphics-designer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/latted/motion-graphics-designer-api/revisions/36d149b525df/schema)
