GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves events for a specific webhook associated with a GitLab project. It is useful for monitoring webhook activity, debugging webhook integrations, or auditing events triggered by a webhook in a GitLab project. For example, a user can fetch recent webhook events to verify if certain project events are being captured correctly.

Use Case Examples

  1. Fetch webhook events for project ID 123 and webhook ID 456 to monitor recent activity.
  2. Retrieve webhook events filtered by HTTP status codes to analyze webhook delivery success or failure.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Parameter Schema Defines the query and path parameters for the API call, including status filters, pagination, and required project and hook IDs.
Query Parameters Collection of optional query parameters such as status (filter by HTTP status codes), per_page (items per page), and page (pagination).
Path Parameters Collection of required path parameters including project ID and webhook ID to specify the resource.

Output

JSON

  • events - List of webhook events retrieved from the GitLab project webhook.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and webhook ID are correct and exist in the GitLab instance.
  • Verify that the authentication token has sufficient permissions to access project webhooks.
  • Check that the base URL is correct if using a self-hosted GitLab instance.
  • If filtering by status, ensure the status codes are valid and supported by the API.

Links

Discussion