TestProject Forum

Running job through API gives 200 OK even if the job fails

Hi Team,
When I run any job through the testproject API, it gives 200 OK status if the job execution starts. Though, if the job fails, I do not see any change in the response status. Is there any way through which we can check whether the job fails or not by monitoring the response status?

If it’s not, it would be a great feature and will be very helpful.

Thanks.

Hello @hrishika.gupta
You can use Returns specific agent state API call to get the status of your Agent.


“Executing” - execution starts.
https://api.testproject.io/docs/v2/#/Agents/Agents_GetAgentState