# 400 error on basic API calls?

**URL:** <https://community.dreamfactory.com/t/400-error-on-basic-api-calls/653>\
**Category:** REST API\
**Created:** [December 14, 2014, 7:00pm UTC](https://community.dreamfactory.com/t/400-error-on-basic-api-calls/653 "2014-12-14T19:00:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kostasv](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kostasv](https://community.dreamfactory.com/u/kostasv)\
**Post date:** [December 14, 2014, 7:00pm UTC](https://community.dreamfactory.com/t/400-error-on-basic-api-calls/653/1 "2014-12-14T19:00:48Z")

</div>

Hello everyone,

I just installed Dreamfactory on my Mac to create an API to make data available from a PostgreSQL but with no luck.

localhost:8080/rest

{“service”:[{“name”:“Database”,“api\_name”:“db”},{“name”:“Email Service”,“api\_name”:“email”},{“name”:“Local File Storage”,“api\_name”:“files”},{“name”:“PostgreSQL”,“api\_name”:“pgdb”},{“name”:“Local Portal Service”,“api\_name”:“portal”}]}

but on both

[http://localhost:8080/rest/db](http://localhost:8080/rest/db)  
[http://localhost:8080/rest/pgdb](http://localhost:8080/rest/pgdb)

I get:

{“error”:[{“context”:null,“message”:“No application name header or parameter value in request.”,“code”:400}]}

Do I need to do anything? Did I miss something, happy to be pointed to a FAQ or Documentation if it is better outlined…

Thank you!

Kostas

---

<div class="post-metadata">

**Author:** ![babaggeii](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@babaggeii](https://community.dreamfactory.com/u/babaggeii)\
**Post date:** [December 15, 2014, 4:38pm UTC](https://community.dreamfactory.com/t/400-error-on-basic-api-calls/653/2 "2014-12-15T16:38:22Z")

</div>

Hi, I think I can help you here. You need the header `X-DreamFactory-Application-Name` with the value of the name of your app. This should go in all requests to your api.

---

<div class="post-metadata">

**Author:** ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)\
**Post date:** [December 16, 2014, 7:05pm UTC](https://community.dreamfactory.com/t/400-error-on-basic-api-calls/653/3 "2014-12-16T19:05:13Z")

</div>

@babaggeii is correct: you receive the error `No application name header or parameter value in request.` because you are not supplying an application name in the API call.

Supplying your application name as an HTTP header `X-DreamFactory-Application-Name` value is one way to accomplish this. The other way is to use the URI parameter `?app_name=` in your call.

Please refer to this wiki page for further reading: [https://github.com/dreamfactorysoftware/dsp-core/wiki/Common-Headers-Parameters](https://github.com/dreamfactorysoftware/dsp-core/wiki/Common-Headers-Parameters)
