GET
/repos/{owner}/{repo}/labels/{name}Get a label
Retrieves a label from a repository by its name. Use owner and repo to identify the repository and name to specify the label.
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.
namestringrequired
The name of the label to retrieve.
200Returns the label object, including its identifier, name, description, color, default status, and archive details.
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.
404Returned when the repository or label cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 404 is returned if the repository or label cannot be found. The owner path parameter and repo path parameter must identify the repository, and the name path parameter must identify a label in that repository.