# Using Mender APIs result in 404 Not Found errors

**URL:** <https://hub.mender.io/t/using-mender-apis-result-in-404-not-found-errors/5698>\
**Category:** General Discussions\
**Created:** [March 20, 2023, 5:02pm UTC](https://hub.mender.io/t/using-mender-apis-result-in-404-not-found-errors/5698 "2023-03-20T17:02:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StMartin81](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/stmartin81/32/1745_2.png) [@StMartin81](https://hub.mender.io/u/StMartin81)\
**Post date:** [March 20, 2023, 5:02pm UTC](https://hub.mender.io/t/using-mender-apis-result-in-404-not-found-errors/5698/1 "2023-03-20T17:02:23Z")

</div>

Hello,

I’ve tried to follow the instructions on how to use the Mender API from this site: [Using the APIs | Mender documentation](https://docs.mender.io/server-integration/using-the-apis)

After I’ve set my environment variables and run the following command:

```auto
curl -X POST -u $MENDER_SERVER_USER $MENDER_SERVER_URI/api/management/v1/useradm/auth/login

```

I always get the following response:

```auto
Enter host password for user ' *******':
{"error": {"status_code": 404,"message": "Not Found"}}[

```

Can somebody tell me why I always receive this error message?
