Anthropic API key invalid

Describe the Bug

i have paid for claude 4 . and i am trying to connect it to cursor.
it keeps giving errors.
I have asked cursor support and it has been 48 hours now. Nothing from them.
it should be easy right copy your api key from claude and past in the api key cursor but it not working.

i am using windows

Steps to Reproduce

$headers = @{
“Content-Type” = “application/json”
“Authorization” = “Bearer sk-ant-api03-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”
}

$body = @{
	"messages" = @(
			@{
					"role" = "system"
					"content" = "You are a test assistant."
			},
			@{
					"role" = "user"
					"content" = "Testing. Just say hi and nothing else."
			}
	)
} | ConvertTo-Json

Invoke-WebRequest -Uri "https://api.anthropic.com/v1/messages" -Method Post -Headers $headers -Body $body

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (user setup)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T17:09:01.383Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Does this stop you from using Cursor

Yes - Cursor is unusable

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