Excalidraw+ API

Create new scene

Create a new empty scene with specified metadata in a collection.

This endpoint creates a scene with:

  • Basic metadata (name, pinned status)
  • Assignment to a specific collection
  • Empty content (no drawing elements)
  • Default sharing settings

This endpoint only creates the scene structure and metadata. To add content (drawings, shapes, text), use the content endpoints after creation.

The scene will be created with default permissions based on your workspace settings. Sharing links can be created separately with PUT /scenes/:sceneId/link-sharing and PUT /scenes/:sceneId/shared-slides.

Use cases:

  • Creating scenes programmatically for templates
  • Bulk scene creation for projects
  • Integration with external project management tools
  • Automated scene setup for teams
POST
/api/v1/scenes

Authorization

apiKey
headerAuthorizationBearer <Bearer>

The API will use the Authorization: Bearer <your-key> header for requests.

Request Body

application/json
  1. body
name*string
Length1 <= length
pinned?boolean

Pin the scene in the collection. Default: false.

collectionId*string

Collection ID. Personal API keys may use 'private' for the key owner's virtual private collection. Workspace API keys cannot access private collections.

Length1 <= length

Response Body

This response returns the details of the newly created scene.

application/json
  1. response

This response returns the details of the newly created scene.

metadata*
readOnlyLinks*array<>
sharedSlidesLinks*array<>
Example Request
curl -X POST 'https://api.excalidraw.com/api/v1/scenes' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "collectionId": "string"
}'
Example Response
{
  "metadata": {
    "workspace": "string",
    "name": "string",
    "isUntitled": true,
    "created": "string",
    "updated": "string",
    "previewUrl": "string",
    "previewFilename": "string",
    "previewBackground": "string",
    "isDeleted": true,
    "isPrivate": true,
    "creator": "string",
    "updater": "string",
    "sceneVersion": "string",
    "contentEpoch": 0,
    "linkSharing": 0,
    "readComments": true,
    "writeComments": true,
    "allowCalls": true,
    "collection": "string",
    "updateCount": 0,
    "revisionCount": 0,
    "lastRevision": "string",
    "totalElements": 0,
    "deletedElements": 0,
    "pinned": true,
    "hasNonDeletedFrames": true,
    "isSlidesSharingEnabled": true,
    "isWelcomeScene": true,
    "id": "string"
  },
  "readOnlyLinks": [
    {
      "id": "string",
      "scene": "string",
      "workspace": "string",
      "created": "string",
      "updated": "string",
      "updatedBy": "string",
      "creator": "string",
      "preview": "string",
      "previewPath": "string",
      "type": "readonly",
      "status": "active",
      "name": "string",
      "data": {
        "showTitle": true,
        "showMenu": true,
        "darkMode": true,
        "disableInteraction": true,
        "showDarkModeToggle": true,
        "showFrameOutlines": true,
        "x": 0,
        "y": 0,
        "width": 0,
        "height": 0
      }
    }
  ],
  "sharedSlidesLinks": [
    {
      "id": "string",
      "scene": "string",
      "workspace": "string",
      "created": "string",
      "updated": "string",
      "updatedBy": "string",
      "creator": "string",
      "preview": "string",
      "previewPath": "string",
      "isActive": true,
      "type": "slides",
      "data": {
        "name": "string",
        "showSlideTitle": true,
        "animateSlides": true,
        "playAnimations": true,
        "disallowDownload": true,
        "autoPlaySlides": 0
      }
    }
  ]
}

Last updated on