remagicaDocs home
API referenceProjects

Create a project

POST
/projects

Needs a key withprojects:write

Starts a project (workflow) in a scope or folder, empty or from a template (templateId): personal ones are listed only for you.

Requires scope projects:write.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Request Body

application/json
  1. body
folderId?|

The folder to put it in; its scope wins over scope (a personal folder makes the project personal).

name?string

Its name; the template's title, or Untitled workflow, when left out.

Length1 <= length <= 200
scope?string

team: the workspace's projects and team folders. personal: the projects you made and your personal folders, which only you see. API keys act for the workspace: their personal is empty.

Default"team"
Value in"team""personal"
templateId?string

Start from this template (its slug): its canvas, with its example results as the project's first results.

Length1 <= length <= 80

Response Body

The new project.

application/json
  1. response
description*string
folderId*string|null
id*string
name*string
visibility*string

personal: only its creator lists it. team: the whole workspace. public: the workspace, and anyone with its share link can view it read-only and make a copy.

Value in"personal""team""public"
Example Request
curl -X POST 'https://api.remagica.com/api/v1/projects' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "description": "Product shots for the autumn campaign.",  "folderId": "899433f8-5b3d-4f60-8e2a-1d9c6b4f7e05",  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "name": "Autumn campaign",  "visibility": "personal"}