DHL

DHL Authentication and authorization API

The Authentication and authorization API from DHL — 3 operation(s) for authentication and authorization.

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

POST /authenticate/refresh-token Exchange a refresh token for a new access token · Obtain an access token / refresh token by providing a refresh token #
Ask an LLM
“How do I get a fresh access token when my old one expires?”
“Can I renew an expired refresh token?”
Tell an agent
Exchange refresh token {refreshToken} for a new access token.
Get a new access token using refresh token {refreshToken}.
POST /authenticate/api-key Get an access and refresh token from an API key · Obtain an access token / refresh token pair by authenticating with an API key #
Ask an LLM
“How do I authenticate with my API key and get an access token?”
“Can I restrict the API key token to certain account numbers?”
Tell an agent
Authenticate with API key {key} for user {userId} and return an access token.
Issue an access token for user {userId} using key {key} on account numbers {accountNumbers}.
POST /authenticate/api-key/account-numbers List account numbers an API key grants access to · Retrieve a list of account numbers the provided API key grants access to #
Ask an LLM
“Which account numbers does my API key have access to?”
“Can I check the scope of an API key before using it?”
Tell an agent
List the account numbers my API key grants access to.
Show which accounts I can access with this API key.

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-authentication-and-authorization-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-authentication-and-authorization-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Authentication and authorization API
  version: '1.0'
  description: 'Operations tagged Authentication and authorization across 2 of this provider''s published API definitions: dhl-parcel-eu-openapi.yml, dhl-parcel-eu-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api-gw.dhlparcel.nl
tags:
- name: Authentication and authorization
paths:
  /authenticate/refresh-token:
    post:
      tags:
      - Authentication and authorization
      summary: Obtain an access token / refresh token by providing a refresh token
      description: ''
      operationId: refreshToken
      responses:
        '200':
          description: The refresh token is valid. The token response contains the access token expiration and refresh token expiration as unix timestamp(seconds since seconds since Jan 01 1970).
          content:
            application/json:
              schema:
                type: object
                required:
                - accessToken
                - accessTokenExpiration
                - accountNumbers
                - refreshToken
                - refreshTokenExpiration
                properties:
                  accessToken:
                    type: string
                  accessTokenExpiration:
                    type: integer
                    format: int64
                  refreshToken:
                    type: string
                  refreshTokenExpiration:
                    type: integer
                    format: int64
                  accountNumbers:
                    type: array
                    uniqueItems: true
                    items:
                      type: string
        '400':
          description: Refresh token not provided
        '401':
          description: Invalid or expired refresh token
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - refreshToken
              properties:
                refreshToken:
                  type: string
        description: RefreshTokenCredentials
        required: true
    servers:
    - url: https://api-gw.dhlparcel.nl
  /authenticate/api-key:
    post:
      tags:
      - Authentication and authorization
      summary: Obtain an access token / refresh token pair by authenticating with an API key
      description: ''
      operationId: apiKey
      responses:
        '200':
          description: The provided api key is valid. The token response contains the access token expiration and refresh token expiration as unix timestamp(seconds since seconds since Jan 01 1970).
          content:
            application/json:
              schema:
                type: object
                required:
                - accessToken
                - accessTokenExpiration
                - accountNumbers
                - refreshToken
                - refreshTokenExpiration
                properties:
                  accessToken:
                    type: string
                  accessTokenExpiration:
                    type: integer
                    format: int64
                  refreshToken:
                    type: string
                  refreshTokenExpiration:
                    type: integer
                    format: int64
                  accountNumbers:
                    type: array
                    uniqueItems: true
                    items:
                      type: string
        '400':
          description: userId or key not provided
        '401':
          description: Invalid key
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - key
              - userId
              properties:
                userId:
                  type: string
                  format: uuid
                  description: Your user ID
                key:
                  type: string
                  description: your API key secret
                accountNumbers:
                  type: array
                  description: OPTIONAL list of account numbers to restrict the access token to. Omit, leave null, or set empty to include all account numbers
                  uniqueItems: true
                  items:
                    type: string
        description: ApiKeyCredentials
        required: true
    servers:
    - url: https://api-gw.dhlparcel.nl
  /authenticate/api-key/account-numbers:
    post:
      tags:
      - Authentication and authorization
      summary: Retrieve a list of account numbers the provided API key grants access to
      description: ''
      operationId: accountNumbers
      responses:
        '200':
          description: The provided api key is valid. The response body contains a JSON array of account numbers this api key grants access to.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
        '400':
          description: userId or key not provided
        '401':
          description: Invalid key
    servers:
    - url: https://api-gw.dhlparcel.nl
components:
  securitySchemes:
    api_key:
      type: apiKey
      name: Authorization
      in: header
x-refined-from:
- dhl-parcel-eu-openapi.yml
- dhl-parcel-eu-openapi.yml