commits

Retrieves a specific commit by hash, tag, or "latest" for a repository. This endpoint supports both authenticated and unauthenticated access. Authenticated users can access private repos, while unauthenticated users can only access public repos. Commit resolution logic:

  • "latest" or empty: Get the most recent commit
  • Less than 8 characters: Only check for tags
  • 8 or more characters: Prioritize commit hash over tag, check both
get/api/v1/commits/{owner}/{repo}/{commit}

Request

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

Path parameters

ownerstring required

Repository owner (tenant handle) or '-' for private repos

repostring required

Repository handle

commitstring required

Commit hash, tag, or 'latest'

Query parameters

get_examplesboolean
includestring

Comma-separated list of optional fields: "model", "is_draft"

include_modelboolean

Deprecated: use Include instead

is_viewboolean

Response

OK

commit_hashstring
descriptionstring
is_draftboolean
manifestobject
model_configobject
model_providerstring

Changes