Do you guys have any API through which we can identify with what method the tests gets stopped?

Do you guys have any API through which we can identify with what method the tests gets stopped? (manually stopped by user or was stopped due to the capability max_duration)

Hi Macy Davis,

Yes, for the same you can use beow url command:

curl -X GET "https://api.lambdatest.com/automation/api/v1/sessions/7W4QG-KVSDY-HAR9D-BW7PD" -H "accept: application/json" -H "Authorization: Basic aGltYW5zaHVyOmVqb2xwa1htWGdFRTIyWmJJeXNhT1pKZ0owTFA0MVZVcFdBY1BUdmpsTXpXcm90b3pn"

Note: You just need to update you Test Id in above curl.