DHL

DHL Trackings API

The Trackings API from DHL — 5 operation(s) for trackings.

GitHub OpenAPI
Business capability
Shipment Tracking Management BC-2510.20

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /dpi/tracking/v1/trackings/{barcode} Track a single parcel by barcode (v1) · Get Trackings V1 #
Ask an LLM
“How do I see the tracking history of one parcel using its barcode?”
“Does the v1 tracking endpoint return the event type for each track event?”
Tell an agent
Track parcel {barcode} with the v1 endpoint.
Get the v1 tracking history for {barcode}.
GET /dpi/tracking/v3/trackings/{barcode} Track a single parcel by barcode (v3) · Get Trackings V3 #
Ask an LLM
“Can I get more detailed parcel tracking events in a different language?”
“Is the v3 parcel tracking endpoint more detailed but less consistent?”
Tell an agent
Track parcel {barcode} with the v3 endpoint in {language}.
Get v3 tracking for {barcode} with event types set to {withEventType}.
GET /dpi/tracking/v3/bag/{customerBagId} Track a bag by customer bag ID · Get Trackings of bags V3 #
Ask an LLM
“How do I track a bag I packed and labeled with my own bag ID?”
“Can I get bag tracking matching a specific customer bag ID?”
Tell an agent
Track bag {customerBagId}.
Get bag {customerBagId} tracking with matching set to {matching}.
GET /dpi/tracking/v1/trackings/awb/{awb} Track all parcels in a shipment by AWB (v1) · Get Tracking - Shipment V1 #
Ask an LLM
“How do I see every item inside a shipment using its AWB?”
“Does the v1 shipment tracking endpoint return all parcels in one AWB?”
Tell an agent
Track shipment {awb} with the v1 endpoint.
Get the v1 tracking history of all parcels in AWB {awb}.
GET /dpi/tracking/v3/trackings/awb/{awb} Track all parcels in a shipment by AWB (v3) · Get Tracking - Shipment V3 #
Ask an LLM
“Can I get detailed parcel tracking for every item in a shipment?”
“Is the v3 shipment tracking endpoint more detailed than v1?”
Tell an agent
Track shipment {awb} with the v3 endpoint in {language}.
Get v3 tracking for all parcels in AWB {awb} with event types {withEventType}.

Documentation

📖
Documentation
https://developer.dhl.com/tracking
📖
Documentation
https://developer.dhl.com/api-reference/shipment-tracking-unified-push
📖
Documentation
https://developer.dhl.com/api-reference/additional-services-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/authentication-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/authentication-api-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/authentication-api-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/datafactory-autocomplete-20-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-hybrid-mail-shipments-e-post-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-international-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-internetmarke-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-print-mailing-dispatch-preparation-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-print-mailing-targeting-post-parcel-germany
📖
Documentation
https://developer.dhl.com/parcel-connect
📖
Documentation
https://developer.dhl.com/api-reference/econnect-beta-dhl-ecommerce-europe
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-pickup-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-postnumber-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-private-shipping-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-returns-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/parcel-de-shipping-post-parcel-germany-v2
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-shipment-tracking-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dgf-document
📖
Documentation
https://developer.dhl.com/api-reference/duty-tax-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/ecommerce-uk
📖
Documentation
https://developer.dhl.com/api-reference/parcel-eu
📖
Documentation
https://developer.dhl.com/api-reference/pickup-cancellation-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/price-quote-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/print-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/product-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/product-and-sub-product-pickup-detail-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/product-finder-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/products-api-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dgf-push-api
📖
Documentation
https://developer.dhl.com/api-reference/registration-pickup-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/return-label-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/shipment-booking-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/dgf-shipment-booking
📖
Documentation
https://developer.dhl.com/api-reference/shipment-label-dhl-global-forwarding
📖
Documentation
https://developer.dhl.com/api-reference/dgf-shipment-status
📖
Documentation
https://developer.dhl.com/api-reference/shipment-tracking-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/shipment-tracking-v2-dhl-global-forwarding
📖
Documentation
https://developer.dhl.com/api-reference/time-table-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/tracking-dhl-ecommerce-americas

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dhl:dhl-trackings-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dhl-trackings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Trackings API
  version: 5.7.10
  description: 'Operations tagged Trackings across 2 of this provider''s published API definitions: dhl-deutsche-post-international-post-parcel-germany-openapi.yml, dhl-deutsche-post-international-post-parcel-germany-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api-sandbox.dhl.com/
tags:
- name: Trackings
paths:
  /dpi/tracking/v1/trackings/{barcode}:
    get:
      operationId: getTrackingsBasic
      summary: Get Trackings V1
      description: Get all tracking information of for the item (identified by the given barcode).
      tags:
      - Trackings
      parameters:
      - name: barcode
        in: path
        description: The barcode of the tracked item.
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Bearer Auth access_token together with the "Bearer" prefix is required. **Example** of the header value:"*Bearer 0UuA.....*"
        required: true
        schema:
          type: string
          default: Bearer [place  OAuth access_token here, without brackets]
      responses:
        '200':
          description: Tracking data (if available).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Tracking'
        '404':
          description: No tracking information for the given barcode.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
        '500':
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
    servers:
    - url: https://api-sandbox.dhl.com/
  /dpi/tracking/v3/trackings/{barcode}:
    get:
      operationId: getTrackingsExtended
      summary: Get Trackings V3
      description: Get all tracking information for the item (identified by the given barcode). More detailed breakdown of track events compared to v1 but possibly more inconsisteny, duplicity and wrong tracking order
      tags:
      - Trackings
      parameters:
      - name: barcode
        in: path
        description: The barcode of the tracked item.
        required: true
        schema:
          type: string
      - name: language
        in: query
        required: false
        description: The language for the returned status message. "en" if omitted
        schema:
          type: string
          default: en
      - name: withEventType
        in: query
        required: false
        description: Flag if the event type should be written in the result. False if omitted
        schema:
          type: boolean
          default: false
      - name: Authorization
        in: header
        description: Bearer Auth access_token together with the "Bearer" prefix is required. **Example** of the header value:"*Bearer 0UuA.....*"
        required: true
        schema:
          type: string
          default: Bearer [place  OAuth access_token here, without brackets]
      responses:
        '200':
          description: Tracking data (if available).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v3_Tracking'
        '404':
          description: No tracking information for the given barcode.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
        '500':
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
    servers:
    - url: https://api-sandbox.dhl.com/
  /dpi/tracking/v3/bag/{customerBagId}:
    get:
      operationId: getBagAndEvents
      summary: Get Trackings of bags V3
      description: Get all tracking information of for the bag (identified by the given barcode).
      tags:
      - Trackings
      parameters:
      - name: customerBagId
        in: path
        description: The customerBagId of the tracked bag.
        required: true
        schema:
          type: string
      - name: matching
        in: query
        required: false
        description: Flag to get additional fields
        schema:
          type: boolean
          default: N
      - name: Authorization
        in: header
        description: Bearer Auth access_token together with the "Bearer" prefix is required. **Example** of the header value:"*Bearer 0UuA.....*"
        required: true
        schema:
          type: string
          default: Bearer [place  OAuth access_token here, without brackets]
      responses:
        '200':
          description: Tracking data (if available).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v3_Tracking'
        '404':
          description: No tracking information for the given barcode.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
        '500':
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
    servers:
    - url: https://api-sandbox.dhl.com/
  /dpi/tracking/v1/trackings/awb/{awb}:
    get:
      operationId: getTrackingForAwb
      summary: Get Tracking - Shipment V1
      description: Get tracking information of all items of a shipment (identified by the given awb).
      tags:
      - Trackings
      parameters:
      - name: awb
        in: path
        description: The awb of the shipment.
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Bearer Auth access_token together with the "Bearer" prefix is required. **Example** of the header value:"*Bearer 0UuA.....*"
        required: true
        schema:
          type: string
          default: Bearer [place  OAuth access_token here, without brackets]
      responses:
        200:
          description: Tracking data.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Tracking'
        403:
          description: User 'xxx' has no permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
        404:
          description: No tracking information for the given awb.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
        500:
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
    servers:
    - url: https://api-sandbox.dhl.com/
  /dpi/tracking/v3/trackings/awb/{awb}:
    get:
      operationId: getTrackingForAirwayBill
      summary: Get Tracking - Shipment V3
      description: Get tracking information of all items of a shipment (identified by the given awb). More detailed breakdown of track events compared to v1 but possibly more inconsisteny, duplicity and wrong tracking order
      tags:
      - Trackings
      parameters:
      - name: awb
        in: path
        description: The awb of the shipment.
        required: true
        schema:
          type: string
      - name: language
        in: query
        required: false
        description: The language for the returned status message. "en" if omitted
        schema:
          type: string
          default: en
      - name: withEventType
        in: query
        required: false
        description: Flag if the event type should be written in the result. False if omitted
        schema:
          type: boolean
          default: false
      - name: Authorization
        in: header
        description: Bearer Auth access_token together with the "Bearer" prefix is required. **Example** of the header value:"*Bearer 0UuA.....*"
        required: true
        schema:
          type: string
          default: Bearer [place  OAuth access_token here, without brackets]
      responses:
        200:
          description: Tracking data.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/v3_Tracking'
        403:
          description: User 'xxx' has no permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
        404:
          description: No tracking information for the given awb.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
        500:
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CwsErrorDTO'
    servers:
    - url: https://api-sandbox.dhl.com/
components:
  schemas:
    CwsErrorDTO:
      type: object
      properties:
        correlationId:
          type: string
          description: The Correlation ID to track the request through all systems where it has been processed.
          example: b011a094-fade-11e7-8c3f-9a214cf093ae
        messages:
          maxItems: 2147483647
          minItems: 1
          type: array
          description: A list of messages. Any single error is described within a certain message.
          items:
            type: string
            description: A list of messages. Any single error is described within a certain message.
    Tracking:
      description: Version 1
      properties:
        awb:
          description: AWB number
          type: string
        barcode:
          description: Barcode
          type: string
        events:
          description: All events
          items:
            $ref: '#/components/schemas/TrackingEvent'
          type: array
        fromCity:
          description: Sender city
          type: string
        fromCountry:
          description: Sender country
          type: string
        fromName:
          description: Sender name
          type: string
        fromZip:
          description: Sender zip code
          type: string
        publicUrl:
          description: Public URL
          type: string
        toCity:
          description: Recipient city
          type: string
        toCountry:
          description: Recipient country
          type: string
        toName:
          description: Recipient name
          type: string
        toZip:
          description: Recipient zip code
          type: string
      required:
      - awb
      - barcode
      - events
      - publicUrl
      type: object
      example:
        events:
        - status: Shipment information uploaded to Deutsche Post
        publicUrl: ''
        barcode: ''
        awb: ''
    v3_TrackingEvent:
      title: TrackingEvent
      description: Version 3
      properties:
        status:
          description: Item tracking status
          type: string
        statusMessage:
          description: Item tracking status message
          type: string
        eventType:
          description: Item tracking event type
          type: string
        timestamp:
          description: Timestamp
          format: date-time
          type: string
      required:
      - status
      type: object
    v3_Tracking:
      title: Tracking
      description: Version 3
      properties:
        awb:
          description: AWB number
          type: string
        barcode:
          description: Barcode
          type: string
        events:
          description: All events
          items:
            $ref: '#/components/schemas/v3_TrackingEvent'
          type: array
        fromCity:
          description: Sender city
          type: string
        fromCountry:
          description: Sender country
          type: string
        fromName:
          description: Sender name
          type: string
        fromZip:
          description: Sender zip code
          type: string
        publicUrl:
          description: Public URL
          type: string
        toCity:
          description: Recipient city
          type: string
        toCountry:
          description: Recipient country
          type: string
        toName:
          description: Recipient name
          type: string
        toZip:
          description: Recipient zip code
          type: string
      required:
      - awb
      - barcode
      - events
      - publicUrl
      type: object
      example:
        events:
        - status: Shipment information uploaded to Deutsche Post
        publicUrl: ''
        barcode: ''
        awb: ''
    TrackingEvent:
      description: Version 1
      properties:
        status:
          description: Item tracking status
          type: object
        statusMessage:
          description: Item tracking status message
          type: object
        timestamp:
          description: Timestamp
          format: date-time
          type: string
      required:
      - status
      type: object
x-refined-from:
- dhl-deutsche-post-international-post-parcel-germany-openapi.yml
- dhl-deutsche-post-international-post-parcel-germany-openapi.yml