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
Path parameters
Repository owner (tenant handle) or '-' for private repos
Repository handle
Commit hash, tag, or 'latest'
Query parameters
Comma-separated list of optional fields: "model", "is_draft"
Deprecated: use Include instead
Response
OK
Changes
Changed in 1 of the 48 revisions of this API.3
- ○
added the new optional
queryrequest parameterincludenew-optional-request-parameter
- ○
added the optional property
descriptionto the response with the200statusresponse-optional-property-added
- ○
added the optional property
is_draftto the response with the200statusresponse-optional-property-added
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○