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

# List IVR flows

> Sort keys: created_at, direction, name, updated_at. An unknown sort key is a 400.



## OpenAPI

````yaml /api-reference/openapi-public.json get /ivr-flows
openapi: 3.0.3
info:
  description: >-
    The API your own systems use: place and follow calls, have an AI agent call
    someone, run campaigns and get their results, keep contacts in step with
    your CRM, and receive signed webhooks. Authenticate with an integration key
    (Authorization: Bearer ft_...), used only from the IP addresses it allows.
  title: FireTone API
  version: 0.1.0
servers:
  - description: Your platform's API host
    url: https://{host}/api/v1
    variables:
      host:
        default: api.firet.one
security:
  - bearerAuth: []
tags:
  - name: Auth
  - description: >-
      Live calls and what can be done to them: hang up, hold, transfer, park,
      merge, monitor, whisper; the Desk's own call.
    name: Calls
  - description: 'Outbound campaigns: contacts, attempts, outcomes.'
    name: Campaigns
  - description: 'Customers: who called, what is known about them, and their memory.'
    name: Contacts
  - description: What was said on an AI call, and the review of it.
    name: Conversations
  - name: IVR
  - description: >-
      Your own systems: HTTP connections an IVR calls mid-call, and webhooks for
      call events. Tenant URLs must be public https addresses.
    name: Integrations
  - name: Live
  - name: Provisioning
  - name: Reporting
  - description: Tickets raised by people, agents and the API.
    name: Tickets
  - description: Messages left for an extension or a queue.
    name: Voicemail
paths:
  /ivr-flows:
    get:
      tags:
        - IVR
      summary: List IVR flows
      description: >-
        Sort keys: created_at, direction, name, updated_at. An unknown sort key
        is a 400.
      operationId: getIvrFlows
      parameters:
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/offset'
        - $ref: '#/components/parameters/organisationId'
        - $ref: '#/components/parameters/sort'
        - $ref: '#/components/parameters/order'
        - $ref: '#/components/parameters/q'
        - $ref: '#/components/parameters/filterTeamId'
        - in: query
          name: direction
          schema:
            enum:
              - inbound
              - outbound
            type: string
        - description: >-
            Flows a campaign of this kind may use. Matches flows marked for the
            kind AND flows marked for neither, because an unmarked flow suits
            both -- filtering it out would hide exactly the flows that work
            everywhere.
          in: query
          name: campaign_kind
          schema:
            enum:
              - voice_broadcast
              - auto_dial
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IVRFlowPage'
          description: OK
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  parameters:
    limit:
      in: query
      name: limit
      schema:
        default: 50
        maximum: 500
        type: integer
    offset:
      in: query
      name: offset
      schema:
        default: 0
        type: integer
    organisationId:
      description: Narrow to one organisation. Outside your scope returns 403.
      in: query
      name: organisation_id
      schema:
        format: uuid
        type: string
    sort:
      description: >-
        Sort key. Each list accepts its own allow-list of keys, given in that
        endpoint's description; anything else is a 400. ORDER BY cannot be
        parameterised, so the key is looked up rather than interpolated. Every
        sort carries a tiebreak on the primary key, so paging stays disjoint
        when the sort column has duplicates.
      in: query
      name: sort
      schema:
        type: string
    order:
      description: >-
        Sort direction. Defaults to ascending, except the call log, which reads
        newest first.
      in: query
      name: order
      schema:
        enum:
          - asc
          - desc
        type: string
    q:
      description: >-
        Free-text search across the list's searchable columns (case-insensitive
        substring). % and _ in the term match themselves.
      in: query
      name: q
      schema:
        type: string
    filterTeamId:
      description: Filter on team.
      in: query
      name: team_id
      schema:
        format: uuid
        type: string
  schemas:
    IVRFlowPage:
      properties:
        items:
          items:
            $ref: '#/components/schemas/IVRFlow'
          type: array
        limit:
          type: integer
        offset:
          type: integer
        total:
          type: integer
      required:
        - items
        - total
        - limit
        - offset
      type: object
    IVRFlow:
      description: >-
        A call flow as a graph. `published_revision` is the revision answering
        calls; a flow with none takes no traffic. `draft_revision` is what the
        designer edits.
      properties:
        campaign_kind:
          description: >-
            Which campaign kind an outbound flow was drawn for. Null means it
            suits both, and is the only valid value on an inbound flow.
          enum:
            - voice_broadcast
            - auto_dial
          nullable: true
          type: string
        created_at:
          format: date-time
          type: string
        description:
          nullable: true
          type: string
        direction:
          description: >-
            Which way the call is going when this graph runs. An inbound flow
            answers a number; an outbound one runs after a campaign's contact
            picks up. A campaign will not accept an inbound flow.
          enum:
            - inbound
            - outbound
          type: string
        draft_revision:
          type: integer
        id:
          format: uuid
          type: string
        name:
          type: string
        organisation_id:
          format: uuid
          type: string
        published_revision:
          description: >-
            The revision currently answering calls. Null means the flow has
            never been published and must not receive traffic.
          nullable: true
          type: integer
        team_id:
          format: uuid
          nullable: true
          type: string
        test_caller:
          description: >-
            Who a test call tells the flow is calling, E.164 (read in the
            organisation's region when typed without +). Null for the tester's
            own extension.
          type: string
        test_number:
          description: >-
            3-8 digits any extension of the organisation dials to walk through
            this flow as a test. Never reachable from outside. Refused if it is
            an extension, a park slot (701-799) or another flow's test number.
            Null to remove.
          type: string
        test_revision:
          description: Which version a test call runs. Default draft.
          enum:
            - draft
            - published
          type: string
        updated_at:
          format: date-time
          type: string
      required:
        - id
        - organisation_id
        - name
        - direction
        - draft_revision
        - created_at
        - updated_at
      type: object
    Error:
      properties:
        error:
          properties:
            code:
              enum:
                - invalid_request
                - invalid_credentials
                - unauthenticated
                - forbidden
                - not_found
                - conflict
                - internal
              type: string
            message:
              type: string
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: The request is not valid. The message names every field that is wrong.
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Missing, invalid or expired token
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Outside the caller's scope, or insufficient role
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or API key
      description: >-
        Every request sends `Authorization: Bearer <token>`. The token is either
        a panel session (a JWT from /auth/login, 12 hours) or an API key
        `ft_<id>_<secret>`. An API key is accepted only from an address on its
        IP allowlist (403 ip_not_allowed otherwise; 403 ip_allowlist_required
        for an old key that has none), is limited to its rate per minute (429
        rate_limited with Retry-After; X-RateLimit-Limit/Remaining/Reset on
        every response), and at most 60 call placements a minute.
      scheme: bearer
      type: http

````

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