Slack unknown key

Hello!

I am trying to setup Slack notifications, but I get

root: unknown key slack

In my .travis.yml I simply have:

notifications:
  slack: workspace:code

What am I doing wrong? Thanks!