---
title: "List labels for a self-hosted runner for an enterprise"
method: GET
path: "/enterprises/{enterprise}/actions/runners/{runner_id}/labels"
tags: ["enterprise-admin"]
---

# List labels for a self-hosted runner for an enterprise

`GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels`

Lists all labels for a self-hosted runner configured in an enterprise.

You must authenticate using an access token with the `manage_runners:enterprise` scope to use this endpoint.

## Path parameters

- `enterprise` string, required
- `runner_id` integer, required

## Response `200`

Response

- object
  - `total_count` integer, required
  - `labels` RunnerLabel[], required
    - `id` integer — Unique identifier of the label.
    - `name` string, required — Name of the label.
    - `type` 'read-only' | 'custom' — The type of label. Read-only labels are applied automatically when the runner is configured.

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-5.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-5/versions/50ae54440071/schema)
