> ## Documentation Index
> Fetch the complete documentation index at: https://aspect.inc/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Canvas

> Create an empty canvas in a team



## OpenAPI

````yaml /api-reference/openapi.json post /canvases
openapi: 3.1.0
info:
  title: Aspect API
  description: Manage and search media in Aspect.
  version: 1.0.0
servers:
  - url: https://api.aspect.inc
security:
  - ApiKeyAuth: []
tags:
  - name: Users
  - name: API Keys
  - name: Workspaces
  - name: Teams
  - name: Directories
  - name: Assets
  - name: Attachments
  - name: Filesystem Items
  - name: Collections
  - name: Canvases
  - name: Comments
  - name: Search
  - name: Transcription
  - name: Metadata
  - name: Shares
  - name: Share Templates
  - name: Watermarks
paths:
  /canvases:
    post:
      tags:
        - Canvases
      summary: Create Canvas
      description: Create an empty canvas in a team
      operationId: create_canvas
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CanvasCreateRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CanvasResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CanvasCreateRequest:
      properties:
        team_id:
          type: string
          format: uuid
          title: Team Id
          description: Team ID
        name:
          type: string
          title: Name
          description: Name of the canvas
        parent_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Parent Id
          description: >-
            Directory to create the canvas in; defaults to the team's top-level
            directory
      type: object
      required:
        - team_id
        - name
      title: CanvasCreateRequest
      description: API request schema for creating a canvas
    CanvasResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Canvas ID
        name:
          type: string
          title: Name
          description: Canvas name
        created_by_user_id:
          type: string
          format: uuid
          title: Created By User Id
          description: User who created this canvas
        team_id:
          type: string
          format: uuid
          title: Team Id
          description: Team ID
        parent_id:
          type: string
          format: uuid
          title: Parent Id
          description: ID of the directory the canvas is in
        created:
          type: string
          format: date-time
          title: Created
          description: Creation timestamp
        updated:
          type: string
          format: date-time
          title: Updated
          description: Last update timestamp
      type: object
      required:
        - id
        - name
        - created_by_user_id
        - team_id
        - parent_id
        - created
        - updated
      title: CanvasResponse
      description: API response schema for a canvas
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.