Get list of user contacts

GET /user/my/contacts

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • code string
    • message string
    • results object
      Hide results attribute Show results attribute object
      • data array[object]
        Hide data attributes Show data attributes object
        • jid string
        • name string
  • 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/my/contacts
curl \
 --request GET 'http://localhost:3000/user/my/contacts' \
 --user "username:password"
Response examples (200)
{
  "code": "SUCCESS",
  "message": "Success get list contacts",
  "results": {
    "data": [
      {
        "jid": "628123123123123@s.whatsapp.net",
        "name": "Aldino Kemal"
      }
    ]
  }
}
Response examples (500)
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "you are not loggin",
  "results": {}
}