# Cannot access ADMIN API (port 8001)

**URL:** <https://discuss.konghq.com/t/cannot-access-admin-api-port-8001/11306>\
**Category:** General\
**Tags:** kong-gateway\
**Created:** [March 16, 2023, 4:14am UTC](https://discuss.konghq.com/t/cannot-access-admin-api-port-8001/11306 "2023-03-16T04:14:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fee](https://avatars.discourse-cdn.com/v4/letter/f/77aa72/32.png) [@fee](https://discuss.konghq.com/u/fee)\
**Post date:** [March 16, 2023, 4:14am UTC](https://discuss.konghq.com/t/cannot-access-admin-api-port-8001/11306/1 "2023-03-16T04:14:42Z")

</div>

I am installing Kong in docker desktop (windows) DB -less. why when I want to access admin API (http:localhost:8001) showed {“message”:“Not found”} what am I missing here? Please help

Thanks

---

<div class="post-metadata">

**Author:** ![Sachin\_Ghumbre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/sachin_ghumbre/32/2737_2.png) [@Sachin\_Ghumbre](https://discuss.konghq.com/u/Sachin_Ghumbre)\
**Post date:** [March 17, 2023, 4:11am UTC](https://discuss.konghq.com/t/cannot-access-admin-api-port-8001/11306/2 "2023-03-17T04:11:02Z")

</div>

@fee - It means you have either not set or wrongly set Admin API while deploying Kong gateway. Please check below parameters are being set while deploying your Kong gateway

```auto
 -v "$(pwd):/kong/declarative/"
-e "KONG_DATABASE=off"
-e "KONG_DECLARATIVE_CONFIG=/kong/declarative/kong.yml"
-e "KONG_ADMIN_LISTEN=0.0.0.0:8001"
-p 8001:8001

```

Make sure path mentioned under -v and KONG\_DECLARATIVE\_CONFIG are matching.

---

<div class="post-metadata">

**Author:** ![fee](https://avatars.discourse-cdn.com/v4/letter/f/77aa72/32.png) [@fee](https://discuss.konghq.com/u/fee)\
**Post date:** [March 17, 2023, 6:17am UTC](https://discuss.konghq.com/t/cannot-access-admin-api-port-8001/11306/4 "2023-03-17T06:17:36Z")

</div>

so it means I have to save kong.yml in my local first and put path in "KONG\_DECLARATIVE\_CONFIG= is it?

---

<div class="post-metadata">

**Author:** ![Sachin\_Ghumbre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/sachin_ghumbre/32/2737_2.png) [@Sachin\_Ghumbre](https://discuss.konghq.com/u/Sachin_Ghumbre)\
**Post date:** [March 17, 2023, 7:17am UTC](https://discuss.konghq.com/t/cannot-access-admin-api-port-8001/11306/5 "2023-03-17T07:17:02Z")

</div>

You can do one thing, deploy the kong with kong.yml and later login to container and change admin api path and restart the kong gateway
