DePINScan Documentation
  • Developer
    • Overview
    • Project Integration
    • Map Integration
      • Quickstart
      • Using the API
      • Endpoints Overview
      • Example Call
    • Map Embedding
    • Reporting Issues
  • User
    • DePINscan Learn-to-Earn: User Guide
    • DePINscan Learn-to-Earn: Token Claiming
Powered by GitBook
On this page
  1. Developer
  2. Map Integration

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
    }
  ]
}'
PreviousEndpoints OverviewNextMap Embedding

Last updated 1 year ago