Get file upload

Fetch the metadata for a single repo-scoped file upload.

Endpoints

GET /api/v1/teams/{team_slug}/repos/{repo_slug}/uploads/{upload_uuid}
GET /api/v1/users/{username}/repos/{repo_slug}/uploads/{upload_uuid}
Authenticated Repo scoped

Example

curl --request GET \
  --header "Authorization: Bearer $GHIT_API_TOKEN" \
  "$GHIT_API_URL/v1/teams/platform/repos/website/uploads/a1b2c3d4-..."

Response

Returns the upload metadata as JSON.

Errors

  • 403 Forbidden when the caller cannot access the repo.
  • 404 Not Found when the repo or upload does not exist.