instruction: Explain the endpoints for repositories - GitHub Docs Skip to main content GitHub Docs Version: Free, Pro, &amp; ... in github_api
output: endpoints for repositories - GitHub Docs Skip to main content GitHub Docs Version: Free, Pro, &amp; Team Search or ask Copilot Search or ask Copilot Select language: current language is English Search or ask Copilot Search or ask Copilot Open menu Open Sidebar REST API / Repositories Home REST API API Version: 2022-11-28 (latest) Quickstart About the REST API About the REST API Comparing GitHub&#x27;s APIs API Versions Breaking changes OpenAPI description Using the REST API Getting started Rate limits Pagination Libraries Best practices Troubleshooting Timezones CORS and JSONP Issue event types GitHub event types Authentication Authenticating Keeping API credentials secure Endpoints for GitHub App installation tokens Endpoints for GitHub App user tokens Endpoints for fine-grained PATs Permissions for GitHub Apps Permissions for fine-grained PATs Guides Script with JavaScript Script with Ruby Discover resources for a user Delivering deployments Rendering data as graphs Working with comments Building a CI server Get started - Git database Get started - Checks Encrypt secrets Actions Artifacts Cache GitHub-hosted runners OIDC Permissions Secrets Self-hosted runner groups Self-hosted runners Variables Workflow jobs Workflow runs Workflows Activity Events Feeds Notifications Starring Watching Apps GitHub Apps Installations Marketplace OAuth authorizations Webhooks Billing Billing Enhanced billing platform Branches Branches Protected branches Campaigns Security campaigns Checks Check runs Check suites Classroom Classroom Code scanning Code scanning Code security settings Configurations Codes of conduct Codes of conduct Codespaces Codespaces Organizations Organization secrets Machines Repository secrets User secrets Collaborators Collaborators Invitations Commits Commits Commit comments Commit statuses Copilot Copilot metrics Copilot user management Credentials Revocation Dependabot Alerts Repository access Secrets Dependency graph Dependency review Dependency submission Software bill of materials (SBOM) Deploy keys Deploy keys Deployments Deployment branch policies Deployments Environments Protection rules Deployment statuses Emojis Emojis Gists Gists Comments Git database Blobs Commits References Tags Trees Gitignore Gitignore Interactions Organization Repository User Issues Assignees Comments Events Issues Issue dependencies Labels Milestones Sub-issues Timeline Licenses Licenses Markdown Markdown Meta Meta Metrics Community Statistics Traffic Migrations Organizations Source endpoints Users Models Catalog Embeddings Inference Organizations API Insights Artifact attestations Blocking users Custom properties Issue types Members Network configurations Organization roles Organizations Outside collaborators Personal access tokens Rule suites Rules Security managers Webhooks Packages Packages Pages Pages Private registries Organization configurations Projects (classic) Cards Collaborators Columns Boards Pull requests Pull requests Review comments Review requests Reviews Rate limit Rate limit Reactions Reactions Releases Releases Release assets Repositories Autolinks Contents Custom properties Forks Repositories Rule suites Rules Tags Webhooks Search Search Secret scanning Push protection Secret scanning Security advisories Global security advisories Repository security advisories Teams Teams Discussion comments Discussions Members Users Attestations Blocking users Emails Followers GPG keys Git SSH keys Social accounts SSH signing keys Users The REST API is now versioned. For more information, see " About API versioning ." REST API / Repositories REST API endpoints for repositories Use the REST API to create, manage and control the workflow of public and private GitHub repositories. REST API endpoints for repositories List organization repositories Create an organization repository Get a repository Update a repository Delete a repository List repository activities Create an attestation List attestations Check if Dependabot security updates are enabled for a repository Enable Dependabot security updates Disable Dependabot security updates List CODEOWNERS errors List repository contributors Create a repository dispatch event List repository languages Check if private vulnerability reporting is enabled for a repository Enable private vulnerability reporting for a repository Disable private vulnerability reporting for a repository List repository tags List repository teams Get all repository topics Replace all repository topics Transfer a repository Check if vulnerability alerts are enabled for a repository Enable vulnerability alerts Disable vulnerability alerts Create a repository using a template List public repositories List repositories for the authenticated user Create a repository for the authenticated user List repositories for a user REST API endpoints for repository autolinks Get all autolinks of a repository Create an autolink reference for a repository Get an autolink reference of a repository Delete an autolink reference from a repository REST API endpoints for repository contents Get repository content Create or update file contents Delete a file Get a repository README Get a repository README for a directory Download a repository archive (tar) Download a repository archive (zip) REST API endpoints for custom properties Get all custom property values for a repository Create or update custom property values for a repository REST API endpoints for forks List forks Create a fork REST API endpoints for rule suites List repository rule suites Get a repository rule suite REST API endpoints for rules Get rules for a branch Get all repository rulesets Create a repository ruleset Get a repository ruleset Update a repository ruleset Delete a repository ruleset Get repository ruleset history Get repository ruleset version REST API endpoints for repository tags Closing down - List tag protection states for a repository Closing down - Create a tag protection state for a repository Closing down - Delete a tag protection state for a repository REST API endpoints for repository webhooks List repository webhooks Create a repository webhook Get a repository webhook Update a repository webhook Delete a repository webhook Get a webhook configuration for a repository Update a webhook configuration for a repository List deliveries for a repository webhook Get a delivery for a repository webhook Redeliver a delivery for a repository webhook Ping a repository webhook Test the push repository webhook Help and support Get quick answers! Ask Copilot your question. Ask Copilot Did you find what you needed? Yes No Privacy policy Help us make these docs great! All GitHub docs are open source. See something that&#x27;s wrong or unclear? Submit a pull request. Make a contribution Learn how to contribute Still need help? Ask the GitHub community Contact support Legal © 2025 GitHub, Inc. Terms Privacy Status Pricing Expert services Blog