Get file upload content

Download the raw bytes for a repo-scoped file upload.

Endpoints

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

Example

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

Response

Returns the file bytes with attachment headers.

Errors

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