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

# Create a Workflow from Template

> Use this endpoint to create a new workflow from a catalog template. The template parameters are validated against the template's JSON Schema. The new workflow is created in `draft` status.



## OpenAPI

````yaml /en/openapi/v3-current/flowker.yaml post /v1/workflows/from-template
openapi: 3.1.0
info:
  description: >-
    Complete API reference for Flowker workflow orchestration services including
    catalog management, workflow definitions, executor configurations, provider
    configurations, and workflow executions.
  title: Flowker API
  version: 1.1.0
servers:
  - url: https://flowker.sandbox.lerian.net
security:
  - ApiKeyAuth: []
tags:
  - name: Health API
    description: Health and version endpoints for monitoring the Flowker service.
  - name: Catalog API
    description: >-
      Browse built-in providers, executors, and triggers available in the
      Flowker catalog.
  - name: Workflows API
    description: >-
      Create, update, activate, deactivate, clone, and delete workflow
      definitions.
  - name: Executions API
    description: Start workflow executions and track their status and results.
  - name: Executor Configurations API
    description: >-
      Configure, test, and manage external executor connections used by workflow
      nodes.
  - name: Provider Configurations API
    description: Configure, test, enable, and disable provider integrations.
  - name: Dashboard API
    description: >-
      Retrieve aggregated summaries of workflows and executions for operational
      dashboards.
  - name: Audit API
    description: Query and verify audit events for compliance and operational visibility.
  - name: Webhooks API
    description: >-
      Receive webhook callbacks from external systems to trigger workflow
      executions.
paths:
  /v1/workflows/from-template:
    post:
      tags:
        - Workflows API
      summary: Create a Workflow from Template
      description: >-
        Use this endpoint to create a new workflow from a catalog template. The
        template parameters are validated against the template's JSON Schema.
        The new workflow is created in `draft` status.
      operationId: createWorkflowFromTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWorkflowFromTemplateInput'
        description: Request body containing the template ID and parameters.
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowCreateOutput'
          description: >-
            Indicates that the resource was successfully created and the
            operation was completed as expected.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Indicates that the request was malformed or contained invalid
            parameters.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Indicates that the requested resource could not be found.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Indicates that the request could not be completed due to a conflict
            with the current state of the resource.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Indicates an unexpected internal error. If this persists, please
            contact support.
components:
  schemas:
    CreateWorkflowFromTemplateInput:
      properties:
        templateId:
          description: Identifier of the catalog template to use.
          example: payment-validation
          type: string
        params:
          additionalProperties: true
          description: Template parameter values used to generate the workflow.
          example:
            executorId: a1b2c3d4-e5f6-4789-a012-345678901234
            currency: USD
          type: object
      required:
        - templateId
        - params
      type: object
    WorkflowCreateOutput:
      properties:
        createdAt:
          description: Timestamp when the workflow was created.
          example: '2026-03-17T14:30:00Z'
          format: date-time
          type: string
        status:
          description: Initial status of the workflow (always `draft` on creation).
          example: draft
          type: string
        version:
          description: Version of the workflow definition.
          example: 1.0.0
          type: string
        workflowId:
          description: Unique identifier of the created workflow.
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
          format: uuid
          type: string
      type: object
    ErrorResponse:
      properties:
        code:
          description: Machine-readable error code with the FLK prefix.
          example: FLK-0001
          type: string
        message:
          description: Human-readable explanation of the error.
          example: Invalid input provided
          type: string
        title:
          description: Short error category title.
          example: Bad Request
          type: string
      required:
        - code
        - message
        - title
      type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authenticating requests to the Flowker API. Provisioned via
        the API_KEY environment variable during deployment.

````