How to obtain GitX Webhook events via Harness API
long-term
C
Conscious Angelfish
To obtain GitX webhook events via the Harness API, a feature is needed to expose webhook event data (e.g., commits, PRs, issues) from Git repositories integrated with GitX. This would allow users to programmatically retrieve and act upon events through API endpoints. Raising this feature request ensures seamless event handling across workflows.
Log In
Prasad Satam
marked this post as
long-term
Conscious Angelfish
Thank you for the clarification, and apologies for the delayed response. Your ask is clear — you want a public API to programmatically retrieve the same GitX webhook event data that's currently visible in the Harness UI under Account Settings > Webhooks > Events tab.
We've evaluated this and confirmed:
- The webhook event data (event ID, status, timestamp, payload) is captured and displayed in the UI
- However, there is no public API currently available to retrieve this data programmatically
We've logged this as an enhancement on our backlog. The good news is that the internal infrastructure to serve this data already exists (it powers the UI), so this is primarily about exposing it as a documented public API endpoint.
We don't have a specific timeframe to share at this point, but we're tracking this for future prioritization. We encourage you and your team to continue voting on this post — vote count directly influences how we prioritize.
In the meantime, as a potential workaround:
- You can monitor webhook delivery status on the Git provider side (e.g., GitHub's webhook delivery logs under repo Settings > Webhooks > Recent Deliveries) to detect failures in event delivery to Harness
- For sync health visibility, the GitX Health Status page in Harness provides an overview of entity sync state
We'll update this post as we make progress. Thank you for helping us improve the GitX API experience!
Prasad Satam
Conscious Angelfish - Can you please elaborate on the ask here? Are you looking for an API that Harness exposes which will enable you to retrieve all the webhook events that Harness received for a particular entity (For e.g. a pipeline or a template)? If yes, you can receive these events directly from GitHub. Are you looking for something else?
C
Conscious Angelfish
Prasad Satam apologies that i missed the activity on this FR .
What I was looking for is :
Currently we have a GitX Webhook under Account > Settings > Webhook
On the Harness UI for the webhook there is a section "View All Events" which shows the events processed by the webhook for the given github repo that is connected ( basically event per commit ) - along with a status field marked SUCCESS/WARNING/FAILED
We wish to get this status programmatically from harness so that it can be surfaced in the github PR.
In current state : when PR modifies a harness remote entity managed via Git - there is no good way to know before merging the PR that the code changes are validated by Harness to be a "valid YAML according to harness spec"
So looking to shift left in the process and see if we can get this status before merging PR ( vs after merging we go check the webhooks page to see the success/failed status )
Hope that clarified what i am looking for :)
Rohan Gupta
marked this post as
pending feedback
Rohan Gupta
but you intercept this on the github side correct? we only recieve we do not store.