Reward-Based Recycling Tracker
  1. BG Task & Python server
Reward-Based Recycling Tracker
  • User
    • Get Profile
      GET
  • Auth
    • Signup
      POST
    • Login
      POST
  • Async Task
    • Storage
      • Get Signed Url
    • BG Task & Python server
      • Py - Get Image Hash
        POST
      • Submission Process
        POST
  • App
    • Submission Process Copy
      POST
  • Email API
    • Success Email
      POST
    • Failure Email
      POST
  1. BG Task & Python server

Submission Process

Developing
POST
/api/process/validate

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
  "visitor_id": "9qcnZChP8902aywKBsmP",
  "device_info": {
    "osName": "Android",
    "osVersion": "13"
  },
  "ip_address": "103.43.65.70",
  "ip_location": {
    "accuracyRadius": 1000,
    "latitude": 21.9974,
    "longitude": 79.0011,
    "postalCode": "n/a",
    "timezone": "Asia/Kolkata",
    "city": {
      "name": "Nagpur"
    },
    "country": {
      "name": "India",
      "code": "IN"
    },
    "continent": {
      "name": "Asia",
      "code": "AS"
    },
    "subdivisions": []
  },
  "image_url": "https://storage.googleapis.com/dev-learn/cdbpbEGez6CMYP314iNuiE.png",
  "item_type": "glass"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/process/validate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "visitor_id": "9qcnZChP8902aywKBsmP",
  "device_info": {
    "osName": "Android",
    "osVersion": "13"
  },
  "ip_address": "103.43.65.70",
  "ip_location": {
    "accuracyRadius": 1000,
    "latitude": 21.9974,
    "longitude": 79.0011,
    "postalCode": "n/a",
    "timezone": "Asia/Kolkata",
    "city": {
      "name": "Nagpur"
    },
    "country": {
      "name": "India",
      "code": "IN"
    },
    "continent": {
      "name": "Asia",
      "code": "AS"
    },
    "subdivisions": []
  },
  "image_url": "https://storage.googleapis.com/dev-learn/cdbpbEGez6CMYP314iNuiE.png",
  "item_type": "glass"
}'

Responses

🟢200Success
application/json
Body

Example
{}
Modified at 2025-02-09 13:39:11
Previous
Py - Get Image Hash
Next
Submission Process Copy
Built with