# Authorization API call with Easymorph server

**URL:** <https://community.easymorph.com/t/authorization-api-call-with-easymorph-server/4238>\
**Category:** Support\
**Created:** [January 24, 2023, 11:32am UTC](https://community.easymorph.com/t/authorization-api-call-with-easymorph-server/4238 "2023-01-24T11:32:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![freek.bezemer](https://community.easymorph.com/letter_avatar_proxy/v4/letter/f/cc9497/32.png) [@freek.bezemer](https://community.easymorph.com/u/freek.bezemer)\
**Post date:** [January 24, 2023, 11:32am UTC](https://community.easymorph.com/t/authorization-api-call-with-easymorph-server/4238/1 "2023-01-24T11:32:02Z")

</div>

I made an Easymorph process to carry out a GET request to the API of Directus. Within the connector I provide a token for the authentication. When the process is started within the local desktop version I receive a valid respons (200) and the right information. When I log in to the Easymorph server and manually start the process I also receive a valid respons (200) and the same information. The problem occurse when I try to start the Easymorph process through the web browser. The response is a 401 error with the next body:

{"errors":[{"message":"Invalid user credentials.","extensions":{"code":"INVALID\_CREDENTIALS"}}]}

We run another Easymorph proces which also preforms a GET request to the same API but when I copy this proces and paste it into a new Easymorph file the same error occurse. Do you have any idea what the cause of this problem is?

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [January 24, 2023, 1:47pm UTC](https://community.easymorph.com/t/authorization-api-call-with-easymorph-server/4238/2 "2023-01-24T13:47:00Z")

</div>

Most probably, the connector for the web request that is used on the Server is not configured properly (wrong or missing API key).

It is usually a good idea to use the Server to provide connectors for projects that run on Desktop and Server. In this case, no matter if you run a project on Desktop or on Server, it will work with exactly the same set of connectors.

See "Server-hosted repositories" in this tutorial article: [EasyMorph | Server Link](https://easymorph.com/learn/server-link.html)
