---
title: "Get repository"
method: GET
path: "/orgs/{org_slug}/repos/{repo_slug}"
tags: ["repos"]
---

# Get repository

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

Retrieve a repository associated with an organization.

This endpoint consumes 1 unit of your quota.

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

## Path parameters

- `org_slug` string, required
- `repo_slug` string, required

## Query parameters

- `workspace` string

## Response `200`

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

- object
  - `id` string, required — The ID of the repository
  - `created_at` string, required — The creation date of the repository
  - `updated_at` string, required — The last update date of the repository
  - `html_url` string, required — The URL to the repository dashboard page
  - `head_full_scan_id` string, nullable, required — The ID of the head full scan of the repository
  - `integration_meta` object, nullable, required
    - `type` 'github'
    - `value` object
      - `installation_id` string, required — The GitHub installation_id of the active associated Socket GitHub App
      - `installation_login` string, required — The GitHub login name that the active Socket GitHub App installation is installed to
      - `repo_name` string, nullable, required — The name of the associated GitHub repo.
      - `repo_id` string, nullable, required — The id of the associated GitHub repo.
  - `slug` string, required — The slug of the repository.
  - `name` string, required — The name of the repository
  - `description` string, nullable, required — The description of the repository
  - `homepage` string, nullable, required — The homepage URL of the repository
  - `visibility` 'public' | 'private', required — The visibility of the repository
  - `archived` boolean, required — Whether the repository is archived or not
  - `default_branch` string, nullable, required — The default branch of the repository
  - `workspace` string, required — The workspace of the repository
  - `slig` string, required — The slug of the repository. This typo is intentionally preserved for backwards compatibility reasons.

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