# How to authenticate with the Okteto Docker Registry API

**URL:** <https://community.okteto.com/t/how-to-authenticate-with-the-okteto-docker-registry-api/489>\
**Category:** How Do I?\
**Created:** [December 27, 2022, 10:45pm UTC](https://community.okteto.com/t/how-to-authenticate-with-the-okteto-docker-registry-api/489 "2022-12-27T22:45:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![relston](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/relston/32/200_2.png) [@relston](https://community.okteto.com/u/relston)\
**Post date:** [December 27, 2022, 10:45pm UTC](https://community.okteto.com/t/how-to-authenticate-with-the-okteto-docker-registry-api/489/1 "2022-12-27T22:45:43Z")

</div>

Hi all,  
I’m trying to get a list of images/tags in my Okteto registry namespace. I cannot figure out how to authenticate using the Okteto Docker Registry API and there isn’t documentation specifically for this.

I understand that I can get my personal token from `okteto context show` so I have that saved in a `OKTETO_TOKEN` env var

When trying to `curl -v https://registry.cloud.okteto.net/v2/_catalog` I get a 401 a An RFC7235 compliant authentication challenge header as expected.

```auto
www-authenticate: Bearer realm="https://cloud.okteto.com/auth/registry",service="okteto-registry",scope="registry:catalog:*"

```

So I would expect to be able to get an auth token by doing the following

```auto
curl -v -H "Authorization: Bearer $OKTETO_TOKEN" https://cloud.okteto.com/auth/registry?service=okteto-registry&scope=registry:catalog:*

```

But this STILL results in a 401. What am I doing wrong? How do I get the auth token?

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [January 3, 2023, 11:26pm UTC](https://community.okteto.com/t/how-to-authenticate-with-the-okteto-docker-registry-api/489/2 "2023-01-03T23:26:23Z")

</div>

Hi @relston !

That API is not enabled in Okteto Cloud, since Okteto Cloud is a multi-tenant service, and the registry API is not multitenant aware. It is on our roadmap to give users more visibility on their images, but we don’t have an ETA yet.

What are you trying to accomplish by querying that API?
