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

# Get Workflow Assistant timeline

> Returns user messages, Assistant messages, and clarification questions from the latest Lighthouse/Shelly or Julie customer thread. Internal and operations lanes are never selectable.



## OpenAPI

````yaml get /v5/agent/workflows/{workflowId}/timeline
openapi: 3.0.3
info:
  title: Kadoa API
  version: 3.0.0
  contact:
    name: Support
    email: support@kadoa.com
servers:
  - url: https://api.kadoa.com
security: []
paths:
  /v5/agent/workflows/{workflowId}/timeline:
    get:
      tags:
        - Agent
      summary: Read customer-visible Assistant message history
      description: >-
        Returns user messages, Assistant messages, and clarification questions
        from the latest Lighthouse/Shelly or Julie customer thread. Internal and
        operations lanes are never selectable.
      operationId: v5AgentWorkflowAssistantTimeline
      parameters:
        - name: workflowId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: cursor
          in: query
          schema:
            type: string
          description: >-
            Opaque nextCursor from a previous response, used to read older
            messages.
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
      responses:
        '200':
          description: Customer-visible Assistant message history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssistantHistoryResponse'
        '400':
          description: Invalid workflow ID, limit, or cursor
        '403':
          description: Authenticated principal cannot read workflows
        '404':
          description: Workflow not found for the authenticated team
        '409':
          description: Workflow has no Assistant session or customer-facing thread
        '502':
          description: Assistant history storage is unavailable
components:
  schemas:
    AssistantHistoryResponse:
      type: object
      required:
        - data
        - status
      properties:
        data:
          type: object
          required:
            - workflowId
            - sessionId
            - items
            - pagination
          properties:
            workflowId:
              type: string
              format: uuid
            sessionId:
              type: string
              format: uuid
            items:
              type: array
              items:
                $ref: '#/components/schemas/AssistantHistoryItem'
            pagination:
              type: object
              required:
                - nextCursor
                - hasMore
              properties:
                nextCursor:
                  type: string
                  nullable: true
                hasMore:
                  type: boolean
        status:
          type: string
          enum:
            - success
    AssistantHistoryItem:
      oneOf:
        - $ref: '#/components/schemas/AssistantHistoryUserMessage'
        - $ref: '#/components/schemas/AssistantHistoryMessage'
        - $ref: '#/components/schemas/AssistantHistoryQuestion'
      discriminator:
        propertyName: kind
    AssistantHistoryUserMessage:
      type: object
      additionalProperties: false
      required:
        - id
        - time
        - kind
        - role
        - text
      properties:
        id:
          type: string
        time:
          type: string
          format: date-time
        kind:
          type: string
          enum:
            - user_message
        role:
          type: string
          enum:
            - user
        text:
          type: string
        authorId:
          type: string
    AssistantHistoryMessage:
      type: object
      additionalProperties: false
      required:
        - id
        - time
        - kind
        - role
        - text
      properties:
        id:
          type: string
        time:
          type: string
          format: date-time
        kind:
          type: string
          enum:
            - assistant_message
        role:
          type: string
          enum:
            - assistant
        text:
          type: string
        links:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
              - url
            properties:
              url:
                type: string
                format: uri
    AssistantHistoryQuestion:
      type: object
      additionalProperties: false
      required:
        - id
        - time
        - kind
        - questionId
        - questions
        - answers
        - status
      properties:
        id:
          type: string
        time:
          type: string
          format: date-time
        kind:
          type: string
          enum:
            - question
        questionId:
          type: string
        questions:
          type: array
          items:
            $ref: '#/components/schemas/AssistantQuestion'
        answers:
          type: object
          nullable: true
          additionalProperties: true
        status:
          type: string
          enum:
            - answered
            - unanswered
    AssistantQuestion:
      type: object
      additionalProperties: true
      required:
        - question
        - header
        - options
        - answerType
      properties:
        question:
          type: string
        header:
          type: string
        options:
          type: array
          items:
            type: object
            required:
              - label
              - description
            properties:
              label:
                type: string
              description:
                type: string
        answerType:
          type: string
          enum:
            - single
            - multi
            - freeform
        metadata:
          type: object
          additionalProperties: true

````