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

# session



## OpenAPI

````yaml get /api/v1/sessions/{browser_id}
openapi: 3.0.0
info:
  title: Emereg (Open)
  description: API documentation for Emereg, specifically for Sessions management.
  version: 1.0.0
servers:
  - url: https://emereg.com
security:
  - bearerAuth: []
tags:
  - name: sessions
    description: Create and manage virtual browsers for user and agent collaboration.
paths:
  /api/v1/sessions/{browser_id}:
    get:
      tags:
        - sessions
      summary: Retrieve a session
      parameters:
        - name: browser_id
          in: path
          schema:
            type: string
          required: true
          description: Unique identifier for the browser session.
      responses:
        '200':
          description: Successfully retrieved the session details.
          content:
            application/json:
              schema:
                type: object
                properties:
                  project_id:
                    type: integer
                    description: ID of the project associated with the session.
                  browser_settings:
                    type: object
                    properties:
                      proxy:
                        type: object
                        properties:
                          country:
                            type: string
                            description: >-
                              Proxy country code in ISO 3166-1 alpha-2 format,
                              e.g., 'sg' for Singapore.
                      record_live:
                        type: boolean
                        description: >-
                          When enabled, takes a snapshot of the browser session
                          every second, resulting in increased storage.
                      live_url:
                        type: string
                        description: URL to access the live session.
                  timeout:
                    type: integer
                    description: Timeout duration for the session in seconds.
                  started_at:
                    type: string
                    format: date-time
                    description: Timestamp the session was started.
                  ended_at:
                    type: string
                    format: date-time
                    description: Timestamp the session was ended.
                  status:
                    type: string
                    description: Current status of the session.
                  created_at:
                    type: string
                    format: date-time
                    description: Timestamp the session was created.
                  updated_at:
                    type: string
                    format: date-time
                    description: Timestamp the session was last updated.
                  browser_id:
                    type: string
                    description: Unique identifier for the browser session.
                example:
                  project_id: 5
                  browser_settings:
                    proxy:
                      country: sg
                    record_live: true
                    live_url: >-
                      https://emereg.com/session/inspector.html?wss=browser.emereg.com/devtools/page/7FDF552596C3FCE19FF411F486FDD642
                  timeout: 60
                  started_at: '2024-08-14T06:08:12Z'
                  ended_at: '2024-08-14T06:08:53Z'
                  status: FINISHED
                  created_at: '2024-08-14T14:08:07.791Z'
                  updated_at: '2024-08-14T14:08:53.523Z'
                  browser_id: cbcf1d9b-a157-43c9-99e9-a07506c536a6
        '404':
          description: Session not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message indicating the resource was not found.
                example:
                  error: Not found
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````