Left Event

This event object is used when a user leaves the team/group or 1:N message room where a bot is present.
It occurs in the following cases, where an event object whose type property is "left" is sent.

  • When a user leaves the team/group or 1:N message room
  • When a user is forcibly removed from the team/group or 1:N message room
  • When the team/group or 1:N message room is closed for some reasons

Request {#left-event-request}

ParameterTypeRequiredDescription
typestringYSet this parameter to "left".
sourceobjectYThe subject that sent a callback message.
source.channelIdstringYThe message room ID to which the bot was invited.
source.domainIdnumberYThe domain ID to which the bot was invited.
issuedTimestringYThe date and time when the event occurred (format: YYYY-MM-DDThh:mm:ss.SSSZ).
membersarrayYList of users invited to the team/group or 1:N message room.

Request example {#left-event-request-example}

POST /callback HTTP/1.1Host: YOUR_SERVER_HOST_NAMEContent-type: application/json; charset=UTF-8X-WORKS-Signature: 9crxWhZ9aQO/9ruUM4MH3dF/WRGYRhj0vSR4cRyJfHQ=X-WORKS-BotId: 123{  "type": "left",  "source": {    "channelId": "12345",    "domainId": 40029600  },  "issuedTime":"2022-01-04T05:16:05.716Z",  "members":["userf7da-f82c-4284-13e7-030f3b4c756x"]}

Response (customer's server receiving messages -> message server) {#left-event-response}

It should return HTTP status 200 if successful.
The HTTP request sent by a callback is not resent even if it failed.

Response {#left-event-response-example}

HTTP/1.1 200 OKContent-Type: application/jsonServer: YOUR_SERVER_HOST_NAMEContent-Length: 0