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:

    bash

    CopierModifier

    https://api.mindee.net/v1/products/mindee/invoices/v4/predict

  • cURL request tested:

    bash

    CopierModifier

    curl -X POST \ -H "Authorization: Token md_xxxxxxxxx" \ -F "document=@invoice.pdf" \ https://api.mindee.net/v1/products/mindee/invoices/v4/predict

  • Error returned:

    json

    CopierModifier

    { "error": { "code": "Unauthorized", "message": "Authorization required", "details": "Invalid token provided" } }

Questions:

  1. Is the API key generated in the dashboard compatible with the invoices/v4 model?

  2. Do I need to create a specific project in my dashboard to enable this model?

  3. 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!

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board

🐛 Bug Report

Date

8 months ago

Author

Louis Coffin

Subscribe to post

Get notified by email when there are changes.