---
title: "Like Repo"
method: POST
path: "/api/v1/likes/{owner}/{repo}"
tags: ["likes"]
---

# Like Repo

`POST /api/v1/likes/{owner}/{repo}`

## Request

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

Like a repo.

## Path parameters

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

## Request body

- LikeRepoRequest
  - `like` boolean, required

## Response `200`

Successful Response

- LikeRepoResponse
  - `likes` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `1a8ee9358d81`: 4 breaking
  - 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

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/likes/:owner/:repo/post.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)
