> For the complete documentation index, see [llms.txt](https://spice.docs.medtroniclabs.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spice.docs.medtroniclabs.org/engineering/api-documentation/admin-services/lab-test-customization/lab-test-by-name.md).

# Lab Test  by Name

| **API URL**     | {{url}}/admin-service/lab-test-customization/get-by-unique-name |
| --------------- | --------------------------------------------------------------- |
| **Method**      | POST                                                            |
| **Description** | Get By Lab test Unique Name                                     |

#### **Sample Input** <a href="#labtestgetbyuniquename-v2-sampleinput" id="labtestgetbyuniquename-v2-sampleinput"></a>

| **Field Name**         | **Type** | **Mandatory** | **Example**                                                                                                                             |
| ---------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| name                   | String   | Yes           | Test name to validate                                                                                                                   |
| countryId              | Integer  | Yes           | Country id                                                                                                                              |
| Authorization (Header) | String   | Yes           | Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6 |
| client                 | String   | Yes           | web                                                                                                                                     |

```
{
    name: "Test One", 
    countryId: 1
}
```

#### **Sample Output** <a href="#labtestgetbyuniquename-v2-sampleoutput" id="labtestgetbyuniquename-v2-sampleoutput"></a>

| **Field Name** | **Type** | **Comments**              |
| -------------- | -------- | ------------------------- |
| message        | String   | Got LabTest with name     |
| status         | Boolean  | Labtest validation status |
| entity         | Boolean  | Entity List               |

```
{
  "message": "Got LabTest",
  "entity": true,
  "status": true,
  "entityList": null,
  "responseCode": 200,
  "totalCount": null
}
```
