Skip to main content

Outgoing Webhooks

Tramline's outgoing webhooks notify you in real-time when certain events happen in your account. Webhooks are HTTPS POST requests made to an endpoint of your choice that you can then implement custom business logic for. For example, you can receive a webhook when the release first kicks off. Your endpoint that receives this webhook can then process the payload of the webhook to automate some internal process you have based on this event, such as triggering a different pipeline, creating a ticket, or sending a custom notification or email to your team.

note

Tramline uses the excellent product Svix to provide the webhook functionality in Tramline. The portal and endpoints are directly configured on Svix's platform.

Webhook event catalogโ€‹

These are some of the events that you can receive from Tramline.

Event NameDescriptionFields
release.startedThis webhook event is triggered when the release first kicks off from Tramline. This is around the same time a release branch is cut and a version bump PR is created by Tramline.platform, release_branch, release_version
rc.finishedThis webhook event is triggered when an RC (Release Candidate) step is completed. This means, that a build is ready, and it has been delivered to all the configured submissions.build_number, diff_changelog, full_changelog, platform, release_branch, release_version
release.completedThis webhook event is triggered when a release successfully completes. This is after all the finalization work is done (pending PRs are resolved, tags are cut etc.)platform, release_branch, release_version

The complete webhook event catalog is maintained at webhook.events.tramline.dev.

How to enableโ€‹

Enable webhooks in your Release settings page.

Once it's enabled and the form is saved, you will be able to grab the portal link from the same page in a few minutes. This portal is unique to you and only you can access it.

tip

The portal link that you get from Tramline expires after 6 hours. To get a new link, simply refresh the release settings page."

Once the portal link is ready, you can start configuring endpoints for a single event or a set of events. To start, add an endpoint from the Svix portal.

Once the endpoint is configured, you have a few optional settings. If your endpoint is secure, you can provide authorization headers (or other metadata headers) to the endpoint on this page. You can also transform the payload that we send to tweak the data you receive at your endpoint.

And that's it!

Audit log in Tramlineโ€‹

Tramline maintains a log of all the webhook events we triggered from our end. Once the release starts, you can find the logs on the top right sidebar of the release page.

This event list verifies the events sent from our system. To check the logs of the actual delivery of the webhook to your endpoint, just head back to the Svix portal and it will show the delivery details per endpoint.