v48

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-275867561.6 MB
commits

Get a commit

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/commits/{owner}/{repo}/{commit}

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