DHL

DHL User Resource API

The rest resource user consists of two blocks of actions: Authorization of DPDHL external clients,Retrieve for authorized user the user profile.

GitHub OpenAPI

Operations 2

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 /user Get an authorization token for the Internetmarke API · Get authorization token #
Ask an LLM
“How do I get a bearer token to call the Internetmarke API?”
“What credentials do I need to authorize my client for the Internetmarke shop?”
Tell an agent
Get an authorization token for my Internetmarke user {username}.
Authorize my client {client_id} with secret {client_secret} for the Internetmarke API.
GET /user/profile Get my Internetmarke user profile · Retrieve profile data of authorized user for shop #
Ask an LLM
“What settings are saved on my Internetmarke user profile?”
“Can I fetch my own Internetmarke user profile details?”
Tell an agent
Show my Internetmarke user profile.
Get the settings on my Internetmarke account.

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-userresource-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-userresource-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl User Resource API
  version: '1.30'
  contact:
    name: Deutsche Post / DHL
    url: https://www.deutschepost.de/de/i/internetmarke-porto-drucken/kundenservice/internetmarke/kontakt.html
  license:
    name: License
    url: https://www.deutschepost.com
  termsOfService: https://www.deutschepost.de/de/i/internetmarke-porto-drucken/kundenservice/internetmarke/kontakt.html
  description: 'Operations tagged UserResource across 2 of this provider''s published API definitions: dhl-deutsche-post-internetmarke-post-parcel-germany-openapi.yml, dhl-deutsche-post-internetmarke-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/shipping/im/v1
  description: Production environment
tags:
- name: UserResource
  description: 'The rest resource user consists of two blocks of actions:


    Authorization of DPDHL external clients,


    Retrieve for authorized user the user profile.'
paths:
  /user:
    post:
      tags:
      - UserResource
      summary: Get authorization token
      operationId: authorization
      description: '__This request is the precondition for almost all other calls!__


        The call provides you with the Bearer token which is then used for all other calls.


        Here is how:

        The client makes a POST request to the ''user'' resource by adding the following parameters

        using the application/x-www-form-urlencoded format with a character

        encoding of UTF-8 in the HTTP request body:


        * grant_type __REQUIRED__. Must be set to "client_credentials".


        * client_id __REQUIRED__ (aka client_id (api key) -- obtained in DHL Developer Portal)


        * client_secret __REQUIRED__ (aka client_secret -- obtained in DHL Developer Portal)


        * username __REQUIRED__.


        * password __REQUIRED__. (Max length is 22 chars)


        The internetmarke credentials (username, password) for production access will be provided during onboarding, along with additional information. For sandbox access, suitable default values exist. See the remainder of the documentation.'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                grant_type:
                  type: string
                  enum:
                  - client_credentials
                  description: OAuth2 standard content, must be set to 'client_credentials'
                username:
                  type: string
                  example: franz.klammer@mydomain.com
                  description: Internetmarke user name (e.g. 'franz.klammer@mydomain.com').
                password:
                  type: string
                  example: abfahrt123#
                  description: Internetmarke password (e.g. 'abfahrt123#'). Max length is 22 chars.
                client_id:
                  type: string
                  example: XjSnyVWgQp1ShIQ5HQ6Vq5PIYLN2jGNS
                  description: API client_id obtained from developer portal (e.g. 'XjSnyVWgQp1ShIQ5HQ6Vq5PIYLN2jGNS')
                client_secret:
                  type: string
                  example: TICgJWGRysH7mA57
                  description: API client_secret obtained from developer portal (e.g. 'TICgJWGRysH7mA57')
              required:
              - grant_type
              - client_id
              - client_secret
              - username
              - password
      responses:
        '200':
          description: OK, user is successfully authorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Authentication200Response'
        '400':
          description: Bad request, details about the error are described in the response body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error400Response'
        '401':
          description: Unauthorized, user account is not valid, is locked, the provided authorization token is not valid or the application is not authorized by user.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error401Response'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error429Response'
        '500':
          description: Internal Server Error, details about the technical error are provided in the response body. Please contact support if the issue persists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error500Response'
    servers:
    - url: https://api-eu.dhl.com/post/de/shipping/im/v1
      description: Production environment
  /user/profile:
    get:
      tags:
      - UserResource
      summary: Retrieve profile data of authorized user for shop
      operationId: retrieveUserData
      description: The client retrieves certain settings about his user profile.
      responses:
        '200':
          description: OK, user is successfully authorized and the user data returned within the response body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RetrieveUserDataResponse'
        '400':
          description: Bad request, details about the error are described in the response body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error400Response'
        '401':
          description: Unauthorized, user account is not valid, is locked, the provided authorization token is not valid or the application is not authorized by user.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error401Response'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error429Response'
        '500':
          description: Internal Server Error, details about the technical error are provided in the response body. Please contact support if the issue persists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error500Response'
      security:
      - BearerAuth: []
    servers:
    - url: https://api-eu.dhl.com/post/de/shipping/im/v1
      description: Production environment
components:
  schemas:
    Error400Response:
      description: The response object for 400 Bad Request errors. Check the detail field for more information.
      allOf:
      - $ref: '#/components/schemas/RequestStatus'
      example:
        statusCode: '400'
        title: Bad Request
        detail: Required request header 'Authorization' for method parameter type String is not present
    Error429Response:
      description: The response object for 429 Too Many Requests errors.
      allOf:
      - $ref: '#/components/schemas/RequestStatus'
      example:
        statusCode: '429'
        title: Too Many Requests
        detail: Too many requests sent, please try again later.)
    Error401Response:
      description: The response object for 401 Unauthorized errors.
      allOf:
      - $ref: '#/components/schemas/RequestStatus'
      example:
        statusCode: '401'
        title: Unauthorized
        detail: Unauthorized, user account is not valid, is locked, the provided authorization token is not valid or the application is not authorized by user.
    RetrieveUserDataResponse:
      required:
      - country
      - invoiceFrequency
      - invoiceType
      - mail
      type: object
      properties:
        ekp:
          type: string
          description: The EKP of the customer.
        company:
          type: string
          description: The company name of the customer.
        salutation:
          type: string
          description: The salutation of the customer.
        title:
          type: string
          description: The title of the customer.
        invoiceType:
          type: string
          description: The invoice type.
          enum:
          - 'NO'
          - PAPER
          - ONLINE
          - EPOST
        invoiceFrequency:
          type: string
          description: The billing interval.
          enum:
          - DECADE
          - DAILY
        mail:
          type: string
          description: The E-Mail address of the customer.
        firstname:
          type: string
          description: The firstname of the customer.
        lastname:
          type: string
          description: The lastname of the customer.
        street:
          type: string
          description: The street of the customer.
        houseNo:
          type: string
          description: The house number of the customer.
        zip:
          type: string
          description: The zip of the customer.
        city:
          type: string
          description: The city of the customer.
        country:
          type: string
          description: The country of the customer.
        phone:
          type: string
          description: The telephone number of the customer.
        pobox:
          type: string
          description: The postbox of the customer.
        poboxZip:
          type: string
          description: The postbox zip of the customer.
        poboxCity:
          type: string
          description: The postbox city of the customer.
        epostbrief:
          type: string
      description: The response object for the retrieving the user's data by shop.
      example:
        ekp: '6123456789'
        company: Deutsche Post AG - TCB
        title: ''
        invoiceType: ONLINE
        invoiceFrequency: DAILY
        mail: max.mustermann@deutschepost.de
        firstname: Max
        lastname: Mustermann
        street: Hauptstrasse
        houseNo: '5'
        zip: '33602'
        city: Teststadt
        country: DEU
        phone: 01234567890122
        pobox: '4711'
        poboxZip: '51119'
        poboxCity: Bonn
    Error500Response:
      description: Internal Server Error, details about the technical error are provided in the response body. Please contact support if the issue persists.
      allOf:
      - $ref: '#/components/schemas/RequestStatus'
      example:
        statusCode: '500'
        title: Internal Server Error
        detail: Internal Server Error, details about the technical error are provided in the response body. Please contact support if the issue persists.
    RequestStatus:
      required:
      - statusCode
      - title
      - detail
      type: object
      properties:
        statusCode:
          type: string
          description: The http status code.
        title:
          type: string
          description: The title of the error.
        detail:
          type: string
          description: The detailed description about the error.
      description: The response details in case of errors.
      example:
        statusCode: '400'
        title: Bad Request
        detail: Required request header 'Authorization' for method parameter type String is not present
    Authentication200Response:
      description: The response object for user authentication.
      type: object
      properties:
        access_token:
          type: string
          description: The access token / bearer token. (user_token is deprecated)
        walletBalance:
          type: integer
          description: money balance in portokasse
        infoMessage:
          type: string
          description: info message, if any
        tokenType:
          type: string
          description: Will always contain 'BearerToken'
        expires_in:
          type: integer
          description: remaining token validity in seconds
        issued_at:
          type: string
          pattern: ^[A-Za-z]{3}, \d{2} [A-Za-z]{3} \d{4} \d{2}:\d{2}:\d{2} GMT$
          description: Time when token was issued
        external_customer_id:
          type: string
          description: Matches the user requesting the token, used internally
        authenticated_user:
          type: string
          description: user requesting the token
      example:
        access_token: BnN6L2SeyMjKcIMGhgaaUO6GNAIMBtdqmG7klJKbcIo=
        walletBalance: 2446814
        infoMessage: ''
        token_type: BearerToken
        expires_in: 3000
        issued_at: Wed, 03 Apr 2024 08:37:17 GMT
        external_customer_id: DHL-0123
        authenticated_user: max.mustermann@deutschepost.de
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The user token returned by the POST /user call.
x-refined-from:
- dhl-deutsche-post-internetmarke-post-parcel-germany-openapi.yml
- dhl-deutsche-post-internetmarke-post-parcel-germany-openapi.yml