GitLab API icon

GitLab API

Gitlab

Actions1062

Badges → getApiV4ProjectsIdBadgesBadgeId

AI-generated

Summary

Retrieve a specific badge of a project by providing the project ID or URL-encoded path and the badge ID.

Inputs

  • id (required) — The ID or URL-encoded path of the project owned by the authenticated user.
  • badge_id (required) — The unique identifier of the badge to retrieve.
  • baseUrl — Optional base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Optional flag to skip authentication; defaults to false.

Output shape

a single badge object representing the specified badge for the given project

The response shape matches the GitLab API's badge resource structure. Requires authentication unless 'Skip Authentication' is set to true. Uses HTTP GET method to the path /api/v4/projects/{id}/badges/{badge_id}.

Links

Discussion