I receive a 401 Unauthorized code when calling the DHL Shipment Tracking - Unified API

Created by Jhonathan Ibanez, Modified on Mon, 21 Aug, 2023 at 12:19 PM by Jhonathan Ibanez

If you are receiving an "Unauthorized" error code when calling the Shipment Tracking - Unified API via an API platform like Postman, then there could be a series of scenarios causing this issue like:

  • The URL of the API is not well written. This is a well-written example: https://api-eu.dhl.com/track/shipments?trackingNumber=12345678 
  • The API Key parameter is not well written in the Headers. Read more about it in this article.
  • You are adding an API Key that has no rights to access the Shipment Tracking - Unified API


If your issue is not related to the previous cases, please open a ticket in our Help Center.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article