Skip to main content

Documentation Index

Fetch the complete documentation index at: https://code.storage/docs/llms.txt

Use this file to discover all available pages before exploring further.

Returns metadata for a single commit. This endpoint does not compute or return the commit diff — use GET /api/v1/repos/diff when you need file changes as well.
GET /api/v1/repos/commit?sha=COMMIT_SHA
Authorization: Bearer YOUR_JWT_TOKEN

Parameters

sha
string
required
Commit SHA to fetch metadata for. Any revision Git can resolve is accepted (full SHA, short SHA, branch name, tag).

JWT Requirements

  • The JWT must include the repository in the repo claim
  • Requires git:read scope

Response

{
  "commit": {
    "sha": "b003fc78805954584e1ee364a4ad39d7c79e819a",
    "message": "fix: resolve scrolling issue in dashboard",
    "author_name": "Jane Doe",
    "author_email": "jane@example.com",
    "committer_name": "Jane Doe",
    "committer_email": "jane@example.com",
    "date": "2024-01-15T14:32:18Z"
  }
}
The commit object has the same shape as entries in GET /api/v1/repos/commits.

Notes

  • date is RFC 3339 (time.RFC3339 in the gateway) and reflects the author date (%aI in git log format).
  • Pass a branch name or tag as sha to resolve to that ref’s tip — useful for fetching the latest commit on a branch without paginating list-commits.

Error Responses

404 Not Found
string
Commit (or repository) doesn’t exist
401 Unauthorized
string
Invalid JWT or missing git:read scope
400 Bad Request
string
Missing or empty sha parameter