curl --request POST \
--url https://api.honeycomb.io/1/goals/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "deployment.finished",
"version": 1,
"id": "gha-9182734512-1",
"data": {
"service": "checkout",
"service_version": "2026.11.12-4f2a9c1"
}
}
'{
"outcomes": [
{
"goal_id": "hcagl_01m7984sdz4kcccerwsxcn1nxr",
"dataset": "checkout-api",
"outcome": "opened"
},
{
"goal_id": "hcagl_01m7984sdz4kcccerwsxcn1nxr",
"dataset": "checkout-worker",
"outcome": "opened"
}
]
}Send a Goal Event
Send one event to a goal. The webhook key gives the team and the goal, so the body has no team or goal field. Honeycomb responds after it stores the event, and the response lists one outcome for each dataset of the event.
Send a deployment.finished event after each deployment of a service.
If the goal covers the service, it opens a case for the deployed version in each dataset, and an agent run examines each case.
EU teams send events to https://api.eu1.honeycomb.io/1/goals/events.
Get the webhook key
Open a Watch a release goal in Honeycomb. In the section that says when the goal runs, turn on Listen for webhook event, enter a label, and select Save.
Honeycomb shows the key one time, so store it as a secret, such as the GitHub Actions secret HONEYCOMB_GOAL_WEBHOOK.
Send the key in the Authorization header: Authorization: Bearer <webhook key>. Other Honeycomb API keys, such as Ingest or Configuration keys, get 401.
If your team requires mTLS, Honeycomb does not check a client certificate for webhook keys yet. A webhook key can only send events to its goal.
If you select Generate New Key later, the previous key stops working immediately. Update the secret in each pipeline that sends events to the goal.
Fields
environmentis the slug of the environment where the deployment occurred. It is required only if the goal covers more than one environment. A deployment to two environments is two events.data.datasetslists the datasets that have the telemetry of the service. It is required only if the dataset name is different from the service name. Each dataset opens its own case.- Field names are case-sensitive, and each key can appear only one time. A key that differs from a field name only in case, such as
TYPE, is an unknown field. data.attributesaccepts any key, with string values. We recommendcommit_shaandprevious_version, so the agent run can compare the deployed commit with telemetry and with the previous version.
Retries
A retry must send the same id. If the goal already holds an event with that id, the outcome is duplicate, so a retry never opens a second case.
A new deployment must send a new id. Honeycomb finds a duplicate by the id, the service, the environment, and the dataset, but not by service_version. If a new deployment sends an id that the goal already holds, the outcome is duplicate and no case opens, even if the version is different.
If one pipeline run deploys more than one service, put the service name in the id.
Status codes
Each error response is an RFC 7807 problem (application/problem+json) with status, type, title, and detail.
It also has the error field, with the same text as detail, so a script can print one field for every error.
200: Honeycomb stored the event.400: The body is not one JSON object, or it is not valid UTF-8. Correct the request.401: The webhook key is missing, malformed, unknown, or revoked. Correct the key.403: Goal events are not enabled for the team, or Honeycomb Intelligence is turned off for the team. Ask Honeycomb for access, or ask a team owner to turn on Honeycomb Intelligence.408: The request stopped sending its body before Honeycomb read all of it. This response has no body. Send the event again with the sameid.413: The body is larger than 16 KB. Correct the request.422: Thetype, theversion, or a field is unknown or invalid, or a required field is missing. This includes a missingenvironmentfor a goal that covers more than one environment, and anenvironmentthat no goal of the webhook key covers.type_detailhas one entry for each bad field that Honeycomb found, with the field path (such asdata.datasets.1), a code, and a description. An unknown field, a repeated key, or a value of the wrong type is reported alone, anddatais checked only after the other fields are valid, so a correction can show the next problem. Correct the request.429: The team is over the rate limit. Send the event again after the time in theRetry-Afterheader, with the sameid.503: Honeycomb could not store the event. Send the event again with the sameid.
Send the event from GitHub Actions
Add this step after the step that deploys your service. Set HONEYCOMB_GOAL_WEBHOOK as a repository secret, and replace checkout with the name of your service.
- name: Report the deployment to Honeycomb
if: success()
continue-on-error: true
env:
HONEYCOMB_GOAL_WEBHOOK: ${{ secrets.HONEYCOMB_GOAL_WEBHOOK }}
run: |
curl --fail-with-body --silent --show-error \
--retry 8 --retry-max-time 300 --retry-connrefused --max-time 30 \
-X POST https://api.honeycomb.io/1/goals/events \
-H "Authorization: Bearer $HONEYCOMB_GOAL_WEBHOOK" \
-H "Content-Type: application/json" \
-d '{
"type": "deployment.finished",
"version": 1,
"id": "gha-${{ github.run_id }}-${{ github.run_attempt }}-checkout",
"data": {
"service": "checkout",
"service_version": "${{ github.sha }}",
"attributes": {
"commit_sha": "${{ github.sha }}",
"repository": "${{ github.repository }}",
"deploy_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}
}'
If Honeycomb responds with 429 or 503, or curl cannot connect, the step sends the event again for approximately four minutes.
The step never fails the pipeline. It prints the response body in the job log, so read the log of the first run to confirm that the response is 200.
curl --request POST \
--url https://api.honeycomb.io/1/goals/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "deployment.finished",
"version": 1,
"id": "gha-9182734512-1",
"data": {
"service": "checkout",
"service_version": "2026.11.12-4f2a9c1"
}
}
'{
"outcomes": [
{
"goal_id": "hcagl_01m7984sdz4kcccerwsxcn1nxr",
"dataset": "checkout-api",
"outcome": "opened"
},
{
"goal_id": "hcagl_01m7984sdz4kcccerwsxcn1nxr",
"dataset": "checkout-worker",
"outcome": "opened"
}
]
}Authorizations
Authenticate using the webhook key of a goal.
Pass the key as a Bearer token in the Authorization header:
Authorization: Bearer <webhook key>
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
The event. The body can be at most 16 KB.
One event for a goal.
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.
x >= 9783072000001794506651000
Response
Success
The outcomes of a Goal Event.