/chat.postEphemeral
POST
/chat.postEphemeral
chat
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://slack.com/api/chat.postEphemeral' \
--header 'token;' \
--data-urlencode 'channel=' \
--data-urlencode 'user='
Response Response Example
200 - response
{
"message_ts": "1502210682.580145",
"ok": true
}
Request
Header Params
token
stringÂ
required
chat:write
Body Params application/x-www-form-urlencoded
as_user
stringÂ
optional
attachments
stringÂ
optional
blocks
stringÂ
optional
channel
stringÂ
required
icon_emoji
stringÂ
optional
icon_url
. Must be used in conjunction with as_user
set to false
, otherwise ignored. See authorship below.icon_url
stringÂ
optional
as_user
set to false, otherwise ignored. See authorship below.link_names
stringÂ
optional
parse
stringÂ
optional
none
. See below.text
stringÂ
optional
thread_ts
stringÂ
optional
ts
value to post this message in a thread. Avoid using a reply's ts
value; use its parent's value instead. Ephemeral messages in threads are only shown if there is already an active thread.user
stringÂ
required
id
of the user who will receive the ephemeral message. The user should be in the channel specified by the channel
argument.username
stringÂ
optional
as_user
set to false, otherwise ignored. See authorship below.Responses
Modified at 2023-08-15 05:39:45