Skip to main content
POST

Authorizations

Authorization
string
header
required

Authenticate using the webhook key of a goal.

Pass the key as a Bearer token in the Authorization header:

To get the key, open a Watch a release goal, turn on Listen for webhook event in the section that says when the goal runs, enter a label, and select Save. Honeycomb shows the key one time. If you generate a new key, the previous key stops working immediately.

Body

application/json

The event. The body can be at most 16 KB.

One event for a goal.

type
enum<string>
required

What occurred.

Available options:
deployment.finished
version
enum<integer>
required

The schema version of data for this type. A new version is added only if a field is removed, renamed, or changes its meaning.

Available options:
1
id
string
required

Your ID for this event. A retry must send the same id. A new deployment must send a new id.

Required string length: 1 - 200
Example:

"gha-9182734512-1"

data
object
required

The data of a deployment.finished event, version 1.

time
integer<int64>

When the deployment finished, as the number of milliseconds since the Unix epoch (UTC). The default is the time when Honeycomb receives the event. The value must be at least 978307200000 (2001-01-01 UTC), so a time in seconds is refused, and at most 5 minutes after the time when Honeycomb receives the event. Write it as a whole number, without a fraction or an exponent.

Required range: x >= 978307200000
Example:

1794506651000

environment
string

The slug of the environment where the deployment occurred. Required only if the goal covers more than one environment.

Minimum string length: 1
Example:

"production"

Response

Success

The outcomes of a Goal Event.

outcomes
object[]
required

One outcome for each dataset of the event.

reason
enum<string>

Set if the goal did not take part in the event.

  • no_matching_goal: The goal is paused, archived, or deleted. outcomes is empty or has only unknown_dataset outcomes.
Available options:
no_matching_goal