POST /chat.delete

Deletes a message.

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/x-www-form-urlencoded"

token String No

Authentication token. Requires scope: chat:write

Request body fields

Name Type Required Description
channel String No

Channel containing the message to be deleted.

ts Number No

Timestamp of the message to be deleted.

as_user Boolean No

Pass true to delete the message as the authed user with chat:write:user scope. Bot users in this context are considered authed users. If unused or false, the message will be deleted with chat:write:bot scope.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.