GET
/repos/{owner}/{repo}/issues/{issue_number}/labelsList labels for an issue
Lists the labels applied to an issue in a repository. Use owner, repo, and issue_number to identify the issue, and paginate the results with page and per_page.
ownerstringrequired
The account owner of the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
issue_numberintegerrequired
The number that identifies the issue.
per_pageintegeroptional
The number of results per page. Maximum 100. Defaults to 30 when omitted.
pageintegeroptional
The page number of results to fetch. Defaults to 1 when omitted.
200Returns an array of labels applied to the issue, including each label's name, color, and description.
idintegerrequired
Unique identifier for the label.
node_idstringrequired
urlstringrequired
URL for the label
namestringrequired
The name of the label.
descriptionstringrequired
Optional description of the label, such as its purpose.
colorstringrequired
6-character hex code, without the leading #, identifying the color
defaultbooleanrequired
Whether this label comes by default in a new repository.
archived_atstringrequired
Timestamp indicating when the label was archived, or `null` if it has not been archived.
archived_byobjectrequired
The user who archived the label, or `null` if it has not been archived.
301Returned when the resource has moved permanently.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the repository or issue cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
410Returned when the resource is no longer available.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 404 is returned when the repository or issue cannot be found. A 410 is returned when the resource is no longer available. The owner, repo, and issue_number path parameters must identify the target issue.