POST/bots/{botId}/users/{userId}/messages

Makes a bot send messages to a specified user.
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}/users/{userId}/messages

Path Parameters

ParameterTypeDescription
botId integer 

Bot ID


required
example : 2000001
format : int64 
userId string 

User ID


required
example : userf7da-f82c-4284-13e7-030f3b4c756x 

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