Skip to main content
Sessionsession specific information
TestMu AI
StatusCommunityBlog
Session

session specific information

To fetch specified session details such as name, status,os,browser,version and all generated logs endpoint.

GET
/sessions/{session_id}
session specific information
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/sessions/{session_id}" \
--header "Authorization: Basic <encoded-value>"
{
"data": {
"test_id": "Z17EF-OPUKH-BDAE8-YEPXU",
"build_id": 1,
"name": "mytest",
"user_id": 250563,
"username": "bahubali",
"duration": 123,
"platform": "win10",
"browser": "chrome",
"browser_version": "71.0",
"device": "<string>",
"status_ind": "<string>",
"session_id": "bc02fd99593f14e37850745d66197f89",
"build_name": "my-build",
"create_timestamp": "2019-02-05 08:24:36",
"start_timestamp": "2019-02-05 08:24:58",
"end_timestamp": "2019-02-05 08:27:22",
"remark": "completed",
"console_logs_url": "https://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/console",
"network_logs_url": "https://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/network",
"command_logs_url": "http://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/command",
"selenium_logs_url": "http://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/selenium",
"screenshot_url": "https://s3.amazonaws.com/ml-screenshots/00HIR-IQNLL-SDVHV-KDTBM/video/index.m3u8",
"video_url": "https://d15x9hjibri3lt.cloudfront.net/00HIR-IQNLL-SDVHV-KDTBM/screenshots.zip",
"customData": {}
},
"message": "Retrieve session was successful",
"status": "success"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

session_idstringrequired

SESSION ID

Query Parameters

shareExpiryLimitstring

Days after which share link will get expired (3,7,10,30)

Response

application/json

successful operation

dataobject
data.test_idstring
Example: "Z17EF-OPUKH-BDAE8-YEPXU"
data.build_idnumber
Example: 1
data.namestring
Example: "mytest"
data.user_idnumber
Example: 250563
data.usernamestring
Example: "bahubali"
data.durationnumber
data.platformstring
Example: "win10"
data.browserstring
Example: "chrome"
data.browser_versionstring
Example: "71.0"
data.devicestring
Example: "<string>"
data.status_indstring
Example: "<string>"
data.session_idstring
Example: "bc02fd99593f14e37850745d66197f89"
data.build_namestring
Example: "my-build"
data.create_timestampstring
Example: "2019-02-05 08:24:36"
data.start_timestampstring
Example: "2019-02-05 08:24:58"
data.end_timestampstring
Example: "2019-02-05 08:27:22"
data.remarkstring
Example: "completed"
data.console_logs_urlstring
Example: "https://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/console"
data.network_logs_urlstring
Example: "https://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/network"
data.command_logs_urlstring
Example: "http://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/command"
data.selenium_logs_urlstring
Example: "http://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/selenium"
data.screenshot_urlstring
Example: "https://s3.amazonaws.com/ml-screenshots/00HIR-IQNLL-SDVHV-KDTBM/video/index.m3u8"
data.video_urlstring
Example: "https://d15x9hjibri3lt.cloudfront.net/00HIR-IQNLL-SDVHV-KDTBM/screenshots.zip"
data.customDataobject
messagestring
statusstring

pet status in the store

session specific information
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/sessions/{session_id}" \
--header "Authorization: Basic <encoded-value>"
{
"data": {
"test_id": "Z17EF-OPUKH-BDAE8-YEPXU",
"build_id": 1,
"name": "mytest",
"user_id": 250563,
"username": "bahubali",
"duration": 123,
"platform": "win10",
"browser": "chrome",
"browser_version": "71.0",
"device": "<string>",
"status_ind": "<string>",
"session_id": "bc02fd99593f14e37850745d66197f89",
"build_name": "my-build",
"create_timestamp": "2019-02-05 08:24:36",
"start_timestamp": "2019-02-05 08:24:58",
"end_timestamp": "2019-02-05 08:27:22",
"remark": "completed",
"console_logs_url": "https://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/console",
"network_logs_url": "https://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/network",
"command_logs_url": "http://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/command",
"selenium_logs_url": "http://api.lambdatest.com/automation/api/v1/sessions/bc02fd99593f14e37850745d66197f89/log/selenium",
"screenshot_url": "https://s3.amazonaws.com/ml-screenshots/00HIR-IQNLL-SDVHV-KDTBM/video/index.m3u8",
"video_url": "https://d15x9hjibri3lt.cloudfront.net/00HIR-IQNLL-SDVHV-KDTBM/screenshots.zip",
"customData": {}
},
"message": "Retrieve session was successful",
"status": "success"
}