---
title: "Create a commit"
method: POST
path: "/api/v1/commits/{owner}/{repo}"
tags: ["commits"]
---

# Create a commit

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

## Request

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

Creates a new commit in a repository.
Requires authentication and write access to the repository.

## Path parameters

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

## Request body

- CommitsCreateCommitReq
  - `description` string
  - `manifest` object
  - `parent_commit` string
  - `skip_webhooks` unknown

## Response `201`

Created

- CommitsCreateCommitResponse
  - `commit` CommitsCommitWithLookups
    - `commit_hash` string: The hash of the commit
    - `created_at` string, date-time: When the commit was created
    - `description` string: Optional human-readable description for the commit
    - `example_run_ids` string[]: Example run IDs associated with the commit
    - `full_name` string: Author's full name
    - `id` string, uuid: The commit ID
    - `manifest` object: The manifest of the commit
    - `manifest_sha` integer[]: The SHA of the manifest
    - `num_downloads` integer: Number of API downloads
    - `num_views` integer: Number of web views
    - `parent_commit_hash` string: The hash of the parent commit
    - `parent_id` string, uuid: The ID of the parent commit
    - `repo_id` string, uuid: Repository ID
    - `updated_at` string, date-time: When the commit was last updated

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

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