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/.
V1 API uses basic authentication using credentials supplied by the DPM admin.
V2 API use token-based authentication.
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
}
Authorization: Bearer {{jwttoken}}
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...="
}