POST
/
topics
/
{topic_slug}
/
events
Send an event
curl --request POST \
  --url https://api.sailhouse.dev/topics/{topic_slug}/events \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {},
  "metadata": {},
  "send_at": "<string>",
  "wait_group_instance_id": "<string>"
}'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

topic_slug
string
required

Body

application/json
data
object
required

The event data, as a JSON object

metadata
object

Additional metadata for the event

send_at
string | null

RFC3339 formatted string for when the event should be sent to subscriptions

wait_group_instance_id
string | null

ID of the wait group instance to which this event should be added to

Response

Success

id
string
required

The ID of the event that was sent.