Chat Post Ephemeral
Sends an ephemeral message to a user in a channel.
Authorization
slackAuth chat:write:user, chat:write:botIn: header
Scope: chat:write:user, chat:write:bot
Header Parameters
Authentication token. Requires scope: chat:write
Value in
- "application/x-www-form-urlencoded"
Request Body
application/x-www-form-urlencoded
Pass true to post the message as the authed user. Defaults to true if the chat:write:bot scope is not included. Otherwise, defaults to false.
A JSON-based array of structured attachments, presented as a URL-encoded string.
A JSON-based array of structured blocks, presented as a URL-encoded string.
Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.
Emoji to use as the icon for this message. Overrides icon_url. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.
URL to an image to use as the icon for this message. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.
Find and link channel names and usernames.
Change how messages are treated. Defaults to none. See below.
How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.
Provide another message's 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.
id of the user who will receive the ephemeral message. The user should be in the channel specified by the channel argument.
Set your bot's user name. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.
Response Body
application/json
application/json
curl -X POST "https://example.com/chat.postEphemeral" \ -H "token: string" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'channel=string&user=string'{ "message_ts": "string", "ok": "True"}
