Events, Notifications, Webhooks
Get notified when a change is made.
CloudTruth allows you to subscribe to events.
Use the example code below to configure sending a notification to a Slack channel.
POST to /api/v1/webhooks/
with a payload
organization
is the organization ID for the installing org. I don't know how to advise a user to get this info and we might want to remove it from the request and just infer it in the same way we usually do.
event_types
can be a list containing any combination of these items:
type
can only be slack, until we implement a different event handler
configuration
is a JSON field that requires three keys (these are service-specific, this example is only for Slack):
To generate a Slack API token:
Click "Create New App"
Select "From a manifest"
Paste in the provided manifest (below)
Click "Create"
Click "OAuth & Permissions" on the left nav
Click the "Install to " button
Copy the generated Bot User OAuth Token
Slack App Manifest:
Last updated