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

# Get session status

> Retrieves details of a specific session by its ID



## OpenAPI

````yaml GET /session/{session_id}
openapi: 3.0.0
info:
  title: Finic AI API
  version: 1.0.0
  description: API for running Finic AI agents
servers:
  - url: https://api.finic.ai
security: []
paths:
  /session/{session_id}:
    get:
      tags:
        - Sessions
      summary: Get Session Details
      description: Retrieves details of a specific session by its ID
      parameters:
        - in: path
          name: session_id
          required: true
          schema:
            type: string
          description: Unique identifier of the session
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
          description: Bearer token for authentication
      responses:
        '200':
          description: Session details retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier of the session
                  browser_id:
                    type: string
                    description: ID of the associated browser
                  agent_id:
                    type: string
                    description: ID of the associated agent
                  status:
                    type: string
                    enum:
                      - RUNNING
                      - SUCCESS
                      - FAILED
                    description: Current status of the session
                  created_at:
                    type: string
                    format: date-time
                    description: Timestamp when the session was created
                  max_retries:
                    type: integer
                    nullable: true
                    description: Maximum number of retries to attempt
                  input:
                    type: object
                    description: Input parameters for the automation
                  attempts:
                    type: array
                    items:
                      type: object
                      properties:
                        status:
                          type: string
                          enum:
                            - RUNNING
                            - SUCCESS
                            - FAILED
                        logs:
                          type: array
                          items:
                            type: string
                    description: List of execution attempts
        '401':
          description: Unauthorized - Invalid or missing authentication token
        '404':
          description: Session not found
        '500':
          description: Internal server error
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````