User Info

GET /user/info

Query parameters

  • phone string

    Phone number with country code

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
    • results object Required
      Hide results attributes Show results attributes object
      • verified_name string
      • status string
      • picture_id string
      • devices array[object]
        Hide devices attributes Show devices attributes object
        • User string
        • Agent integer
        • Device string
        • Server string
        • AD boolean
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • code string

      HTTP Status Code

    • message string

      Detail error message

    • results object

      additional data

  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • code string

      SYSTEM_CODE_ERROR

    • message string

      Detail error message

    • results object

      additional data

GET /user/info
curl \
 --request GET 'http://localhost:3000/user/info' \
 --user "username:password"
Response examples (200)
{
  "code": "SUCCESS",
  "message": "Success",
  "results": {
    "verified_name": "Aldino Kemal",
    "status": "Hello World",
    "picture_id": 1651459152,
    "devices": [
      {
        "User": 6289685021291,
        "Agent": 0,
        "Device": "UNKNOWN",
        "Server": "s.whatsapp.net",
        "AD": true
      }
    ]
  }
}
Response examples (400)
{
  "code": 400,
  "message": "field cannot be blank",
  "results": {}
}
Response examples (500)
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "you are not loggin",
  "results": {}
}