Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I set up a Cursor Automation with a webhook trigger. The webhook URL works (returns a response), but the auth header generated via “Generate auth header” always returns 401 unauthenticated, even when tested directly with curl from my terminal seconds after generating it.
Tested with: curl -X POST <webhook_url> -H “Authorization: Bearer crsr_…” -H “Content-Type: application/json” -d ‘{“test”: true}’
Response: {“code”:“unauthenticated”,“message”:“[unauthenticated] Error”,“details”:[…]}
thank you in advance
Steps to Reproduce
- Go to cursor.com/automations and create a new automation
- Add a Webhook triggered trigger
- Select a repo and branch
- Add instructions and save the automation (toggle Active)
- Click Generate auth header and copy the token (format:
Bearer crsr_...) - Immediately test with curl in terminal:
curl -X POST "https://api2.cursor.sh/automations/webhook/<automation-id>" \ -H "Authorization: Bearer crsr_<generated_token>" \ -H "Content-Type: application/json" \ -d '{"test": true}' \ -v - Response is HTTP 401 with body:
{ "code": "unauthenticated", "message": "[unauthenticated] Error", "details": [{ "type": "aiserver.v1.ErrorDetails", "debug": { "error": "ERROR_NOT_LOGGED_IN", "details": { "title": "Authentication error", "detail": "If you are logged in, try logging out and back in.", "isRetryable": false }, "isExpected": true } }] }
Operating System
MacOS
Version Information
online agents
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor