# Validation API response

**URL:** <https://community.postman.com/t/validation-api-response/37445>\
**Category:** Help Hub\
**Created:** [July 21, 2022, 7:37pm UTC](https://community.postman.com/t/validation-api-response/37445 "2022-07-21T19:37:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sindhu-ivaturi](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@sindhu-ivaturi](https://community.postman.com/u/sindhu-ivaturi)\
**Post date:** [July 21, 2022, 7:37pm UTC](https://community.postman.com/t/validation-api-response/37445/1 "2022-07-21T19:37:44Z")

</div>

Hi,  
I am working on post request API, the response I am getting is in ‘text’. I don’t know how to validate that. I am attaching the screenshot of that response. Please someone help me in this

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/c/cdf4cc10ab377957ef64c4de2dbf95748b7c5ecc.png)

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [July 21, 2022, 8:26pm UTC](https://community.postman.com/t/validation-api-response/37445/2 "2022-07-21T20:26:45Z")

</div>

Hi @sindhu-ivaturi

I’m not 100% sure what you are trying to assert. But if it’s the text in the screenshot then you could try something like;

```auto
pm.test("Body is correct", function () {
    pm.response.to.have.body("Scenario Already Exists!");
});

```

---

<div class="post-metadata">

**Author:** ![sindhu-ivaturi](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@sindhu-ivaturi](https://community.postman.com/u/sindhu-ivaturi)\
**Post date:** [July 23, 2022, 4:28pm UTC](https://community.postman.com/t/validation-api-response/37445/3 "2022-07-23T16:28:40Z")

</div>

Thank you for providing solution to my problem
