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

# Create Workflow

> Create a new workflow. Only minimal metadata is set at creation time — `name`, `type`, optional `folderId`, `description`, `environmentId`, and `config.language`. To set HTTP fields (method, url, headers, scripts, authentication) or VOICE fields (phoneNumber, dialCode, countryCode), follow up with `PUT /v1/workflows`.



## OpenAPI

````yaml /public-apis/openapi/workflows.json post /v1/workflows
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - workflows
  description: API documentation for Maxim SDK workflows endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/workflows:
    post:
      tags:
        - Workflow
      summary: Create Workflow
      description: >-
        Create a new workflow. Only minimal metadata is set at creation time —
        `name`, `type`, optional `folderId`, `description`, `environmentId`, and
        `config.language`. To set HTTP fields (method, url, headers, scripts,
        authentication) or VOICE fields (phoneNumber, dialCode, countryCode),
        follow up with `PUT /v1/workflows`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceId:
                  type: string
                  minLength: 1
                  description: Unique identifier for the workspace
                name:
                  type: string
                  minLength: 1
                  description: Name of the workflow
                type:
                  type: string
                  enum:
                    - HTTP
                    - VOICE
                  description: Type of workflow (HTTP or VOICE)
                folderId:
                  type: string
                  description: Unique identifier for the folder
                description:
                  type: string
                  description: Description of the workflow
                environmentId:
                  type: string
                  description: Default environment identifier for the workflow
                config:
                  type: object
                  properties:
                    language:
                      type: string
                      description: Script language for the workflow
                  description: Optional workflow configuration overrides
              required:
                - workspaceId
                - name
                - type
      responses:
        '200':
          description: Workflow created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Workflow'
                required:
                  - data
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Workflow:
      type: object
      properties:
        id:
          type: string
        workspaceId:
          type: string
        accountId:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - HTTP
            - VOICE
        folderId:
          type: string
        config:
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - workspaceId
        - accountId
        - name
        - type
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````