---
title: "Get Repo"
method: GET
path: "/api/v1/repos/{owner}/{repo}"
tags: ["repos"]
---

# Get Repo

`GET /api/v1/repos/{owner}/{repo}`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v1/repos/{owner}/{repo}`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

Get a repo.

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `200`

Successful Response

- GetRepoResponse
  - `repo` RepoWithLookups, required: All database fields for repos, plus helpful computed fields.
    - `repo_handle` string, required
    - `description` string, nullable
    - `readme` string, nullable
    - `id` string, uuid, required
    - `tenant_id` string, uuid, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `is_public` boolean, required
    - `is_archived` boolean, required
    - `restricted_mode` boolean
    - `tags` string[], required
    - `original_repo_id` string, uuid, nullable
    - `upstream_repo_id` string, uuid, nullable
    - `commit_tags` string[]
    - `repo_type` 'prompt' | 'file' | 'agent' | 'skill', required
    - `source` 'internal' | 'external', nullable
    - `owner` string, nullable, required
    - `full_name` string, required
    - `num_likes` integer, required
    - `num_downloads` integer, required
    - `num_views` integer, required
    - `liked_by_auth_user` boolean, nullable
    - `last_commit_hash` string, nullable
    - `num_commits` integer, required
    - `created_by` string, nullable
    - `original_repo_full_name` string, nullable
    - `upstream_repo_full_name` string, nullable
    - `latest_commit_manifest` CommitManifestResponse: Response model for get_commit_manifest.
      - `commit_hash` string, required
      - `manifest` object, required
      - `examples` RepoExampleResponse[], nullable
        - `id` string, uuid, required
        - `start_time` string, date-time, nullable
        - `inputs` object, nullable
        - `outputs` object, nullable
        - `session_id` string, uuid, required
    - `owners` RepoOwner[], nullable
      - `identity_id` string, uuid, nullable, required
      - `ls_user_id` string, uuid, required
      - `email` string, nullable, required
      - `full_name` string, nullable, required
      - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `1a8ee9358d81`: 4 breaking, 1 info
  - the `detail/items/` response's property type changed from `object` to `string` for status `422`
  - removed the required property `detail/items/loc` from the response with the `422` status
  - removed the required property `detail/items/msg` from the response with the `422` status
  - removed the required property `detail/items/type` from the response with the `422` status
  - …1 more
- **2026-05-27** `a0acb3a6a101`: 1 info
  - added the optional property `repo/source` to the response with the `200` status
- **2026-03-20** `6da148fb416d`: 1 info
  - added the optional property `repo/restricted_mode` to the response with the `200` status
- **2026-03-19** `7bbcecd856b2`: 1 warning
  - removed the optional property `repo/restricted_mode` from the response with the `200` status
- **2026-03-07** `af9329544589`: 1 info
  - added the optional property `repo/restricted_mode` to the response with the `200` status

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/repos/:owner/:repo/get.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
