Skip to main content
Use this endpoint to fetch the details of a specific repository by its numeric ID. The response includes your effective permission level for that repository, which determines what operations you can perform on it.

Request

Authentication

This endpoint requires HTTP Basic Auth. Pass your API key as the username and leave the password empty.

Path parameters

integer
required
The numeric ID of the repository to retrieve.

Response

Returns a single repository object on success.
integer
Unique numeric identifier for the repository.
string
Display name of the repository.
string
Optional description of the repository’s contents or purpose.
string
Visibility setting. Either "Public" or "Private".
string
The team this repository belongs to, if applicable.
string
Your access level for this repository. One of "Owner", "Admin", "Write", "Clone", or "Read". This field is determined by the server based on your API key and cannot be set directly.

Errors

Example