# Content-Type returned by API

**URL:** <https://discuss.circleci.com/t/content-type-returned-by-api/15029>\
**Category:** Bug Reports\
**Tags:** api\
**Created:** [August 2, 2017, 1:41pm UTC](https://discuss.circleci.com/t/content-type-returned-by-api/15029 "2017-08-02T13:41:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmgawel](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/dmgawel/32/16725_2.png) [@dmgawel](https://discuss.circleci.com/u/dmgawel)\
**Post date:** [August 2, 2017, 1:41pm UTC](https://discuss.circleci.com/t/content-type-returned-by-api/15029/1 "2017-08-02T13:41:27Z")

</div>

Hi!

CircleCI API v1.1 seems to be setting `Content-Type: text/plain; charset=utf-8` in it’s responses. This may lead to undesirable effects as some tools rely on returned Content Type when parsing reponse without ability to force it manually (i.e. Ansible uri module ). I think that setting Content-Type to `application/json` would make more sense and would make consuming API more straightforward 🙂

Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:34am UTC](https://discuss.circleci.com/t/content-type-returned-by-api/15029/2 "2018-06-18T11:34:56Z")

</div>


