{
  "info": {
    "_postman_id": "akal-mobile-api-collection-v2",
    "name": "AKAL Mobile Client API",
    "description": "AKAL mobile API. Every response is HTTP 200 \u2014 branch on the `code` field in the payload, never the HTTP status. Set {{base_url}} and {{token}} in the environment; the Verify OTP request stores the token automatically.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "1. Bootstrap",
      "item": [
        {
          "name": "Get Master Data",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/masterData",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "masterData"
              ]
            },
            "description": "Splash screen. Version gate, support info and the emergency category catalogue."
          }
        },
        {
          "name": "Get System Config",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/system/config",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "system",
                "config"
              ]
            },
            "description": "Dashboard bootstrap. Client-safe values only \u2014 never server secrets."
          }
        }
      ]
    },
    {
      "name": "2. Auth",
      "item": [
        {
          "name": "Request OTP",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/auth/otp/request",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "auth",
                "otp",
                "request"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone_number\": \"+919599110203\"\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('business code is 200', () => pm.expect(pm.response.json().code).to.eql(200));"
                ]
              }
            }
          ]
        },
        {
          "name": "Verify OTP",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/auth/otp/verify",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "auth",
                "otp",
                "verify"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone_number\": \"+919599110203\",\n  \"otp\": \"123456\",\n  \"device_detail\": {\n    \"device_name\": \"iPhone 15 Pro\",\n    \"os_version\": \"iOS 17.4\",\n    \"app_version\": \"1.0.0\"\n  }\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const body = pm.response.json();",
                  "if (body.code === 200 && body.data && body.data.token) {",
                  "    pm.environment.set('token', body.data.token);",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Resend OTP",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/auth/otp/resend",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "auth",
                "otp",
                "resend"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone_number\": \"+919599110203\"\n}"
            }
          }
        },
        {
          "name": "Complete Registration",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/auth/register",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "auth",
                "register"
              ]
            },
            "description": "Called when Verify OTP returned next_action = register.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"full_name\": \"John Doe\",\n  \"medical_info\": \"Allergic to penicillin\"\n}"
            }
          }
        },
        {
          "name": "Logout",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/auth/logout",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "auth",
                "logout"
              ]
            },
            "description": "Revokes the current token only."
          }
        },
        {
          "name": "Delete Account",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/auth/account",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "auth",
                "account"
              ]
            },
            "description": "Soft delete. Releases the phone number; re-registering issues a NEW user id."
          }
        }
      ]
    },
    {
      "name": "3. Profile & Settings",
      "item": [
        {
          "name": "Get Profile",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/users/me",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "users",
                "me"
              ]
            }
          }
        },
        {
          "name": "Update Profile",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/users/me",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "users",
                "me"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"full_name\": \"John Doe\",\n  \"medical_info\": \"Allergic to penicillin\",\n  \"auto_sos_on_startup\": true\n}"
            }
          }
        },
        {
          "name": "Update Live Location",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/users/location",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "users",
                "location"
              ]
            },
            "description": "On app open and after ~100 m of movement. Not live tracking \u2014 that is socket-only.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"lat\": 21.1702,\n  \"lng\": 72.8311\n}"
            }
          }
        },
        {
          "name": "Get Settings",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/users/me/settings",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "users",
                "me",
                "settings"
              ]
            }
          }
        },
        {
          "name": "Update Settings",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/users/me/settings",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "users",
                "me",
                "settings"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"emergency_type\": \"medical\",\n  \"notification_radius_km\": 7.5,\n  \"voice_note_during_sos\": false\n}"
            }
          }
        }
      ]
    },
    {
      "name": "4. Emergencies",
      "item": [
        {
          "name": "Get Nearby Emergencies",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/emergencies/nearby?lat=21.1702&lng=72.8311&radius_km=5&limit=20",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "emergencies",
                "nearby"
              ],
              "query": [
                {
                  "key": "lat",
                  "value": "21.1702"
                },
                {
                  "key": "lng",
                  "value": "72.8311"
                },
                {
                  "key": "radius_km",
                  "value": "5"
                },
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            }
          }
        },
        {
          "name": "Create Emergency (SOS)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/emergencies",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "emergencies"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"category\": \"medical\",\n  \"note\": \"Chest pain, conscious\",\n  \"latitude\": 21.1702,\n  \"longitude\": 72.8311,\n  \"radius_km\": 5\n}"
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const body = pm.response.json();",
                  "if (body.code === 200 && body.data && body.data.id) {",
                  "    pm.environment.set('emergency_id', body.data.id);",
                  "    if (body.data.chat_room_id) { pm.environment.set('room_id', body.data.chat_room_id); }",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Get Emergency",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/emergencies/{{emergency_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "emergencies",
                "{{emergency_id}}"
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const body = pm.response.json();",
                  "if (body.code === 200 && body.data) {",
                  "    if (body.data.id) { pm.environment.set('emergency_id', body.data.id); }",
                  "    if (body.data.chat_room_id) { pm.environment.set('room_id', body.data.chat_room_id); }",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Accept Emergency",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/emergencies/{{emergency_id}}/accept",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "emergencies",
                "{{emergency_id}}",
                "accept"
              ]
            },
            "description": "409 capacity full or already accepted, 410 no longer active, 422 own emergency."
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const body = pm.response.json();",
                  "if (body.code === 200 && body.data) {",
                  "    if (body.data.chat_room_id) { pm.environment.set('room_id', body.data.chat_room_id); }",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Decline Emergency",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/emergencies/{{emergency_id}}/decline",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "emergencies",
                "{{emergency_id}}",
                "decline"
              ]
            }
          }
        },
        {
          "name": "Resolve Emergency",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/emergencies/{{emergency_id}}/resolve",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "emergencies",
                "{{emergency_id}}",
                "resolve"
              ]
            },
            "description": "Requester only; 403 otherwise."
          }
        },
        {
          "name": "Emergency History",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/emergencies/history?limit=20",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "emergencies",
                "history"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "5. Chat",
      "item": [
        {
          "name": "Get Message History",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/chats/{{room_id}}/messages?limit=30",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "chats",
                "{{room_id}}",
                "messages"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "30"
                }
              ]
            },
            "description": "Keyset pagination — pass next_cursor, never an offset."
          }
        },
        {
          "name": "Send Message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"Hello everyone, emergency response coordination.\",\n  \"message_type\": \"text\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/chats/{{room_id}}/messages",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "chats",
                "{{room_id}}",
                "messages"
              ]
            }
          }
        },
        {
          "name": "Get Chat Room Info",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/chats/{{room_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "chats",
                "{{room_id}}"
              ]
            }
          }
        },
        {
          "name": "Update Group Info",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Emergency Response Team Alpha\",\n  \"description\": \"Coordination channel for nearby responders.\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/chats/{{room_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "chats",
                "{{room_id}}"
              ]
            }
          }
        },
        {
          "name": "List Group Participants",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/chats/{{room_id}}/participants",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "chats",
                "{{room_id}}",
                "participants"
              ]
            }
          }
        },
        {
          "name": "Add Group Participant",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone_number\": \"+919599110499\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/chats/{{room_id}}/participants",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "chats",
                "{{room_id}}",
                "participants"
              ]
            }
          }
        },
        {
          "name": "Leave Group",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/chats/{{room_id}}/leave",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "chats",
                "{{room_id}}",
                "leave"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "6. Safety & Moderation",
      "item": [
        {
          "name": "Submit Abuse Report",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"target_type\": \"user\",\n  \"target_id\": \"1\",\n  \"reason\": \"harassment\",\n  \"details\": \"Repeatedly sending inappropriate messages in group.\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/reports",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "reports"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "7. Notifications",
      "item": [
        {
          "name": "Get Notifications",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/notifications?limit=20",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "notifications"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "7. Media",
      "item": [
        {
          "name": "Upload File",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/uploads",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "uploads"
              ]
            },
            "description": "Lands on local disk, replicates to S3 on a queue. Type validated from the file bytes.",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": []
                },
                {
                  "key": "context",
                  "value": "emergency",
                  "type": "text"
                }
              ]
            }
          }
        },
        {
          "name": "Fetch Media",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "x-platform",
                "value": "android",
                "type": "text"
              },
              {
                "key": "x-app-version",
                "value": "1.0.0",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/media/{{media_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "media",
                "{{media_id}}"
              ]
            },
            "description": "Local cache hit, else S3 with local re-cache."
          }
        }
      ]
    },
    {
      "name": "8. Emergency Contacts",
      "item": [
        {
          "name": "Get Emergency Contacts",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/users/me/contacts",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "users",
                "me",
                "contacts"
              ]
            },
            "description": "Fetch list of active emergency contacts for the authenticated user."
          }
        },
        {
          "name": "Add Emergency Contact",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Dr. Sharma\",\n  \"phone_number\": \"+919876543210\",\n  \"relationship\": \"Doctor\",\n  \"is_primary\": true,\n  \"notify_on_sos\": true\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/users/me/contacts",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "users",
                "me",
                "contacts"
              ]
            },
            "description": "Add a new trusted emergency contact."
          }
        },
        {
          "name": "Update Emergency Contact",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Dr. Sharma Senior\",\n  \"relationship\": \"Family Doctor\",\n  \"is_primary\": true\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/users/me/contacts/{{contact_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "users",
                "me",
                "contacts",
                "{{contact_id}}"
              ]
            },
            "description": "Update an existing emergency contact."
          }
        },
        {
          "name": "Delete Emergency Contact",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/users/me/contacts/{{contact_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "users",
                "me",
                "contacts",
                "{{contact_id}}"
              ]
            },
            "description": "Soft delete an emergency contact."
          }
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "https://akal.appringer.co.in",
      "type": "string"
    },
    {
      "key": "token",
      "value": "",
      "type": "string"
    },
    {
      "key": "emergency_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "room_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "media_id",
      "value": "",
      "type": "string"
    }
  ]
}
