---
title: "Retrieve the leak detection result on a work order"
method: GET
path: "/workorders/{workOrderId}/leakWasDetected"
tags: ["WorkOrders"]
---

# Retrieve the leak detection result on a work order

`GET /workorders/{workOrderId}/leakWasDetected`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/workorders/{workOrderId}/leakWasDetected`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/workorders/:workOrderId/leakWasDetected/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the information about the leak detected on the specified work order. This answer is saved when the user answers the question “Did you find a leak?” while entering a leak inspection on a refrigerated work order.
            <br />***Note***: The *RTMultiLeakFlow* feature flag should be enabled.
            <br />The possible values in the response are the following:
             • `true`: The user detected a refrigerant leak and set the answer to "Yes".
             • `false`: The user didn’t detect any refrigerant leak and set the answer to "No".
             • `null`: There is no information about the detected leak. The *RTMultiLeakFlow* feature is not turned on, or the specified work order is not of refrigerant type. 
            <br />Learn from ServiceChannel University how providers can enter a leak inspection in the [SC Provider app](https://servicechannel.atlassian.net/wiki/spaces/SCUCP/pages/657358869/Using+SC+Provider+Mobile+with+Refrigerant+Tracking+Management) and in [ProviderAutomation](https://servicechannel.atlassian.net/wiki/spaces/SCUCP/pages/3349938197/Entering+a+Leak+Inspection). 
            <br />Once you try out this method, you can use the `leakWasDetected` value as an input parameter for updating the leak inspection information in the [PUT /workorders/{workOrderId}/UpdateWorkOrderLeakInspectionInfo](https://developer.servicechannel.com/swagger/index.html#/WorkOrders/PUTv3_workorders_%7BworkOrderId%7D_UpdateWorkOrderLeakInspectionInfo%3FrefrigerantWasUsed%3D%7BrefrigerantWasUsed%7D%26leakWasDetected%3D%7BleakWasDetected%7D) method.

## Path parameters

- `workOrderId` integer, required

## Response `200`

The leak detection result on the specified work order is in the response.

- boolean

## Other responses

- `400`: The request was not accepted due to bad syntax, missing parameters, insufficient data, etc.<br/><br/>Error codes:<br/>502 — Work order is not found
- `401`: The requested resource requires authentication.<br/><br/>Error codes:<br/>504 — API call rejected by security permissions
- `404`: The requested resource does not exist on the server.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
