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

# Lyzr Agent Session History

> Retrieves the historical conversation transcript for a specified session ID.



## OpenAPI

````yaml get /sessions/{session_id}/history
openapi: 3.0.3
info:
  title: Lyzr Agent Session History
  version: 1.0.0
  description: >-
    API endpoint to retrieve the full conversation history for a specified
    session ID.
servers:
  - url: https://agent-dev.test.studio.lyzr.ai/v1
security: []
paths:
  /sessions/{session_id}/history:
    get:
      summary: Get Session History Endpoint
      description: >-
        Retrieves the historical conversation transcript for a specified session
        ID.
      operationId: getSessionHistory
      parameters:
        - name: session_id
          in: path
          required: true
          description: The unique identifier of the session.
          schema:
            type: string
            example: '123324524'
        - name: unix
          in: query
          required: false
          description: >-
            If set to true, returns timestamps in Unix epoch format; otherwise,
            returns standard datetime strings.
          schema:
            type: boolean
            example: false
      responses:
        '200':
          description: Session history successfully retrieved.
          content:
            application/json:
              schema:
                type: object
                properties:
                  history:
                    type: array
                    description: The list of messages in the session history.
                    items:
                      type: object
                    example: []
        '422':
          description: Validation Error (e.g., incorrect parameter format).
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: array
                    items:
                      type: object
                      properties:
                        loc:
                          type: array
                          items:
                            oneOf:
                              - type: string
                              - type: integer
                        msg:
                          type: string
                        type:
                          type: string
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````