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

# Get repository label (beta)

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

Retrieve a repository label associated with an organization and label ID.

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
- `label_id` string, required

## Response `200`

Returns a specific repository label for the specified organization. The authenticated user must be a member of the organization.

- object
  - `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

## 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)
