# Problem to access DreamFactory APIs from PostMan(Google Chrome Client)

**URL:** <https://community.dreamfactory.com/t/problem-to-access-dreamfactory-apis-from-postman-google-chrome-client/3719>\
**Category:** uncategorized\
**Tags:** community, rest\
**Created:** [March 17, 2017, 3:24pm UTC](https://community.dreamfactory.com/t/problem-to-access-dreamfactory-apis-from-postman-google-chrome-client/3719 "2017-03-17T15:24:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduardo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/eduardo/32/960_2.png) [@eduardo](https://community.dreamfactory.com/u/eduardo)\
**Post date:** [March 17, 2017, 3:24pm UTC](https://community.dreamfactory.com/t/problem-to-access-dreamfactory-apis-from-postman-google-chrome-client/3719/1 "2017-03-17T15:24:11Z")

</div>

Hi,

I’m trying to consume the DreamFactory server services, but still unsuccessful.

I followed several posts of similar problems and tutorials, but I continue with the problem.

I’ve created a service that sends email using my Google account. Inside the DF server (PHPAdmin), it works, but I want to test the service through PostMan and it shows the error 403 (Forbidden)

> [@Cannot Connect to Web Service from postman](https://community.dreamfactory.com/t/cannot-connect-to-web-service-from-postman/2746):
>
> Dear all I’m new on DreamFactory. I follow the instruction “How to Connect DreamFactory to a Remote Web Service” on youtube and I already have a API Key From Edmund, after that we put on Web service like on video. But we whe call using GET, always error like this : { “error”: { “context”: null, “message”: “Bad request. No token or api key provided.”, “code”: 400 } } When we user API Docs mysql : A MySQL database service the success { “resource”: [ { “id”: 1, “name”: “Heri”, …

> [@ERROR: Login request is missing required email](https://community.dreamfactory.com/t/error-login-request-is-missing-required-email/713):
>
> Hello, I am trying to Login using POSTMAN Client for Chrome browser and using AJAX from a JS script, i am getting the Login request is missing required email error. But Login works when i use the JS SDK. Screenshot of POSTMAN Client: [[image] ](https://dl.dropboxusercontent.com/s/fap7jijjwin6twk/post.PNG?dl=0)

> [@Guest user setup to access only the Database service](https://community.dreamfactory.com/t/guest-user-setup-to-access-only-the-database-service/1065):
>
> Hello, I am using the builtin local DB and I am trying to access a GET on https://my\_dsp/rest/db/my\_table from Postman as a guest(without any kind of authentication). I am getting "context": null, "message": "No application name header or parameter value in request.", "code": 400 Here is what i did as per the instruction Setup Schema and added data to the existing Database service which comes with the dsp Set up a role name and desc gave a GET service access(Database) to the role with Compo…

[https://wiki.dreamfactory.com/DreamFactory/API#API\_Key](https://wiki.dreamfactory.com/DreamFactory/API#API_Key)

> **[How to post JSON data in Postman -REST Client Chrome](https://www.iminfo.in/post/post-json-postman-rest-client-chrome)**
>
> Postman - Rest Client is a best google chrome app to test your REST API services but many of new user of postman are not aware how to post the JSON data in it, read more to know how to post JSON in postman.

Steps I’ve already taken:

1. Enabled CORS ![](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/1X/c9da8676fc58ec6fc178279287c036eadb06bb03.jpg)

2)Create an APP

 ![](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/1X/46217d66e09d199ce185af7674d063626c64c768.jpg)

1. Create a Role  

2. Create User and Confi Role  

3. Work fine in Server  

4. Problem in PostMan - Without Api Key  

5. Problem in PostMan - With Api Key

---

<div class="post-metadata">

**Author:** ![darrelv](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/darrelv/32/795_2.png) [@darrelv](https://community.dreamfactory.com/u/darrelv)\
**Post date:** [March 21, 2017, 1:18am UTC](https://community.dreamfactory.com/t/problem-to-access-dreamfactory-apis-from-postman-google-chrome-client/3719/2 "2017-03-21T01:18:54Z")

</div>

Eduardo,  
The API Key you appear to be using is for your SendMailGoogle application, but should be your API Key from the API\_Docs application that DreamFactory builds natively. Without it, the authentication fails when called from Postman.

---

<div class="post-metadata">

**Author:** ![gkeith](https://avatars.discourse-cdn.com/v4/letter/g/9f8e36/32.png) [@gkeith](https://community.dreamfactory.com/u/gkeith)\
**Post date:** [March 21, 2017, 1:25am UTC](https://community.dreamfactory.com/t/problem-to-access-dreamfactory-apis-from-postman-google-chrome-client/3719/3 "2017-03-21T01:25:48Z")

</div>

You may also need to pass a session token (as described in the last image you posted)

---

<div class="post-metadata">

**Author:** ![eduardo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/eduardo/32/960_2.png) [@eduardo](https://community.dreamfactory.com/u/eduardo)\
**Post date:** [March 21, 2017, 12:33pm UTC](https://community.dreamfactory.com/t/problem-to-access-dreamfactory-apis-from-postman-google-chrome-client/3719/4 "2017-03-21T12:33:05Z")

</div>

> [@darrelv](#):
>
> Eduardo, The API Key you appear to be using is for your SendMailGoogle application, but should be your API Key from the API\_Docs application that DreamFactory builds natively. Without it, the authentication fails when called from Postman.

darrelv, thank you por reply.

The only method I have in Api Docs is to search the description of services with Swagger. Where do I find the api\_key of api\_docs?

---

<div class="post-metadata">

**Author:** ![eduardo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/eduardo/32/960_2.png) [@eduardo](https://community.dreamfactory.com/u/eduardo)\
**Post date:** [March 21, 2017, 12:36pm UTC](https://community.dreamfactory.com/t/problem-to-access-dreamfactory-apis-from-postman-google-chrome-client/3719/5 "2017-03-21T12:36:05Z")

</div>

gkeith  
Yes, but for any service to function, i need acess DreamFactory Server from Postman.

Thank you

---

<div class="post-metadata">

**Author:** ![mattschaer](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/mattschaer/32/914_2.png) [@mattschaer](https://community.dreamfactory.com/u/mattschaer)\
**Post date:** [March 21, 2017, 12:49pm UTC](https://community.dreamfactory.com/t/problem-to-access-dreamfactory-apis-from-postman-google-chrome-client/3719/6 "2017-03-21T12:49:15Z")

</div>

@eduardo the API\_KEY can be found in Apps tab, all apps have an API\_KEY associated with them including admin app and API docs.

---

<div class="post-metadata">

**Author:** ![gkeith](https://avatars.discourse-cdn.com/v4/letter/g/9f8e36/32.png) [@gkeith](https://community.dreamfactory.com/u/gkeith)\
**Post date:** [March 21, 2017, 10:09pm UTC](https://community.dreamfactory.com/t/problem-to-access-dreamfactory-apis-from-postman-google-chrome-client/3719/7 "2017-03-21T22:09:32Z")

</div>

The reason you’re getting a 403 is because without the session token, you do not have permission to access the service (from your screenshots I am assuming you want the user to be logged in to do so). From your screenshots it looks like you are setting up the API key correctly (it should be the SendMailGoogle key, as this is the application you have assigned your user the liberado role in), but you need to authenticate the user by adding the session token. This is easily done in Postman by setting the X-DreamFactory-Session-Token header, as shown in your last screenshot (the same process as for the API key). To get the session token value, you can perform a login request and look for the session token in the information returned.

EDIT:

Sorry I didn’t look closely enough at your 7th screenshot, I see now that you can’t even get a session token.

The API Key should still be that of your application (SendMailGoogle). Assuming you have POST access as one of the 5 selected in the 3rd screenshot, it should work. You could try specifically adding POST access to the ‘session’ component of the ‘user’ service for the liberado role.

---

<div class="post-metadata">

**Author:** ![darrelv](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/darrelv/32/795_2.png) [@darrelv](https://community.dreamfactory.com/u/darrelv)\
**Post date:** [March 21, 2017, 10:26pm UTC](https://community.dreamfactory.com/t/problem-to-access-dreamfactory-apis-from-postman-google-chrome-client/3719/8 "2017-03-21T22:26:31Z")

</div>

Eduardo,  
The API Keys for all your applications, and for those provided by DF,  
can be found from the Apps menu item on the Admin Console.

 ![](https://canada1.discourse-cdn.com/flex035/uploads/dreamfactory/original/1X/7fdac63379f395700c26ff44e47a825a886b670d.png)
