DPM API

General notes

The DPM API collection enables customers to integrate with our systems directly. There are currently two API base paths - https://api.dpmnetworks.com/api/v1/ and https://api.dpmnetworks.com/api/v2/.

API authentication

API V1

V1 API uses basic authentication using credentials supplied by the DPM admin.

API V2

V2 API use token-based authentication.

  1. Get token with DPM credentials.
    POST https://app.dpmnetworks.com/access-token
    Content-Type: application/json
    Accept-Language: en-US,en;q=0.5
    
    {
    "userName": "[email protected]",
    "password": "YourSecretIsSafe"
    }

    Example response:

    Status: 200 OK
        Content-Type: application/json; charset=utf-8
    {
      "result": {
        "accessToken": "eyJh...wczovL2",
        "refreshToken": "1x...0FYm3FiEaM="
      },
      "id": 1,
      "exception": null,
      "status": 5,
      "isCanceled": false,
      "isCompleted": true,
      "isCompletedSuccessfully": true,
      "creationOptions": 0,
      "asyncState": null,
      "isFaulted": false
    }
  2. Use bearer token in API call.
    Authorization: Bearer {{jwttoken}}
  3. Optionally, refresh token.
    
        POST https://app.dpmnetworks.com/access-token/refresh
        Content-Type: application/json
        Accept-Language: en-US,en;q=0.5
    
        {
        "accessToken": "eyJh...Y",
        "refreshToken": "1x...="
        }