---
title: 2005: Access denied | API Docs
description: You do not have permission to access this resource.
---

You do not have permission to access this resource. This is an HTTP 403 error indicating your credentials are valid but you are not authorized to perform this action.

## Troubleshooting

- Verify the resource (chat, subscription) belongs to your partner account. Attachments return `404` (code `2003`) instead when missing or not owned, so IDs cannot be probed.
- Confirm the API key you’re using has access to the phone number involved in the request — see [Phone number permission denied (2006)](/channel/imessage/error/codes/2xxx/2006/index.md) if the resource is a phone line.
- If you rotated keys, make sure the new key has the same scope as the old one.

## Related

- [Authentication](/channel/imessage/getting-started/authentication/index.md)
- [Debugging](/channel/imessage/guides/platform/debugging/index.md)
