# Error: "Invalid API key. Unauthorized User API key" Request ID: 420729f6-705b-448a-a88d-9c183a8132ed

**URL:** <https://forum.cursor.com/t/error-invalid-api-key-unauthorized-user-api-key-request-id-420729f6-705b-448a-a88d-9c183a8132ed/164716>\
**Category:** Help\
**Tags:** login\
**Created:** [July 3, 2026, 3:00am UTC](https://forum.cursor.com/t/error-invalid-api-key-unauthorized-user-api-key-request-id-420729f6-705b-448a-a88d-9c183a8132ed/164716 "2026-07-03T03:00:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Umit\_O](https://avatars.discourse-cdn.com/v4/letter/u/278dde/32.png) [@Umit\_O](https://forum.cursor.com/u/Umit_O)\
**Post date:** [July 3, 2026, 3:00am UTC](https://forum.cursor.com/t/error-invalid-api-key-unauthorized-user-api-key-request-id-420729f6-705b-448a-a88d-9c183a8132ed/164716/1 "2026-07-03T03:00:14Z")

</div>

Status:

- Can login to dashboard ([cursor.com/dashboard](http://cursor.com/dashboard)) ✅
- Payment active, Pro plan ✅
- DNS/Network fixed (was PING timeout, now API error) ✅
- status.cursor.sh unreachable ❌
- Tried: logout/login, cache clear, full reinstall ❌

Anyone else getting this? Is auth backend down?

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 5, 2026, 10:44am UTC](https://forum.cursor.com/t/error-invalid-api-key-unauthorized-user-api-key-request-id-420729f6-705b-448a-a88d-9c183a8132ed/164716/5 "2026-07-05T10:44:35Z")

</div>

Hey, this isn’t an auth backend issue. Your login and Pro subscription are fine. The `Invalid API key. Unauthorized User API key` error is coming from the BYOK path Bring Your Own Key, meaning the request was sent to the model provider using your personal API key, and the provider returned a 401. Most of the time this is caused by an old or invalid custom key in your settings.

Try this:

- Open Settings → Models → API Keys
- Find any custom Anthropic or OpenAI key and either toggle it off or delete it, or replace it with a valid key
- Restart Cursor

After that, requests should go through Cursor managed models and the error should go away.

Same case here: [Unauthorized User API Key for other models](https://forum.cursor.com/t/unauthorized-user-api-key-for-other-models/153586)

If it turns out you don’t have any custom key set up, reply with your Cursor version and a fresh Request ID and we’ll dig deeper. The `status.cursor.sh` downtime isn’t related, that’s a separate issue.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [August 4, 2026, 10:45am UTC](https://forum.cursor.com/t/error-invalid-api-key-unauthorized-user-api-key-request-id-420729f6-705b-448a-a88d-9c183a8132ed/164716/6 "2026-08-04T10:45:02Z")

</div>

Closed on August 4, 2026, 10:45am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
