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

# Create a template

> Creates a new template from an existing workflow, table, or row.
Requires owner, admin, or developer role.




## OpenAPI

````yaml /openapi/templates.yaml post /v2/templates
openapi: 3.1.0
info:
  title: Connie Templates API
  version: 1.0.0
  description: >
    API for managing, listing, and instantiating workflow, table, and row
    templates.

    Templates allow teams to share and reuse pre-built workflows and table
    structures

    across workspaces. Instantiating a template creates a new, independent copy
    with

    remapped IDs.
servers:
  - url: https://connie.ai/api
    description: Production
security:
  - cookieAuth: []
tags:
  - name: Templates
    description: List and manage templates
  - name: App Templates
    description: Pre-built application templates
  - name: Skill Templates
    description: AI skill templates
paths:
  /v2/templates:
    post:
      tags:
        - Templates
      summary: Create a template
      description: |
        Creates a new template from an existing workflow, table, or row.
        Requires owner, admin, or developer role.
      operationId: createTemplate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - type
                - source_id
                - name
              properties:
                type:
                  type: string
                  enum:
                    - workflow
                    - table
                    - row
                  description: Type of template to create
                source_id:
                  type: string
                  format: uuid
                  description: ID of the source workflow, table, or row to template
                name:
                  type: string
                  description: Display name for the template
                description:
                  type: string
                  description: Human-readable description of what the template does
                is_public:
                  type: boolean
                  default: false
                  description: Make this template available to all workspaces
      responses:
        '201':
          description: Template created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Template'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    Template:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - workflow
            - table
            - row
        is_public:
          type: boolean
        workspace_id:
          type: string
          format: uuid
          nullable: true
        created_by:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
  responses:
    Unauthorized:
      description: Not authenticated
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: session

````

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