---
title: "Create a project canvas with an initial mascot reference"
method: POST
path: "/v1/canvases"
tags: ["Canvases"]
---

# Create a project canvas with an initial mascot reference

`POST /v1/canvases`

## Request

- Base URL: `https://api.masko.ai`
- URL: `https://api.masko.ai/v1/canvases`
- Auth: HTTP bearer

Creates an empty draft canvas in a project, bound to a mascot you own or acquired from Marketplace. Send `project_id`, `mascot_id` and `name`; optional `variant_id` selects the appearance. Save the graph next with `PATCH /v1/canvases/{canvasId}`.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `project_id` string, uuid, required
  - `mascot_id` string, uuid, required
  - `name` string, required
  - `variant_id` string, uuid

## Response `201`

Successful response

- object
  - `data` object, required
    - `object` 'canvas', required
    - `id` string, uuid, required
    - `project_id` string, uuid, nullable, required
    - `mascot_id` string, uuid, nullable, required
    - `name` string, required
    - `graph` object, nullable, required
    - `graph_content_hash` string, required
    - `created_at` string, nullable, required
    - `updated_at` string, nullable, required

## Other responses

- `400`: Invalid input
- `401`: Authentication required
- `403`: Write key required
- `404`: Resource not found in credential workspace
- `409`: Revision conflict or retained history
- `422`: Required release media unavailable

---

[API](https://skmtc.dev/masko/apis/masko-api.md) · [All operations](https://skmtc.dev/masko/apis/masko-api/llms.txt) · [OpenAPI document](https://skmtc.dev/masko/apis/masko-api/revisions/91eb3006a92f?raw)
