http
POST /projectsCreate a project.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | ||
name | string | Yes | Required project name. Creates an owned project. A project-scoped API key cannot create projects; use a user session or account-wide API key. |
slug | string | Project slug; generated when omitted. | |
description | string | Project description. | |
templateSlug | string | Starter slug or accessible template project slug. Omit or use blank for an empty project. | |
templateProjectId | string | Template project UUID. Without a template, the project starts with no source files. | |
account_id | string | Destination account UUID. Defaults to the signed-in user’s default account. |
Responses
| Status | Description |
|---|---|
| 201 | Project created. |
| 400 | Invalid input |
| 401 | Authentication required |
| 403 | Project-scoped tokens cannot create projects |
| 404 | Template project not found |
| 409 | Project slug already exists |
| 500 | Server error |