This API will soon be deprecated. Please use another API.

    Get Members with Bot Permissions

    Gets a list of members who have permissions to use a bot.

    You can get the information if you choose to allow "only specified members" to use the bot when registering its domain.

    API Type

    Server API

    Request URL

    https://apis.worksmobile.com/{API ID}/message/getMemberList

    HTTP Method

    POST(Content-Type: application/json; charset=UTF-8)

    Request

    Parameter Type Required Description
    domainId number Y Domain ID
    botNo number Y Message bot number

    Request Example

    {
      "domainId": 123456,
      "botNo": 123
    }
    

    Response

    It returns code 200 when the API call is successful.

    Property Type Required Description
    code number Y ● 200: Success
    ● 4xx: Client request errors
    ● 5xx: Unexpected errors and server internal errors
    message string Y Description about the code
    accountIdList string Y List of members

    Response Example

    {
        "code": 200,
        "message": "OK",
        "accountIdList": ["user1@example.com", "user2@example.com"]
    }