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

Changes

Changed in 1 of the 48 revisions of this API.3

    • added the new optional query request parameter include

      new-optional-request-parameter

    • added the optional property description to the response with the 200 status

      response-optional-property-added

    • added the optional property is_draft to the response with the 200 status

      response-optional-property-added

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog