API overview
Call | Description |
POST /user-stats/v1/useractivity |
Check if a user has been active in MP based on telephone number or email |
POST /user-stats/v1/useractivity
Accepts a list of requests
Mandatory parameters
Parameter | Mandatory? | Type | Description |
identifier | Mandatory | String | The telephone number or email address on which the check should be performed, telephone numbers must be prefixed with a plus and the country code, and with redundant zeroes omitted, such as +467312345678 |
A single User exists check:
[ { "identifier": "+467312345678" } ]
Multiple User exist checks - all must be correctly formed to get a response:
[ { "identifier": "+467312345678" }, { "identifier": "+467312345679" }, { "identifier": "boss@company.com" } ]
Responses
Successful request HTTP response code 200, multiple responses
[ { "identifier": "+467312345678", "lastActive": "2022-02-17T12:00:13.187Z" }, { "identifier": "boss@company.com", "lastActive": "2022-02-15T07:03:11.232Z" } ]
Successful request HTTP response code 200, no responses
[]
Error Responses
Malformed json HTTP response code 400 Bad Request
{ "message": "JSON parse error", "errorCode": "BAD_REQUEST" }