Create project

http
POST /projects

Create a project.

Request body

FieldTypeRequiredDescription
accountIdstring
namestringYesRequired project name. Creates an owned project. A project-scoped API key cannot create projects; use a user session or account-wide API key.
slugstringProject slug; generated when omitted.
descriptionstringProject description.
templateSlugstringStarter slug or accessible template project slug. Omit or use blank for an empty project.
templateProjectIdstringTemplate project UUID. Without a template, the project starts with no source files.
account_idstringDestination account UUID. Defaults to the signed-in user’s default account.

Responses

StatusDescription
201Project created.
400Invalid input
401Authentication required
403Project-scoped tokens cannot create projects
404Template project not found
409Project slug already exists
500Server error