# Can't create deal using Deals API

**URL:** <https://community.hubspot.com/t/cant-create-deal-using-deals-api/11413>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [October 22, 2018, 9:50pm UTC](https://community.hubspot.com/t/cant-create-deal-using-deals-api/11413 "2018-10-22T21:50:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [October 23, 2018, 7:04pm UTC](https://community.hubspot.com/t/cant-create-deal-using-deals-api/11413/6 "2018-10-23T19:04:27Z")

</div>

Hi [@Alexandre\_Leduc](https://community.hubspot.com/u/alexandre_leduc),

Are you including the `content-type` header? I wonder if you’re erroneously getting a `200` response due to this behavior:

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/0/102ea28e92c9be565c9b7d3a70c8f9a86d671e18.png) [Deal creation API - response is 200, but the deal is not created](https://integrate.hubspot.com/t/deal-creation-api-response-is-200-but-the-deal-is-not-created/9157/5) [Deals](https://community.hubspot.com/c/deals)

> Yes, the only difference between a working request and a failing request was the content-type header. Requests to Contacts API work fine also without the content-type header. For example the following works fine: r1 = requests.post(‘[https://api.hubapi.com/contacts/v1/contact/?hapikey=](https://api.hubapi.com/contacts/v1/contact/?hapikey=)’ + apiKey, data=json.dumps(contact)) Bests

---

_[View the full topic](https://community.hubspot.com/t/cant-create-deal-using-deals-api/11413)._
