Retrieve repository health statistics
GET
/api/v4/projects/{id}/repository/health
Retrieves statistics related to the health of a project repository. This endpoint is rate-limited to 5 requests/hour per project when generate is true. Available only to users with push access to the repository.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”generate
boolean
Triggers a new health report to be generated
Responses
Section titled “Responses”OK
Media typeapplication/json
object
size
integer
references
object
loose_count
integer
packed_size
integer
reference_backend
string
objects
object
size
integer
recent_size
integer
stale_size
integer
keep_size
integer
packfile_count
integer
reverse_index_count
integer
cruft_count
integer
keep_count
integer
loose_objects_count
integer
stale_loose_objects_count
integer
loose_objects_garbage_count
integer
commit_graph
object
commit_graph_chain_length
integer
has_bloom_filters
boolean
has_generation_data
boolean
has_generation_data_overflow
boolean
bitmap
object
has_hash_cache
boolean
has_lookup_table
boolean
version
integer
multi_pack_index
object
packfile_count
integer
version
integer
multi_pack_index_bitmap
object
has_hash_cache
boolean
has_lookup_table
boolean
version
integer
alternates
object
is_object_pool
boolean
last_full_repack
object
seconds
integer
nanos
integer
updated_at
string format: date-time
Example
{ "updated_at": "2025-02-24T09:05:50.355Z"}Bad Request
Not Found