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

# List workflows for an agent



## OpenAPI

````yaml get /api/workflows/{agent_name}
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/workflows/{agent_name}:
    get:
      tags:
        - Workflows
      summary: List workflows for an agent
      operationId: workflow_list
      parameters:
        - name: agent_name
          in: path
          required: true
          schema:
            type: string
            title: Agent Name
        - name: detailed
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Default false: summary only (id, name, description, audit). If
              true, include nodes/connections/inputs for every workflow.
            default: false
            title: Detailed
          description: >-
            Default false: summary only (id, name, description, audit). If true,
            include nodes/connections/inputs for every workflow.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/WorkflowListFullResponse'
                  - $ref: '#/components/schemas/WorkflowListSummaryResponse'
                title: Response Workflow List
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    WorkflowListFullResponse:
      properties:
        workflows:
          items:
            $ref: '#/components/schemas/WorkflowResponse'
          type: array
          title: Workflows
      type: object
      required:
        - workflows
      title: WorkflowListFullResponse
    WorkflowListSummaryResponse:
      properties:
        workflows:
          items:
            $ref: '#/components/schemas/WorkflowSummaryItem'
          type: array
          title: Workflows
      type: object
      required:
        - workflows
      title: WorkflowListSummaryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkflowResponse:
      properties:
        id:
          type: string
          title: Id
        agent_name:
          type: string
          title: Agent Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        nodes:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Nodes
        connections:
          additionalProperties: true
          type: object
          title: Connections
        inputs:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Inputs
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - agent_name
        - nodes
        - connections
      title: WorkflowResponse
    WorkflowSummaryItem:
      properties:
        id:
          type: string
          title: Id
        agent_name:
          type: string
          title: Agent Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - agent_name
      title: WorkflowSummaryItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````