# Example Call

An example `curl` command for uploading data is shown below.

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

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