> For the complete documentation index, see [llms.txt](https://docs.sorry-cypress.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sorry-cypress.dev/integrations/slack-integration.md).

# Slack Integration

Sorry-cypress integrates with [Slack Webhooks API](https://api.slack.com/messaging/webhooks). Use the web dashboard Project Settings to add or edit Slack Integration. Also you can filter messages by event type, by test suite result and by branch.

![](/files/-MYJlJhguUdvevygAbaB)

Here's an example of Slack message posted by sorry-cypress:

![](/files/-MYJs3KXUTIvTlHfUyW6)

If you are using the in-memory director and do not have a dashboard you can add hooks to your project via a HTTP `POST` to the `/hooks` route of your director.. Ensure your "projectId" matches that in your cypress.json or cypress.config.js that you wish to add hooks to. Note this will replace all the hooks for the given projectId.

```
//Example POST body to localhost:1234/hooks

{
  "projectId": "test",
  "hooks": [
    {
      "hookId": "1",
      "url": "http://localhost:3005",
      "username": "user",
      "hookEvents": [
        "INSTANCE_FINISH",
        "RUN_FINISH"
      ],
      "hookType": "SLACK_HOOK",
      "slackResultFilter": "ONLY_FAILED"
      "slackBranchFilter": ["main"]
    }
  ]
}

```
