Subject: Authentication Issue with Mindee API (401 Unauthorized)
Hello,
I’m having trouble using the Mindee API with the invoices v4 model.
Here are the details:
API Key: Generated from my dashboard (example:
md_xxxxxxxxx)Endpoint used:
bashCopierModifier
https://api.mindee.net/v1/products/mindee/invoices/v4/predictcURL request tested:
bashCopierModifier
curl -X POST \ -H "Authorization: Token md_xxxxxxxxx" \ -F "document=@invoice.pdf" \ https://api.mindee.net/v1/products/mindee/invoices/v4/predictError returned:
jsonCopierModifier
{ "error": { "code": "Unauthorized", "message": "Authorization required", "details": "Invalid token provided" } }
Questions:
Is the API key generated in the dashboard compatible with the invoices/v4 model?
Do I need to create a specific project in my dashboard to enable this model?
Is there any difference between a general API key and a model-specific key in Mindee?
I followed the official documentation and included the Token prefix in the header, but I keep getting 401 Unauthorized.
Thanks for your help!
Log in to comment and vote
Comments1
Chloé Monnin
Jul 21, 2025
Hello, thanks for your feedback.
It seems you are querying the V1 API with a V2 API Key.
To use V2 please follow this documentation :
https://docs.mindee.com/integrations/api-overview