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

# Get a session

> Retrieve detailed information about a specific session replay, including user info, pages visited, AI-generated tags, and a timeline overview.



## OpenAPI

````yaml GET /api/v1/sessions/{sessionId}
openapi: 3.0.3
info:
  title: Decipher API
  version: 1.0.0
  description: >-
    API for retrieving test run data from Decipher. Use your API key to
    authenticate requests.
servers:
  - url: https://api.getdecipher.com
    description: Production
security: []
paths:
  /api/v1/sessions/{sessionId}:
    get:
      summary: Get a session
      description: >-
        Retrieve detailed information about a specific session replay, including
        user info, pages visited, AI-generated tags, and a timeline overview.
      parameters:
        - schema:
            type: string
            format: uuid
            description: The UUID of the session
            example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
          required: true
          description: The UUID of the session
          name: sessionId
          in: path
      responses:
        '200':
          description: Session details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionResponse'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Session not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - bearerAuth: []
components:
  schemas:
    SessionResponse:
      type: object
      properties:
        object:
          type: string
          enum:
            - session
        id:
          type: string
          format: uuid
        url:
          type: string
          description: Decipher dashboard link for the session
        createdAt:
          type: string
        duration:
          type: number
          nullable: true
        userEmail:
          type: string
          nullable: true
        userId:
          type: string
          nullable: true
        userAccount:
          type: string
          nullable: true
        userUsername:
          type: string
          nullable: true
        userPlan:
          type: string
          nullable: true
        userRole:
          type: string
          nullable: true
        browser:
          type: string
          nullable: true
        device:
          type: string
          nullable: true
        countryCode:
          type: string
          nullable: true
        hasTimeline:
          type: boolean
        timelineOverview:
          type: string
          nullable: true
          description: AI-generated overview of the session
        tags:
          type: array
          items:
            type: string
          description: Matched behavior tags from AI analysis
        pagesVisited:
          type: array
          items:
            $ref: '#/components/schemas/PageVisited'
      required:
        - object
        - id
        - url
        - createdAt
        - duration
        - userEmail
        - userId
        - userAccount
        - userUsername
        - userPlan
        - userRole
        - browser
        - device
        - countryCode
        - hasTimeline
        - timelineOverview
        - tags
        - pagesVisited
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - authentication_error
                - authorization_error
                - not_found_error
                - validation_error
                - rate_limit_error
                - api_error
            code:
              type: string
            message:
              type: string
            field:
              type: string
          required:
            - type
            - code
            - message
      required:
        - error
    PageVisited:
      type: object
      properties:
        page:
          type: string
          description: URL or page identifier
        startTime:
          type: number
          description: Start time (epoch ms)
        endTime:
          type: number
          description: End time (epoch ms)
        clickCount:
          type: number
        featuresUsed:
          type: array
          items:
            type: string
      required:
        - page
        - startTime
        - endTime
        - clickCount
        - featuresUsed
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Use your Decipher API key as the bearer token.

````