Login Webhook

The login webhook is used to provide real-time notifications or callbacks related to user login events.

Login.success: This event is triggered when the users manage to log in to their account successfully.

{
  "entity": "event",
  "user_id": "65e01719d03692125f1f323f",
  "event": "login.success",
  "contains": [
    "user"
  ],
  "payload": {
    "user": {
      "phoneNumber": "8383884833",
      "email": "fvdzcxz@rsgfdcx.fvc",
      "userId": "65e01719d03692125f1f323f",
      "country": "IN",
      "address": {
        "apartment": "",
        "area": "",
        "pincode": "",
        "landmark": "",
        "city": "",
        "state": "",
        "country": ""
      },
      "name": "dfsxzc dvzxc",
      "city": "new delhi (okhla phase i)",
      "location": {
        "latitude": 28.5223,
        "longitude": 77.2849,
        "postcode": "110001"
      },
      "username": "8383884833"
    }
  },
  "client_info": {
    "userAgent": "axios/0.21.1",
    "country": "India",
    "countryCode": "IN",
    "deviceType": "desktop"
  },
  "created_at": 1709184842
}

Login.failed: This event is triggered when the users can't log in to their account.

{
  "entity": "event",
  "user_id": "65e026f7d03692125f1f36fa",
  "event": "login.failed",
  "contains": [
    "user"
  ],
  "payload": {
    "user": {
      "phoneNumber": "8943489898",
      "userId": "65e026f7d03692125f1f36fa",
      "country": "IN",
      "address": {
        "apartment": "",
        "area": "",
        "pincode": "",
        "landmark": "",
        "city": "",
        "state": "",
        "country": ""
      },
      "name": "",
      "city": "new delhi (okhla phase i)",
      "location": {
        "latitude": 28.5223,
        "longitude": 77.2849,
        "postcode": "110001"
      },
      "username": "8943489898"
    }
  },
  "client_info": {
    "deviceType": "desktop"
  },
  "created_at": 1709189670
}

Last updated