How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Labels API

The Labels API from GitHub — 9 operation(s) for labels.

GitHub Labels API is one of 350 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Labels. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and an API reference.

This API exposes 20 operations across 8 paths, and defines 6 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: {protocol}://{hostname}/api/v3, {protocol}://{hostname}.

20 operations 8 paths 6 schemas 6 DELETE6 GET1 PATCH4 POST3 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Authentication
HTTP Bearer
License
Terms of Service
Resource Areas
1

Authentication & Security 1

GitHub Labels API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerHttpAuthentication).

  • bearerHttpAuthentication — Bearer Token

Paths & Operations 20

Across 8 paths, the API surfaces 20 operations — 6 DELETE, 6 GET, 1 PATCH, 4 POST, 3 PUT. Each is listed below with its method, path, parameters, and response codes.

Labels 20
GET
/orgs/{org}/actions/runners/{runner_id}/labels
GitHub List Labels for Self-hosted Runner for an Organization
listLabelsForSelfhostedRunnerForAnOrganization 2 params → 200404
POST
/orgs/{org}/actions/runners/{runner_id}/labels
GitHub Add Custom Labels to Self-hosted Runner for an Organization
addCustomLabelsToSelfhostedRunnerForAnOrganization 2 params body → 200404422
PUT
/orgs/{org}/actions/runners/{runner_id}/labels
GitHub Set Custom Labels for Self-hosted Runner for an Organization
setCustomLabelsForSelfhostedRunnerForAnOrganization 2 params body → 200404422
DELETE
/orgs/{org}/actions/runners/{runner_id}/labels
GitHub Remove All Custom Labels from Self-hosted Runner for an Organization
removeAllCustomLabelsFromSelfhostedRunnerForAnOrganization 2 params → 200404
DELETE
/orgs/{org}/actions/runners/{runner_id}/labels/{name}
GitHub Remove Custom Label from Self-hosted Runner for an Organization
removeCustomLabelFromSelfhostedRunnerForAnOrganization 3 params → 200404422
GET
/repos/{owner}/{repo}/actions/runners/{runner_id}/labels
GitHub List Labels for Self-hosted Runner for Repository
listLabelsForSelfhostedRunnerForRepository 6 params → 200404
POST
/repos/{owner}/{repo}/actions/runners/{runner_id}/labels
GitHub Add Custom Labels to Self-hosted Runner for Repository
addCustomLabelsToSelfhostedRunnerForRepository 6 params body → 200404422
PUT
/repos/{owner}/{repo}/actions/runners/{runner_id}/labels
GitHub Set Custom Labels for Self-hosted Runner for Repository
setCustomLabelsForSelfhostedRunnerForRepository 6 params body → 200404422
DELETE
/repos/{owner}/{repo}/actions/runners/{runner_id}/labels
GitHub Remove All Custom Labels from Self-hosted Runner for Repository
removeAllCustomLabelsFromSelfhostedRunnerForRepository 6 params → 200404
GET
/repos/{owner}/{repo}/issues/{issue_number}/labels
GitHub List Labels for an Issue
listLabelsForAnIssue 8 params → 200301404410
POST
/repos/{owner}/{repo}/issues/{issue_number}/labels
GitHub Add Labels to an Issue
addLabelsToAnIssue 6 params body → 200301404410422
PUT
/repos/{owner}/{repo}/issues/{issue_number}/labels
GitHub Set Labels for an Issue
setLabelsForAnIssue 6 params body → 200301404410422
DELETE
/repos/{owner}/{repo}/issues/{issue_number}/labels
GitHub Remove All Labels from an Issue
removeAllLabelsFromAnIssue 6 params → 204301404410
DELETE
/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}
GitHub Remove Label from an Issue
removeLabelFromAnIssue 7 params → 200301404410
GET
/repos/{owner}/{repo}/labels
GitHub List Labels for Repository
listLabelsForRepository 7 params → 200404
POST
/repos/{owner}/{repo}/labels
GitHub Create Label
createLabel 5 params body → 201404422
GET
/repos/{owner}/{repo}/labels/{name}
GitHub Get Label
getLabel 6 params → 200404
PATCH
/repos/{owner}/{repo}/labels/{name}
GitHub Update Label
updateLabel 6 params body → 200
DELETE
/repos/{owner}/{repo}/labels/{name}
GitHub Delete Label
deleteLabel 6 params → 204
GET
/repos/{owner}/{repo}/milestones/{milestone_number}/labels
GitHub List Labels for Issues in Milestone
listLabelsForIssuesInMilestone 8 params → 200

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are label (7 properties), basic-error (4 properties), validation-error (3 properties), runner-label_2 (3 properties). Each schema is shown below with its type and property counts.

runner-label
object
A label for a self hosted runner
3 properties 1 required
validation-error-simple
object
Validation Error Simple
3 properties 2 required
basic-error
object
Basic Error
4 properties
runner-label_2
object
label for a self hosted runner
3 properties 1 required
label
object
Color-coded labels help you categorize and filter your issues (just like labels in Gmail).
7 properties 7 required
validation-error
object
Validation Error
3 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-labels-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Events API
GitHub Feeds API
GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Notifications API
GitHub Octocat API
GitHub Projects API
GitHub Repos API
GitHub Search API
Where this information came from

This is an independent, third-party profile of GitHub Labels API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.