DHL

DHL Label Access API

The Label Access API from DHL — 6 operation(s) for label access.

GitHub OpenAPI

Operations 6

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 /labels/{pakId} Get a label PDF or wallet file by PAKID · Gets the label pdf or wallet file by PAKID #
Ask an LLM
“Can I download the shipping label for a PAKID as a PDF?”
“Is it possible to include MOPS values when fetching a label by PAKID?”
Tell an agent
Get the label for PAKID {pakId}.
Download label {pakId} with MOPS value {withMopsValue}.
GET /labels/{shipmentNumber} Get a label PDF or wallet file by shipment number · Gets the label pdf or wallet file by a shipment number #
Ask an LLM
“Can I fetch the label for a shipment by its number?”
“What does the label look like when I request it by shipment number?”
Tell an agent
Get the label for shipment {shipmentNumber}.
Download the label for shipment {shipmentNumber} with MOPS value {withMopsValue}.
GET /labels/{pakId}/qr-code Get the MOSEL QR code for mobile printing by PAKID · Gets the MOSEL/MOPS QR-Code for mobile printing services by PAKID #
Ask an LLM
“How do I print a shipping label on my phone using the MOSEL QR code?”
“Can I get the mobile printing QR code for a PAKID?”
Tell an agent
Get the MOSEL QR code for PAKID {pakId}.
Generate a mobile printing QR code for PAKID {pakId}.
GET /labels/{shipmentNumber}/qr-code Get the MOSEL QR code for mobile printing by shipment number · Gets the MOSEL/MOPS QR-Code for mobile printing services by shipment number #
Ask an LLM
“Can I get a mobile printing QR code for a shipment by its number?”
“What does the MOSEL QR code look like for a shipment?”
Tell an agent
Get the MOSEL QR code for shipment {shipmentNumber}.
Generate a mobile printing QR code for shipment {shipmentNumber}.
GET /labels/{pakId}/{labelFormat} Get a shopping cart label by Pak ID · Gets the label for the shoppingcart by PAKID #
Ask an LLM
“Can I get the label for a shopping cart using its Pak ID?”
“Is it possible to return a shopping cart label with MOPS values in a specific format?”
Tell an agent
Get the {labelFormat} label for shopping cart {pakId}.
Fetch the shopping cart label {pakId} in {labelFormat}, including MOPS values {withMopsValue}.
GET /labels/{shipmentNumber}/{labelFormat} Get a shipment label in a chosen format · Gets the label for the shoppingcart by shipment number #
Ask an LLM
“How do I get the label for a shipment number in a specific format like PDF?”
“Can I choose the label format when I look up a label by shipment number?”
Tell an agent
Retrieve shipment {shipmentNumber} as a label in {labelFormat} format.
Retrieve shipment {shipmentNumber} as a {labelFormat} label with MOPS value set to {withMopsValue}.

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

Schemas & Data

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-label-access-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-label-access-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Label Access API
  version: 1.0.0
  description: 'Operations tagged Label Access across 2 of this provider''s published API definitions: dhl-dhl-parcel-de-private-shipping-post-parcel-germany-openapi.yml, dhl-dhl-parcel-de-private-shipping-post-parcel-germany-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api-eu.dhl.com/parcel/de/shipping/of/v1/public
  description: The Private Shipping (DHL OF) Production Environment.
- url: https://api-sandbox.dhl.com/parcel/de/shipping/of/v1/public
  description: The Private Shipping (DHL OF) Sandbox Environment.
tags:
- name: Label Access
paths:
  /labels/{pakId}:
    parameters:
    - in: query
      name: withMopsValue
      schema:
        type: boolean
    - in: path
      description: The PAKID
      name: pakId
      schema:
        type: string
      required: true
    get:
      tags:
      - Label Access
      summary: Gets the label pdf or wallet file by PAKID
      security:
      - ApiKeyAuth: []
      parameters:
      - in: header
        name: accept
        schema:
          type: string
          enum:
          - application/pdf
          - application/json
          - application/vnd.apple.pkpass
        required: true
      responses:
        '200':
          description: OK, 'application/pdf' -> to download the label, 'application/json' -> to download the label as base64 encoded file, 'application/vnd.apple.pkpass' -> to download the wallet for this position.
          headers:
            X-numberOfPages:
              schema:
                type: integer
              description: Pages of the file if suitable for the document and content type (label pdf, pdf content type requested)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LabelDownload'
            application/pdf:
              schema:
                type: string
                format: binary
            application/vnd.apple.pkpass:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '402':
          $ref: '#/components/responses/402'
        '403':
          $ref: '#/components/responses/403'
      operationId: getLabelsByPakId
      x-operation-id-source: derived
    servers:
    - url: https://api-eu.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Production Environment.
    - url: https://api-sandbox.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Sandbox Environment.
  /labels/{shipmentNumber}:
    parameters:
    - in: query
      name: withMopsValue
      schema:
        type: boolean
    - in: path
      description: The Shipment Number
      name: shipmentNumber
      schema:
        type: string
      required: true
    get:
      tags:
      - Label Access
      summary: Gets the label pdf or wallet file by a shipment number
      security:
      - ApiKeyAuth: []
      parameters:
      - in: header
        name: accept
        schema:
          type: string
          enum:
          - application/pdf
          - application/json
          - application/vnd.apple.pkpass
        required: true
      responses:
        '200':
          description: OK, 'application/pdf' -> to download the label, 'application/json' -> to download the label as base64 encoded file, 'application/vnd.apple.pkpass' -> to download the wallet for this position.
          headers:
            X-numberOfPages:
              schema:
                type: integer
              description: Pages of the file if suitable for the document and content type (label pdf, pdf content type requested)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LabelDownload'
            application/pdf:
              schema:
                type: string
                format: binary
            application/vnd.apple.pkpass:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '402':
          $ref: '#/components/responses/402'
      operationId: getLabelsByShipmentNumber
      x-operation-id-source: derived
    servers:
    - url: https://api-eu.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Production Environment.
    - url: https://api-sandbox.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Sandbox Environment.
  /labels/{pakId}/qr-code:
    parameters:
    - name: pakId
      in: path
      description: The PAKID
      schema:
        type: string
      required: true
    get:
      tags:
      - Label Access
      summary: Gets the MOSEL/MOPS QR-Code for mobile printing services by PAKID
      security:
      - ApiKeyAuth: []
      parameters:
      - in: header
        name: accept
        schema:
          type: string
          enum:
          - image/png
          - application/json
          - text/plain
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QrDownloadResponse'
            image/png:
              schema:
                type: string
                format: binary
            text/plain:
              schema:
                type: string
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '402':
          $ref: '#/components/responses/402'
        '409':
          $ref: '#/components/responses/409'
      operationId: getLabelsByPakIdQrCode
      x-operation-id-source: derived
    servers:
    - url: https://api-eu.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Production Environment.
    - url: https://api-sandbox.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Sandbox Environment.
  /labels/{shipmentNumber}/qr-code:
    parameters:
    - name: shipmentNumber
      in: path
      description: The Shipment Number
      schema:
        type: string
      required: true
    get:
      tags:
      - Label Access
      summary: Gets the MOSEL/MOPS QR-Code for mobile printing services by shipment number
      security:
      - ApiKeyAuth: []
      parameters:
      - in: header
        name: accept
        schema:
          type: string
          enum:
          - image/png
          - application/json
          - text/plain
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QrDownloadResponse'
            image/png:
              schema:
                type: string
                format: binary
            text/plain:
              schema:
                type: string
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '402':
          $ref: '#/components/responses/402'
        '403':
          $ref: '#/components/responses/403'
        '409':
          $ref: '#/components/responses/409'
      operationId: getLabelsByShipmentNumberQrCode
      x-operation-id-source: derived
    servers:
    - url: https://api-eu.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Production Environment.
    - url: https://api-sandbox.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Sandbox Environment.
  /labels/{pakId}/{labelFormat}:
    parameters:
    - name: pakId
      in: path
      description: The PAKID
      schema:
        type: string
      required: true
    - in: path
      description: The label format
      name: labelFormat
      required: true
      schema:
        type:
        - string
        - 'null'
        enum:
        - DINA4
        - MOPS
        - null
    get:
      tags:
      - Label Access
      summary: Gets the label for the shoppingcart by PAKID
      security:
      - ApiKeyAuth: []
      parameters:
      - in: query
        name: withMopsValue
        schema:
          type: boolean
      - in: header
        name: accept
        schema:
          type: string
          enum:
          - application/pdf
          - application/json
        required: true
      responses:
        '200':
          description: OK, 'application/pdf' -> to download the label, 'application/json' -> to download the label as base64 encoded file.
          headers:
            X-numberOfPages:
              schema:
                type: integer
              description: Pages of the file if suitable for the document and content type (label pdf, pdf content type requested)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LabelDownload'
            application/pdf:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '402':
          $ref: '#/components/responses/402'
        '403':
          $ref: '#/components/responses/403'
        '409':
          $ref: '#/components/responses/409'
      operationId: getLabelsByPakIdByLabelFormat
      x-operation-id-source: derived
    servers:
    - url: https://api-eu.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Production Environment.
    - url: https://api-sandbox.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Sandbox Environment.
  /labels/{shipmentNumber}/{labelFormat}:
    parameters:
    - name: shipmentNumber
      in: path
      description: The Shipment Number
      schema:
        type: string
      required: true
    - in: path
      description: The label format
      name: labelFormat
      required: true
      schema:
        type:
        - string
        - 'null'
        enum:
        - DINA4
        - MOPS
        - null
    get:
      tags:
      - Label Access
      summary: Gets the label for the shoppingcart by shipment number
      security:
      - ApiKeyAuth: []
      parameters:
      - in: query
        name: withMopsValue
        schema:
          type: boolean
      - in: header
        name: accept
        schema:
          type: string
          enum:
          - application/pdf
          - application/json
        required: true
      responses:
        '200':
          description: OK, 'application/pdf' -> to download the label, 'application/json' -> to download the label as base64 encoded file.
          headers:
            X-numberOfPages:
              schema:
                type: integer
              description: Pages of the file if suitable for the document and content type (label pdf, pdf content type requested)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LabelDownload'
            application/pdf:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '402':
          $ref: '#/components/responses/402'
        '403':
          $ref: '#/components/responses/403'
        '409':
          $ref: '#/components/responses/409'
      operationId: getLabelsByShipmentNumberByLabelFormat
      x-operation-id-source: derived
    servers:
    - url: https://api-eu.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Production Environment.
    - url: https://api-sandbox.dhl.com/parcel/de/shipping/of/v1/public
      description: The Private Shipping (DHL OF) Sandbox Environment.
components:
  schemas:
    LabelDownload:
      type: object
      properties:
        label:
          $ref: '#/components/schemas/DownloadFile'
        mopsValue:
          type: string
          description: mops values inserted if ?withMopsValue=true attached to the url
    QrDownloadResponse:
      type: object
      properties:
        qrcode:
          $ref: '#/components/schemas/DownloadFile'
    Error:
      type: object
      description: Error information.
      properties:
        code:
          type: string
          description: The business-level error code.
        detail:
          type: string
          description: The reason why the error occurred. This string is provided for user-friendliness and might change in the future. Use the error code for client-side workflow. (Note':' This is a business cause, not the HTTP error.)
      required:
      - code
      - detail
      example:
        code: Example Error Code
        detail: Error Details
    DownloadFile:
      type: object
      properties:
        name:
          type: string
          description: name of the file
        file:
          type: string
          description: base64 encoded file
        type:
          type: string
          description: the mime type
        numberOfPages:
          type: integer
          description: if system enabled number of pages of document (if applicable, as example pdf)
        pakId:
          type: string
          description: pakId of the shipment if exists
  responses:
    '401':
      description: 'Unauthorized - The client could not be authenticated since the request lacks the required HTTP headers or the credentials are invalid.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    '403':
      description: 'Forbidden - The client has successfully been authenticated but has no authorization to access the given resource.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    '400':
      description: 'Bad Request - The request could not be understood by the server due to malformed syntax or semantic errors.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    '409':
      description: 'Conflict - MOSEL/MOPS QR-Code can not be accessed any more. Further details can be found within the Error Element.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    '402':
      description: 'The caller is required to pay for the resource before attempting to retrieve the data.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: dhl-api-key
      description: The dhl-api-key can be obtained at [DPDHL's development portal](https://developer.dhl.com).
x-refined-from:
- dhl-dhl-parcel-de-private-shipping-post-parcel-germany-openapi.yml
- dhl-dhl-parcel-de-private-shipping-post-parcel-germany-openapi.yml