Sending an event


Creating an account

First things first, get signed in and create your team.


Creating an app

In Sailhouse, apps are the logical separators for your topics. This could be environments, projects or both!


Create a token

To send an event to an application, we need a token to pass into our SDK.

Go to your new app > Settings > Create


Start sending events

First, adding the SDK package

Adding the package
go get -u

Then, a basic example which reads the token from an environment variable SAILHOUSE_TOKEN.

package main

import (

func main() {
  client := sailhouse.NewSailhouseClient(os.Getenv("SAILHOUSE_TOKEN"))

  client.Publish("awesome-example", map[string]string{
    "message": "Hello World!",

Next steps