Get a single label
GET
/orgs/{org}/labels/{id}
const url = 'https://gitea.com/api/v1/orgs/example/labels/example';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.com/api/v1/orgs/example/labels/example \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Name of the organization
id
required
string
Id of the label to get, or its name when not numeric
Responses
Section titled “Responses”Label
Media typeapplication/json
Label
A label to an issue or a pr
object
color
string
description
Description provides additional context about the label’s purpose
string
exclusive
boolean
id
ID is the unique identifier for the label
integer format: int64
is_archived
boolean
name
Name is the display name of the label
string
url
URL is the API endpoint for accessing this label
string format: uri
Example
{ "color": "00aabb", "exclusive": false, "is_archived": false}default
Section titled “default”APIError is error format response
Headers
Section titled “Headers”message
string
url
string