GitLab API

GitlabTool

Actions1095

Project_hooks → getApiV4ProjectsIdHooks

AI-generated

Summary

Retrieve the project hooks for a specified GitLab project by its ID or URL-encoded path.

Inputs

  • id (required) — The ID or URL-encoded path of the project whose hooks are to be retrieved.
  • page — The page number of results to fetch (for paginated responses). Defaults to 1 if not specified.
  • per_page — The number of hooks to return per page (for pagination). Defaults to 20 if not specified.
  • skipAuthentication — Optionally skip the default authentication for this request.
  • baseUrl — Optional base URL of the GitLab instance; defaults to https://gitlab.com if not specified.

Output shape

a list of project hook objects associated with the specified project

Results are paginated according to the 'page' and 'per_page' query parameters. If authentication is skipped, access to hooks may be restricted or result in failure depending on GitLab server configuration.

Examples

Example 1: Get the first 20 hooks for project with ID '123'

Set 'Id' parameter to '123', optionally specify 'Page' as '1' and 'Per_page' as '20' (or omit to use defaults). Method is GET.

Links

Discussion