User My List Groups

GET /user/my/newsletters

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
        • id string
        • state object
          Hide state attribute Show state attribute object
          • type string
        • thread_metadata object
          Hide thread_metadata attributes Show thread_metadata attributes object
          • creation_time string
          • invite string
          • name object
            Hide name attributes Show name attributes object
            • text string
            • id string
            • update_time string
          • description object
            Hide description attributes Show description attributes object
            • text string
            • id string
            • update_time string
          • subscribers_count string
          • verification string
          • picture object
            Hide picture attributes Show picture attributes object
            • url string
            • id string
            • type string
            • direct_path string
          • preview object
            Hide preview attributes Show preview attributes object
            • url string
            • id string
            • type string
            • direct_path string
          • settings object
            Hide settings attribute Show settings attribute object
            • reaction_codes object
              Hide reaction_codes attribute Show reaction_codes attribute object
              • value string
        • viewer_metadata object
          Hide viewer_metadata attributes Show viewer_metadata attributes object
          • mute string
          • role 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/newsletters
curl \
 --request GET 'http://localhost:3000/user/my/newsletters' \
 --user "username:password"
Response examples (200)
{
  "code": "SUCCESS",
  "message": "Success get list newsletter",
  "results": {
    "data": [
      {
        "id": "120363144038483540@newsletter",
        "state": {
          "type": "active"
        },
        "thread_metadata": {
          "creation_time": "1688746895",
          "invite": "0029Va4K0PZ5a245NkngBA2M",
          "name": {
            "text": "WhatsApp",
            "id": "1688746895480511",
            "update_time": "1688746895480511"
          },
          "description": {
            "text": "WhatsApp's official channel. Follow for our latest feature launches, updates, exclusive drops and more.",
            "id": "1689653839450668",
            "update_time": "1689653839450668"
          },
          "subscribers_count": "0",
          "verification": "verified",
          "picture": {
            "url": "string",
            "id": "1707950960975554",
            "type": "IMAGE",
            "direct_path": "/v/t61.24694-24/416962407_970228831134395_8869146381947923973_n.jpg?ccb=11-4&oh=01_Q5AaIIvOIeu3l0HCZWILrmr-dGR_vXFqnhUeytw0-ojPc4hL&oe=670D95B1&_nc_sid=5e03e0&_nc_cat=110"
          },
          "preview": {
            "url": "string",
            "id": "1707950960975554",
            "type": "PREVIEW",
            "direct_path": "/v/t61.24694-24/416962407_970228831134395_8869146381947923973_n.jpg?stp=dst-jpg_s192x192&ccb=11-4&oh=01_Q5AaIHO-DQklqm3q3awF7xwji_WAn9DkgZASQA0B2Ct0qbSa&oe=670D95B1&_nc_sid=5e03e0&_nc_cat=110"
          },
          "settings": {
            "reaction_codes": {
              "value": "ALL"
            }
          }
        },
        "viewer_metadata": {
          "mute": "off",
          "role": "subscriber"
        }
      }
    ]
  }
}
Response examples (500)
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "you are not loggin",
  "results": {}
}