---
name: Registry-ts_unauthorized_ce
title: Why am I getting an `Unauthorized` error when I use Code Engine with Container Registry?
description: You're trying to access IBM Cloud&reg; Container Registry but are getting an `Unauthorized` error.
last-updated: 2025-10-14
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/Registry?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Why am I getting an `Unauthorized` error when I use Code Engine with Container Registry?
{: #troubleshoot-unauthorized-ce}
{: troubleshoot}
{: support}

You're trying to access IBM Cloud&reg; Container Registry but are getting an `Unauthorized` error.
{: shortdesc}

When you try to access Container Registry, you get the following message. You might see this error message if you're using IBM Cloud Code Engine.
{: tsSymptoms}

`Status code 401 Unauthorized`

You are trying to access Container Registry by using IBM Cloud Code Engine and you don't have the correct credentials.
{: tsCauses}

If you're accessing Container Registry through Code Engine, confirm that Code Engine is using a pull secret with a valid API key. For more information, see [Add registry access to Code Engine](https://cloud.ibm.com/docs/codeengine?topic=codeengine-add-registry&format=markdown#add-registry-access-ce).
{: tsResolve}