GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the list of hooks for a specific GitLab project using the GitLab API v4. It is useful for scenarios where you need to manage or monitor webhooks configured on a project, such as automating responses to repository events or integrating with external services.

Use Case Examples

  1. Fetch all hooks for a project to audit webhook configurations.
  2. Retrieve hooks to verify if a specific webhook URL is registered for a project.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters to control pagination of the hooks list.
Path Parameters Path parameters specifying the project identifier.

Output

JSON

  • id - Unique identifier of the hook
  • url - URL configured for the webhook
  • project_id - ID of the project the hook belongs to
  • push_events - Boolean indicating if push events trigger the hook
  • merge_requests_events - Boolean indicating if merge request events trigger the hook
  • tag_push_events - Boolean indicating if tag push events trigger the hook
  • note_events - Boolean indicating if note events trigger the hook
  • enable_ssl_verification - Boolean indicating if SSL verification is enabled for the hook
  • created_at - Timestamp when the hook was created

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly specified in the path parameters to avoid 404 errors.
  • Verify that the GitLab API key credential has sufficient permissions to access project hooks.
  • If skipping authentication, confirm the endpoint supports unauthenticated access, otherwise requests will fail.
  • Check network connectivity and base URL correctness if requests time out or fail to connect.

Links

Discussion