# Getting a 400 error using HTTPS request activity

**URL:** <https://forum.uipath.com/t/getting-a-400-error-using-https-request-activity/746321>\
**Category:** Studio\
**Tags:** activities-panel, question, studio, webapi, activities\
**Created:** [June 7, 2024, 9:48pm UTC](https://forum.uipath.com/t/getting-a-400-error-using-https-request-activity/746321 "2024-06-07T21:48:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rruheen](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@rruheen](https://forum.uipath.com/u/rruheen)\
**Post date:** [June 7, 2024, 9:48pm UTC](https://forum.uipath.com/t/getting-a-400-error-using-https-request-activity/746321/1 "2024-06-07T21:48:48Z")

</div>

I have configured the HTTPS request with Content-Type=“application/json” and Authorization="Bearer + keyvar ". and body “{ ‘personalizations’: [ {  
‘to’: [{ ‘email’: ‘xyz’, ‘name’: ‘abc’}] }”

error: {  
“errors”: [  
{  
“message”: “Bad Request”,  
“field”: null,  
“help”: null  
}  
]  
}

The API call works through postman.

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [June 8, 2024, 3:37am UTC](https://forum.uipath.com/t/getting-a-400-error-using-https-request-activity/746321/2 "2024-06-08T03:37:38Z")

</div>

@rruheen

Welcome to the community

Did you happen to import the curl from postman into UiPath?

That way it would be recreated the same way

Aos instead of songle quotes try double quotes in body …you need to use `""` to escape the doublequote

Cheers
