---
name: Registry-ts_forbidden_ce
title: Why am I getting a `Forbidden` error when I try to access Container Registry when I'm using Code Engine?
description: You are trying to access IBM Cloud&reg; Container Registry but you are getting a `Forbidden` error.
last-updated: 2024-05-21
---

> ## 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 a `Forbidden` error when I try to access Container Registry when I'm using Code Engine?
{: #troubleshoot-forbidden-ce}
{: troubleshoot}
{: support}

You are trying to access IBM Cloud&reg; Container Registry but you are getting a `Forbidden` error.
{: shortdesc}

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

`Status code 403 Forbidden`

No token is sent, which means that you are trying to access a private namespace but you didn't send any credentials.
{: tsCauses}

If you are 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}