Slack Webhook API (version v2.*.*)

acknowledge_app_action

Immediately send a 200 OK message to acknowledge successful receipt of an app action. You should use respond_to_app_action to send a composed response. More information at https://api.slack.com/actions

This operation has no parameters

acknowledge_interaction

Immediately send a 200 OK message to acknowledge successful receipt of an interaction. In addition, you can use post_message_to_interaction to send a composed response. More information at https://api.slack.com/messaging/interactivity/enabling

This operation has no parameters

acknowledge_slash_command

Immediately acknowledge successful receipt of a slash command. The default behavior is to send back the command invoked in_channel. More information at https://api.slack.com/slash-commands#responding_to_commands

This operation has no parameters

get_request_payload

Returns the request payload from a webhook event, if available.

Parameters

http_event (required)

The http_event object received in the webhook.

Type: OBJECT

post_message_to_incoming_webhook

Post a message to the configured channel for a Slack app's incoming webhook. More information at https://api.slack.com/incoming-webhooks

Parameters

webhook_url (required)

Type: STRING

attachments

Optional attachments to add to the response.

Type: ARRAY

blocks

Optional blocks to add to the response.

Type: ARRAY

response_type

Either in_channel or ephemeral.

Type: STRING

text

Message to display in response to the action invocation in Slack.

Type: STRING

thread_ts

Add the ts parameter from the relevant message to make this appear as a reply in a thread.

Type: STRING

respond_to_app_action

Add a response to an invoked app action. For responses to interactive components (buttons, forms, etc), see the respond_to_interaction operation. By default, the response_type is ephemeral. More information at https://api.slack.com/actions

Parameters

http_event (required)

The http_event object received in the webhook.

Type: OBJECT

attachments

Optional attachments to add to the response.

Type: ARRAY

response_type

Either in_channel or ephemeral. Default is ephemeral.

Type: STRING

text

Message to display in response to the action invocation in Slack.

Type: STRING

respond_to_interaction

Add a composed response to an interaction. For responses to app actions, see the respond_to_app_action operation. By default, the response will replace the original response. More information at https://api.slack.com/messaging/interactivity/enabling

Parameters

http_event (required)

The http_event object received in the webhook.

Type: OBJECT

attachments

Optional attachments to add to the message.

Type: ARRAY

blocks

Optional blocks to add to the message.

Type: ARRAY

delete_original

If true, and if delete_original is the only property, the entire response will be deleted. If a new message is included, the original will be replaced by the new message.

Type: BOOLEAN

replace_original

If true, replaces the content of the original response.

Type: BOOLEAN

response_type

Either in_channel or ephemeral.

Type: STRING

text

Message to post in Slack.

Type: STRING

respond_to_slash_command

Add a response to an invoked slash command. By default, the response_type is ephemeral. More information at https://api.slack.com/slash-commands#responding_to_commands

Parameters

http_event (required)

The http_event object received in the webhook.

Type: OBJECT

attachments

Optional attachments to add to the response.

Type: ARRAY

blocks

Optional blocks to add to the message.

Type: ARRAY

response_type

Either in_channel or ephemeral. Default is ephemeral.

Type: STRING

text

Message to display in response to the command invocation in Slack.

Type: STRING