Getting 401 Unauthorized Error Despite Valid API Key and Correct Endpoint
Hi Roboflow community,
I’m experiencing a persistent 401 “Unauthorized api_key” error when calling my deployed workflow, and I’ve tried everything I can think of. Here are the details:
I’ve tried regenerating the API key, redeploying the workflow, and using different endpoint formats. The same API key works fine for other workflows, so I’m not sure what’s different about this one.
Any suggestions on what might be causing this? Is there something specific about classification workflows that I might be missing?
Hi @Pritesh_Donga,
Happy to help here! To help me triage, did anything change in your implementation before you began encountering this issue? Also, are you able to run inference on your workflow via the detect.roboflow.com endpoint?
Finally, do you give Roboflow Support permission to access your workspace? Thank you!
Hi @Ford
Thanks for the quick reply. When running inference through detect.roboflow.com endpoint, I get the following error:
Roboflow API HTTP Error: 405 - {“detail”:“Method Not Allowed”}
Yes, I give Roboflow support permission to access the workspace model “phclassifier2”