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

# Get flow

> Get a specific flow.



## OpenAPI

````yaml /openapi.json get /v1/senders/{senderId}/agent/flows/{flowId}
openapi: 3.0.3
info:
  title: Zavu Unified Messaging Layer API
  version: 0.2.0
  description: >
    Unified multi-channel messaging API for Zavu.


    Supported channels:

    - **SMS**: Simple text messages

    - **WhatsApp**: Rich messaging with media, buttons, lists, CTA URL buttons,
    location requests, and templates

    - **Telegram**: Bot messaging with text, media, and interactive elements

    - **Email**: Transactional emails via Amazon SES


    Design goals:

    - Simple `send()` entrypoint for developers

    - Project-level authentication via Bearer token

    - Support for all WhatsApp message types (text, image, video, audio,
    document, sticker, location, contact, buttons, list, cta_url,
    location_request, reaction, template)

    - If a non-text message type is sent, WhatsApp channel is used automatically

    - 24-hour WhatsApp conversation window enforcement

    - Universal `to` field accepts phone numbers (E.164), email addresses, or
    numeric chat IDs (Telegram/Instagram/Messenger)
servers:
  - url: https://api.zavu.dev
security:
  - bearerAuth: []
paths:
  /v1/senders/{senderId}/agent/flows/{flowId}:
    get:
      tags:
        - Agent Flows
      summary: Get flow
      description: Get a specific flow.
      operationId: getAgentFlow
      parameters:
        - $ref: '#/components/parameters/SenderIdParam'
        - $ref: '#/components/parameters/FlowIdParam'
      responses:
        '200':
          description: Flow details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowResponse'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Flow not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  parameters:
    SenderIdParam:
      name: senderId
      in: path
      required: true
      schema:
        type: string
    FlowIdParam:
      name: flowId
      in: path
      required: true
      schema:
        type: string
  schemas:
    FlowResponse:
      type: object
      required:
        - flow
      properties:
        flow:
          $ref: '#/components/schemas/AgentFlow'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: invalid_request
        message:
          type: string
          example: Phone number is invalid
        details:
          type: object
          additionalProperties: true
    AgentFlow:
      type: object
      required:
        - id
        - agentId
        - name
        - trigger
        - steps
        - enabled
        - priority
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        agentId:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        trigger:
          $ref: '#/components/schemas/FlowTrigger'
        steps:
          type: array
          items:
            $ref: '#/components/schemas/FlowStep'
        enabled:
          type: boolean
        priority:
          type: integer
          description: Priority when multiple flows match (higher = more priority).
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    FlowTrigger:
      type: object
      required:
        - type
      properties:
        type:
          $ref: '#/components/schemas/FlowTriggerType'
        keywords:
          type: array
          items:
            type: string
          description: >-
            Words that start the flow, for `keyword` triggers. Matched as
            substrings, case-insensitively, against the whole message: a flow on
            `info` also starts on "no quiero info". Use `intent` when that
            matters.
        intent:
          type: string
          description: >-
            One plain sentence describing what the contact wants, for `intent`
            triggers. Any language.


            The message is judged for meaning, not for words, so "kiero saber el
            presio" starts a flow whose intent is "quiere saber precios o
            cotizar", and "no quiero info de precios" starts nothing.


            A `keyword` or `always` flow with a higher `priority` is matched
            first and wins. At most 12 intent flows are considered per message,
            highest priority first. When the classification is unavailable or
            uncertain, the message is handled as if no intent matched, so a flow
            never starts on a guess.
          example: quiere saber precios o cotizar
    FlowStep:
      type: object
      required:
        - id
        - type
        - config
      properties:
        id:
          type: string
          description: Unique step identifier.
        type:
          $ref: '#/components/schemas/FlowStepType'
        config:
          type: object
          description: Step configuration (varies by type).
          additionalProperties: true
        nextStepId:
          type: string
          description: ID of the next step to execute.
          nullable: true
    FlowTriggerType:
      type: string
      description: >-
        What starts a flow.


        - `keyword`: the message contains one of the words listed in `keywords`.
        Plain substring matching, so a word inside another word still counts.

        - `intent`: the message MEANS what `intent` describes, whatever words it
        uses.

        - `always`: any message starts it.

        - `manual`: reserved. Nothing starts a `manual` flow today — it is
        accepted and stored, and no message or endpoint runs it.
      enum:
        - keyword
        - intent
        - always
        - manual
    FlowStepType:
      type: string
      description: Type of flow step.
      enum:
        - message
        - collect
        - condition
        - tool
        - llm
        - transfer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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