Get list of participant requests to join group

GET /group/participant-requests

Query parameters

  • group_id string Required

    The group ID to get participant requests for

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
        • requested_at string(date-time)
  • 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 /group/participant-requests
curl \
 --request GET 'http://localhost:3000/group/participant-requests?group_id=120363024512399999%40g.us' \
 --user "username:password"
Response examples (200)
{
  "code": "SUCCESS",
  "message": "Success getting list requested participants",
  "results": {
    "data": [
      {
        "jid": "6289685024091@s.whatsapp.net",
        "requested_at": "2024-10-11T21:27:29+07:00"
      }
    ]
  }
}
Response examples (400)
{
  "code": 400,
  "message": "field cannot be blank",
  "results": {}
}
Response examples (500)
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "you are not loggin",
  "results": {}
}