Get repositories by owner
Retrieve all repositories owned by a specific user or organization.Parameters
The username or organization name that owns the repositories
Response
Returns an array of repository objects.Unique identifier for the repository
Repository name
Username of the repository owner
User ID of the repository owner
Repository description
Whether the repository is private
Example request
Example response
Get repository by owner and name
Retrieve a specific repository by its owner and name.Parameters
The username or organization name that owns the repository
The repository name
Response
Returns a single repository object.Unique identifier for the repository
Repository name
Username of the repository owner
User ID of the repository owner
Repository description
Whether the repository is private
Example request
Example response
Create repository
Create a new Git repository.Authentication
This endpoint requires authentication. You must be logged in to create a repository.Parameters
Repository name. Must be 1-100 characters, contain only letters, numbers, hyphens, and underscores, and cannot end with
.gitRepository description. Maximum 500 characters
Whether the repository should be private
Response
Returns the created repository object.Unique identifier for the repository
Repository name
Username of the repository owner
User ID of the repository owner
Repository description
Whether the repository is private
Example request
Example response
Validation errors
- Repository name is required: Name cannot be empty
- Repository name must be less than 100 characters: Name exceeds maximum length
- Repository name can only contain letters, numbers, hyphens, and underscores: Invalid characters in name
- Repository name cannot end with .git: Name ends with
.gitextension - Description must be less than 500 characters: Description exceeds maximum length
Update repository
Update an existing repository’s settings.Authentication
This endpoint requires authentication. You must be the repository owner to update it.Parameters
The repository ID to update
Updated repository description. Maximum 500 characters
Whether the repository should be private
Response
Returns the updated repository object.Unique identifier for the repository
Repository name
Username of the repository owner
User ID of the repository owner
Updated repository description
Updated privacy status
Example request
Example response
Error responses
- Repository not found: The specified repository ID does not exist
- You do not have permission to update this repository: You are not the repository owner
- You must be logged in to update a repository: Authentication required