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:
Workflow: phclassifier2 (classification model)
Endpoint: https://serverless.roboflow.com/vdimagesrecognition/workflows/phclassifier2
API Key: verifiedOK!
What I’ve verified:
-
API key is correct and active in my Roboflow dashboard
-
Workflow is deployed and shows as “Active”
-
Endpoint URL matches exactly what’s shown in the deployment instructions
-
Request format matches the cURL example exactly
-
Same API key works for other workflows in the same project
Request format:
{
"api_key": "\*\*\*\*\*\*\*\*\*\*\*\*\*\*",
"inputs": {
"image": {"type": "url", "value": "https://firebasestorage.googleapis.com/..."}
}
}
Error response:
{“status”:401,“message”:“Unauthorized api_key”}
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?
Thanks in advance!