Connect with the Motors@Work using our JSON-based RESTful API. Motors@Work’s REST/HTTPS API allows you to securely send near-real-time motor and system readings to the Motors@Work analytics engine.
Authentication
Motors@Work’s public API uses REST and requires authentication on every request. The API expects HTTP basic access authentication to be included with each request and each request must be made over HTTPS.
Test your Motors@Work authentication by sending a GET request to https://www.app.motorsatwork.com/api/1.0/rest/test with HTTP basic access authentication including your valid Motors@Work credentials in the request header.
If successful, you will receive a JSON response:
{“message”:“Way to go, you are authenticated!”}
If not successful, your response will look more like:
{“errors”:{“entity”:{“errorMessages”:[“Authorization failure.”]}},“data”:“”}
See a complete Java example.
Add a measurement
Add a measurement by sending a PUT request to https://www.app.motorsatwork.com/api/1.0/rest/motor/external/measurement with HTTP basic access authentication including your valid Motors@Work credentials in the request header.
The PUT request uses the following format:
{
“data”: [
{
“referenceNumber”: “MOTORTEST3”,
“measurementDate”: “2017-04-05T12:37:53.000Z”,
“voltageAB”: 450,
“voltageBC”: 400,
“voltageCA”: 380,
“currentA”: 5,
“currentB”: 6,
“currentC”: 7,
“powerFactor”: 90,
“measuredSpeed”: 1800,
“powerDraw”: 50,
“totalHarmonicDistortion”: 10,
“insulationResistance”: 20,
“vibration”: 20,
“surgeMotorCircuit”: 10
}
]
}

