---
title: "List repository labels (beta)"
method: GET
path: "/orgs/{org_slug}/repos/labels"
tags: ["repo-labels"]
---

# List repository labels (beta)

`GET /orgs/{org_slug}/repos/labels`

Lists repository labels for the specified organization.

This endpoint consumes 1 unit of your quota.

This endpoint requires the following org token scopes:
- repo-label:list

## Path parameters

- `org_slug` string, required

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Lists repository labels for the specified organization. The authenticated user must be a member of the organization.

- object
  - `results` object[], required
    - `id` string — The ID of the label
    - `name` string — The name of the label
    - `repository_ids` string[] — The IDs of repositories this label is associated with
    - `has_security_policy` boolean — Whether the label has a security policy
    - `has_license_policy` boolean — Whether the label has a license policy
  - `nextPage` integer, nullable, required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Insufficient max_quota for API method
- `404` — Resource not found
- `429` — Insufficient quota for API route

---

[API](https://skmtc.dev/socket-dev/apis/socket.md) · [All operations](https://skmtc.dev/socket-dev/apis/socket/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/socket-dev/socket/revisions/bf994b75d33f/schema)
