POST /api/projects
Create a new project. ForgeAI stores the initial prompt as the first message, then fires an Inngest event (code-agent/codeAgent.run) to kick off AI code generation asynchronously.
Request body
The prompt describing the web app you want to build. Minimum 3 characters, maximum 1000 characters.
URL of a design screenshot to use as a visual reference. Pro only — requires the
screenshot_upload feature flag. Omit this field if you do not have a Pro subscription.Response
Returns the newly created Project object.Unique project identifier (UUID).
Auto-generated project name in the format
Project-<timestamp>.Clerk user ID of the project owner.
E2B sandbox ID once the code-generation pipeline assigns one.
null until generation completes.The design screenshot URL, if one was provided.
ISO 8601 timestamp of when the project was created.
ISO 8601 timestamp of the last update.
Example
GET /api/projects
List all projects belonging to the authenticated user, ordered by most recently updated.Query parameters
None.Response
Returns an array of Project objects, ordered byupdatedAt descending.
Unique project identifier (UUID).
Project name.
Clerk user ID of the project owner.
E2B sandbox ID, or
null if generation has not yet completed.Design screenshot URL, or
null.ISO 8601 creation timestamp.
ISO 8601 last-updated timestamp.