GitLab API

GitlabTool

Actions1095

System_hooks → getApiV4HooksHookId

AI-generated

Summary

Sends a request to retrieve a GitLab system hook by its ID. Set the required hook_id path parameter; the default method is GET, and the request uses the configured GitLab API credential unless authentication is skipped.

Inputs

  • Skip Authentication — Defaults to false. Enable to omit GitLab API credential authentication.
  • Authentication — Uses the GitLab API credential when authentication is enabled; hidden when Skip Authentication is true.
  • Base URL — Defaults to https://gitlab.com. The source notes the actual base URL is defined by the GitLab API credential.
  • Method — HTTP method, defaulting to GET; other declared choices are POST, PUT, DELETE, HEAD, and PATCH.
  • hook_id (required) — Path parameter: ID of the system hook to retrieve.

Output shape

A single response from the GitLab API request.

The operation declares the path /api/v4/hooks/{hook_id}. The source pack does not specify the response fields or a wrapper shape.

Examples

Example 1: Retrieve a system hook

Set hook_id to the system hook ID and keep the default GET method.

Links

Discussion