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

# Create Canvas Template

> Create a Canvas Template.



## OpenAPI

````yaml /openapi.json post /canvas-templates
openapi: 3.0.0
info:
  title: Trust Stack API
  description: Programmatic access to the Trust Stack API.
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /canvas-templates:
    post:
      tags:
        - Canvas Template
      summary: Create Canvas Template
      description: Create a Canvas Template.
      operationId: createCanvasTemplate
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCanvasTemplate'
      responses:
        '200':
          description: The Canvas Template that was created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CanvasTemplate'
components:
  schemas:
    CreateCanvasTemplate:
      type: object
      properties:
        name:
          type: string
        template:
          type: string
        schema:
          type: object
        themeId:
          type: string
      required:
        - name
        - template
        - schema
    CanvasTemplate:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the canvas template
          example: 123e4567-e89b-12d3-a456-426614174000
        name:
          type: string
          description: The name of the template
          example: Welcome Email Template
        template:
          type: string
          description: The Handlebars template string
          example: <h1>Hello {{name}}!</h1>
        schema:
          type: object
          description: JSON schema defining the template variables
          example:
            type: object
            properties:
              name:
                type: string
        createdAt:
          format: date-time
          type: string
          description: When the template was created
          example: '2024-03-20T15:30:00.000Z'
        updatedAt:
          format: date-time
          type: string
          description: When the template was last updated
          example: '2024-03-20T15:30:00.000Z'
      required:
        - id
        - template
        - schema
        - createdAt
        - updatedAt

````