Skip to main content
POST
/
api
/
v1
/
sessions
Create a new session
curl --request POST \
  --url https://emereg.com/api/v1/sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": 5,
  "timeout": 60,
  "browser_settings": {
    "proxy": {
      "country": "sg"
    },
    "record_live": true
  }
}
'
{
  "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/803F10EB7C3970E4808993EDB1870FD2"
  },
  "timeout": 60,
  "started_at": "2024-08-14T05:47:21Z",
  "status": "STARTED",
  "created_at": "2024-08-14T13:47:16.368Z",
  "updated_at": "2024-08-14T13:47:21.682Z",
  "browser_id": "0787ef97-70d3-492a-a83a-f0408a21b115"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
project_id
integer

ID of the project associated with the session.

timeout
integer

Timeout duration for the session in seconds.

browser_settings
object

Response

201 - application/json

Successfully created the session.

project_id
integer

ID of the project associated with the session.

browser_settings
object
timeout
integer

Timeout duration for the session in seconds.

started_at
string<date-time>

Timestamp the session was started.

status
string

Current status of the session.

created_at
string<date-time>

Timestamp the session was created.

updated_at
string<date-time>

Timestamp the session was last updated.

browser_id
string

Unique identifier for the browser session.