This event object is used when a bot joins a team/group or 1:N message room.
It occurs in the following cases, where an event object whose type property is "join" is sent.
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Y | Set this parameter to "join". |
| source | object | Y | The subject that sent a callback message. |
| source.channelId | string | Y | The message room ID to which the bot was invited. |
| source.domainId | number | Y | The domain ID to which the bot was invited. |
| issuedTime | string | Y | The date and time when the event occurred, in RFC 3339 format. |
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": "join", "source": { "channelId": "12345", "domainId": 40029600 }, "issuedTime":"2022-01-04T05:16:05Z"}It should return HTTP status 200 if successful.
The HTTP request sent by a callback is not resent even if it failed.
HTTP/1.1 200 OKContent-Type: application/jsonServer: YOUR_SERVER_HOST_NAMEContent-Length: 0