POST/bots/{botId}/channels/{channelId}/messages

Sends messages to a message room with a specified bot included.
Using a template or quick reply button, you can allow the server to receive a postback message as a callback. For more information about the postback type, see Receive messages (callback).

The structures of each template and the quick reply are as follows. Image
[Figure Button template]
Image
[Figure List template]
Image
[Figure Carousel template]
Image
[Figure Image carousel template]
Image
[Figure Flexible template]
Image
[Figure Quick reply]

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

bot.message
bot

HTTP Request

POSThttps://www.worksapis.com/v1.0/bots/{botId}/channels/{channelId}/messages

Path Parameters

ParameterTypeDescription
botId integer 

Bot ID


required
example : 2000001
format : int64 
channelId string 

Message room ID

Note

  • Select Channel ID from the drawer menu in a message room to view the channelId.

required
example : 12345a12-b12c-12d3-e123fghijkl 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

For more information, see Message types.

Response

HTTP 201

OK