GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdMergeRequestsMergeRequestIidApprovals

AI-generated

Summary

Retrieve approval details for a specific merge request within a GitLab project by providing the project ID and merge request IID.

Inputs

  • id (required) — The numeric ID of the GitLab project.
  • merge_request_iid (required) — The internal ID (IID) of the merge request within the project.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com if not specified.
  • method — HTTP method to use; defaults to GET.
  • skipAuthentication — Whether to skip authentication; defaults to false (authentication required).

Output shape

a JSON object representing the approvals information of the specified merge request

The output corresponds to the response from the GitLab API endpoint /api/v4/projects/{id}/merge_requests/{merge_request_iid}/approvals and includes details such as approval status, required approvers, and approval rules. Authentication is required unless explicitly skipped.

Links

Discussion