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

# Create a flow

> Seeds a draft. Pass `definition` to set nodes/edges and `status: "active"` to start it.



## OpenAPI

````yaml /openapi.json post /api/public/flows
openapi: 3.1.0
info:
  title: Verbose API
  version: 1.0.0
  description: >-
    Programmatic access to the Verbose platform — contacts, lists, segments, SMS
    & voice campaigns, AI agents, messages and calls, numbers, registration,
    flows, analytics, and webhooks. All endpoints live under `/api/public` and
    authenticate with a workspace API key.
servers:
  - url: https://astrasend-mocha.vercel.app
    description: Production
security:
  - bearerAuth: []
tags:
  - name: General
    description: Key + workspace.
  - name: Contacts
    description: The people you reach.
  - name: Lists
    description: Static groups of contacts.
  - name: Segments
    description: Live, rule-based audiences.
  - name: Suppression
    description: Numbers to keep off your sends.
  - name: Campaigns
    description: SMS & voice campaigns.
  - name: Messages
    description: One-off SMS.
  - name: Calls
    description: One-off outbound voice calls.
  - name: Agents
    description: AI SMS & voice agents.
  - name: Conversations
    description: Inbox threads.
  - name: Numbers
    description: Phone numbers & pools.
  - name: Offers
    description: Destinations + conversion attribution.
  - name: Analytics
    description: Metrics & custom reports.
  - name: 10DLC
    description: US A2P brand + campaign registration.
  - name: Shortcode
    description: Short-code requests.
  - name: Flows
    description: Multi-step automations.
  - name: Webhooks
    description: Event subscriptions.
paths:
  /api/public/flows:
    post:
      tags:
        - Flows
      summary: Create a flow
      description: >-
        Seeds a draft. Pass `definition` to set nodes/edges and `status:
        "active"` to start it.
      operationId: createFlow
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                description:
                  type: string
                status:
                  type: string
                  enum:
                    - draft
                    - active
                    - paused
                    - archived
                definition:
                  $ref: '#/components/schemas/FlowDefinition'
      responses:
        '200':
          $ref: '#/components/responses/Ok'
components:
  schemas:
    FlowDefinition:
      type: object
      properties:
        nodes:
          type: array
          items:
            $ref: '#/components/schemas/FlowNode'
        edges:
          type: array
          items:
            $ref: '#/components/schemas/FlowEdge'
    FlowNode:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - trigger
            - send_sms
            - voice
            - wait
            - condition
            - switch
            - filter
            - set_field
            - add_tag
            - add_to_list
            - add_to_segment
            - integration
            - end
        position:
          type: object
          properties:
            x:
              type: number
            'y':
              type: number
        data:
          type: object
          additionalProperties: true
    FlowEdge:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
        target:
          type: string
        sourceHandle:
          type:
            - string
            - 'null'
  responses:
    Ok:
      description: Success
      content:
        application/json:
          schema:
            type: object
            properties:
              ok:
                type: boolean
                example: true
            additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your API key (`as_live_…`), created under Settings → API keys.

````