Example Call

An example curl command for uploading data is shown below.

In your API requests, the fields events, custom and publisher are required. Incorrect or missing fields will result in a 400 error.

curl -X POST 'https://api.depinscan.io/api/upload-device-metrics' -H 'Content-Type: application/json' -H 'Authorization: mc.' -d '{
  "uid": "78a4c60c-**",
  "events": [
    {
      "custom": {
        "longitude": 90.2,
        "latitude": 22
      },
      "publisher": 123123
    },
    {
      "custom": {
        "longitude": 90.2,
        "latitude": 22
      },
      "publisher": 123123
    }
  ]
}'

Last updated