Skip to content

List all badges for a project

GET
/api/v4/projects/{id}/badges

Lists all badges for a specified project, including group badges.

id
required
string

The ID or URL-encoded path of the project owned by the authenticated user.

page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20
name
string
nullable

Name for the badge

OK

Media type application/json
object
name
string
link_url
string
image_url
string
rendered_link_url
string
rendered_image_url
string
id
integer format: int64
kind
string
Example
{
"name": "Pipeline Status",
"link_url": "https://example.gitlab.com",
"image_url": "https://example.gitlab.com",
"rendered_link_url": "https://example.gitlab.com",
"rendered_image_url": "https://example.gitlab.com",
"id": 1,
"kind": "project"
}

Bad Request

Not Found