> ## 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.

# Use a workflow template

> Creates a new workflow in your workspace from a template, the same as **Use template**. Send the same `requestKey` when retrying so a repeated request doesn't create a second copy (`replayed` is then true). Guests get 403 "Sign in to copy a template".




## OpenAPI

````yaml /openapi/automations.yaml post /templates/clone
openapi: 3.1.0
info:
  title: Connie Automations API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for automations. They authenticate with
    your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Workflows
    description: List, create, read, update and delete workflows.
  - name: Runs
    description: >-
      Start, retry and stop workflow runs, switch a workflow Live, and read run
      counts.
  - name: Triggers
    description: A workflow's triggers and its schedule settings.
  - name: Templates
    description: The template gallery and copying a template into a workspace.
  - name: Agents
    description: Agents on the Agents page.
paths:
  /templates/clone:
    post:
      tags:
        - Templates
      summary: Use a workflow template
      description: >
        Creates a new workflow in your workspace from a template, the same as
        **Use template**. Send the same `requestKey` when retrying so a repeated
        request doesn't create a second copy (`replayed` is then true). Guests
        get 403 "Sign in to copy a template".
      operationId: useWorkflowTemplate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - templateId
                - workspaceId
              properties:
                templateId:
                  type: string
                  format: uuid
                workspaceId:
                  type: string
                  format: uuid
                  description: The workspace to create the workflow in.
                name:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: Name for the new workflow. Defaults to the template's name.
                revision:
                  type: integer
                  description: >-
                    The template revision you previewed. If a gallery template
                    changed since, you get 409.
                requestKey:
                  type: string
                  maxLength: 200
                  description: Any unique string, reused on retries.
      responses:
        '200':
          description: The new workflow.
          content:
            application/json:
              schema:
                type: object
                properties:
                  workflowId:
                    type: string
                    format: uuid
                  name:
                    type: string
                  replayed:
                    type: boolean
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    BadRequest:
      description: The request is invalid (code `VALIDATION_ERROR`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: >-
        Not signed in (`UNAUTHORIZED`), or the session cookie has expired
        (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        You aren't a member of the workspace, or don't have the access this
        needs.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found, or not visible to you.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: >-
        The resource changed since you read it, or the request conflicts with
        its current state.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: >-
        Too many requests (`RATE_LIMIT_EXCEEDED`). Wait for the `Retry-After`
        header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
        details:
          description: Extra detail, for example the invalid fields.
      required:
        - error
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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