DHL

DHL Subscription Creation API

The Subscription Creation API from DHL — 3 operation(s) for subscription creation.

GitHub OpenAPI

Operations 3

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 /certificates/default Get the push service certificate · Gets the certificate chain of the push service (X.509) #
Ask an LLM
“Where do I get the certificate chain to validate push notifications?”
“What X.509 certificate does the push service use?”
Tell an agent
Get the default push certificate.
Download the certificate chain for push notification validation.
POST /subscriptions Create a push subscription · Create push subscription with settings #
Ask an LLM
“How do I register a callback URL for shipment update push notifications?”
“How many push subscriptions per user are allowed?”
Tell an agent
Create a push subscription to {dataCallbackURL} with {numberOfRecords} records per batch.
Register a push subscription for {email} in {language} with {exportFormat}.
POST /subscriptions/{id}/confirmation Confirm a push subscription · Confirms the validity of the subscription #
Ask an LLM
“How do I confirm a push subscription with a signature?”
“What response confirms a push subscription was created?”
Tell an agent
Confirm push subscription {id}.
Send signature {signature} to confirm push subscription {id}.

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-subscription-creation-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-subscription-creation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Subscription Creation API
  version: 2.0.0
  description: 'Operations tagged Subscription Creation across 2 of this provider''s published API definitions: dhl-mail-communication-tracking-push-post-parcel-germany-openapi.yml, dhl-mail-communication-tracking-push-post-parcel-germany-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api-eu.dhl.com/post/de/tracking/push/v2
- url: https://api-sandbox.dhl.com/post/de/tracking/push/v2
security:
- Authorization: []
- ApiKey: []
tags:
- name: Subscription Creation
paths:
  /certificates/default:
    get:
      summary: Gets the certificate chain of the push service (X.509)
      description: This certificate can be used by push consumers to validate the signature on incoming notifications (shipment update messages) sent to the consumer's endpoint, i.e. validate that these notifications were sent by the push service. Please refer to the API documentation on how to validate the signature at your consuming endpoint.
      operationId: getCertificate
      tags:
      - Subscription Creation
      responses:
        '200':
          description: OK
          content:
            application/x-pem-file:
              schema:
                type: string
                format: binary
              example: '-----BEGIN CERTIFICATE----- <CERTIFICATE CONTENT> -----END CERTIFICATE-----

                '
        '401':
          $ref: '#/components/responses/Unauthorized'
    servers:
    - url: https://api-eu.dhl.com/post/de/tracking/push/v2
    - url: https://api-sandbox.dhl.com/post/de/tracking/push/v2
  /subscriptions:
    post:
      summary: Create push subscription with settings
      description: Create operation for a new push subscription with settings as payload. A maximum of 3 (three) subscriptions per user is allowed.
      operationId: requestSubscriptionRegistration
      tags:
      - Subscription Creation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Subscription'
        required: true
      callbacks:
        onValidation:
          '{$request.body#/validationCallbackURL}':
            post:
              operationId: callbackForValidation
              requestBody:
                required: true
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/SubscriptionValidation'
                      type: object
                      properties:
                        message:
                          type: string
                          example: Some event happened
                      required:
                      - message
              responses:
                2XX:
                  description: OK
                4XX:
                  description: ClientError
                5XX:
                  description: ServerError
        onDataEvent:
          '{$request.body#/dataCallbackURL}':
            post:
              operationId: pushDataToCustomer
              requestBody:
                required: true
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/ShipmentDocument'
                      type: object
                      properties:
                        message:
                          type: string
                          example: Some event happened
                      required:
                      - message
              responses:
                2XX:
                  description: OK
                4XX:
                  description: ClientError
                5XX:
                  description: ServerError
      responses:
        '201':
          description: The push subscription was created.
          headers:
            Location:
              description: The URI of the subscription
              schema:
                type: string
                format: uri
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Subscription'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
    servers:
    - url: https://api-eu.dhl.com/post/de/tracking/push/v2
    - url: https://api-sandbox.dhl.com/post/de/tracking/push/v2
  /subscriptions/{id}/confirmation:
    post:
      summary: Confirms the validity of the subscription
      description: Posting a the signature to the confirmation ressource is the final step in the creation of a subscription. A response with code 204 confirms the subscription.
      operationId: confirmSubscription
      tags:
      - Subscription Creation
      parameters:
      - name: id
        in: path
        description: The unique id of the push subscription
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                signature:
                  type: string
      responses:
        '204':
          description: No Content
          content:
            application/json: {}
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://api-eu.dhl.com/post/de/tracking/push/v2
    - url: https://api-sandbox.dhl.com/post/de/tracking/push/v2
components:
  schemas:
    Subscription:
      required:
      - dataCallbackURL
      - validationCallbackURL
      - numberOfRecords
      - email
      - exportFormat
      - language
      type: object
      properties:
        id:
          type: string
          readOnly: true
        dataCallbackURL:
          description: 'The endpoint on the customer\''s side used to receive  the documents.

            '
          type: string
          format: uri
        validationCallbackURL:
          description: 'The endpoint on the customer\''s side used to receive a validation call.

            '
          type: string
          format: uri
        numberOfRecords:
          description: The number of documents within a batch.
          maximum: 10000
          minimum: 1
          type: integer
          format: int32
        exportFormat:
          description: The format in which the documents should be.
          type: string
          enum:
          - application/json
          - application/xml
        language:
          type: string
          description: The language in which the documents should be.
          enum:
          - de
          - en
        email:
          type: string
          format: email
          description: The email to be used for notifications.
          example: sample@mail.com
    SubscriptionValidation:
      type: object
      properties:
        confirmationURL:
          type: string
          format: uri
        signature:
          type: string
    Shipment:
      type: object
      properties:
        shipmentIds:
          type: array
          items:
            $ref: '#/components/schemas/ShipmentIds'
        referenceId:
          type: string
        orderId:
          type: string
          pattern: \d
        flags:
          type: object
          additionalProperties:
            type: string
        currentEvent:
          $ref: '#/components/schemas/Event'
      required:
      - shipmentIds
      - referenceId
      - orderId
      - flags
      - currentEvent
      example:
        shipmentIds:
        - shipmentId: 1A200034A50000000CB6
        referenceId: 123456AB-78CD-1234-AB12-A12B3456789A
        orderId: 00000123456789
        flags:
          finalState: true
        currentEvent:
          state: BZE
          status: Ihre Sendung wurde am 13.06.2022 bearbeitet.
          shortStatus: Transport
          processingDate: 2022-06-13
    Event:
      type: object
      properties:
        state:
          type: string
        status:
          type: string
        shortStatus:
          type: string
        processingDate:
          type: string
          format: date
      required:
      - state
      - status
      - shortStatus
      - processingDate
    ShipmentIds:
      type: object
      properties:
        shipmentId:
          type: string
      required:
      - shipmentId
    RequestStatus:
      type: object
      description: General status description for the attached response or response item.
      required:
      - statusCode
      - title
      properties:
        title:
          type: string
          example: ok
        statusCode:
          type: integer
          format: int32
          example: 200
          description: The status code of the response. Usually, but not necessarily the HTTP status code.
        instance:
          type: string
          description: A URI reference that identifies the specific occurrence of the problem.
        detail:
          maxLength: 80
          minLength: 0
          type: string
          example: The Webservice call ran successfully.
    ShipmentDocument:
      type: object
      properties:
        shipments:
          type: array
          items:
            $ref: '#/components/schemas/Shipment'
      required:
      - shipments
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/RequestStatus'
    BadRequest:
      description: Bad Request
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/RequestStatus'
    Forbidden:
      description: Forbidden
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/RequestStatus'
    NotFound:
      description: Not Found
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/RequestStatus'
  securitySchemes:
    Authorization:
      type: http
      description: Credential provided here is a GKP credential.
      scheme: basic
    ApiKey:
      type: apiKey
      name: dhl-api-key
      in: header
x-refined-from:
- dhl-mail-communication-tracking-push-post-parcel-germany-openapi.yml
- dhl-mail-communication-tracking-push-post-parcel-germany-openapi.yml