Skip to content

Gitea API. API

by gitea.io

API keyHTTPSDevelopment
Open documentation ↗

Overview

This documentation describes the Gitea API.

Gitea API. is a development API from gitea.io. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 325 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Category
Development
Version
1.20.0+dev-93-g6886706f5
Endpoints
325
Spec updated
2023-03-06

Endpoints

MethodPathWhat it does
GET/activitypub/user/{username}Returns the Person actor for a user
POST/activitypub/user/{username}/inboxSend to the inbox
GET/admin/cronList cron tasks
POST/admin/cron/{task}Run cron task
GET/admin/hooksList system's webhooks
POST/admin/hooksCreate a hook
GET/admin/hooks/{id}Get a hook
PATCH/admin/hooks/{id}Update a hook
GET/admin/orgsList all organizations
GET/admin/unadoptedList unadopted repositories
POST/admin/unadopted/{owner}/{repo}Adopt unadopted files as a repository
DELETE/admin/unadopted/{owner}/{repo}Delete unadopted files
GET/admin/usersList all users
POST/admin/usersCreate a user
PATCH/admin/users/{username}Edit an existing user
DELETE/admin/users/{username}Delete a user
POST/admin/users/{username}/keysAdd a public key on behalf of a user
DELETE/admin/users/{username}/keys/{id}Delete a user's public key
POST/admin/users/{username}/orgsCreate an organization
POST/admin/users/{username}/reposCreate a repository on behalf of a user
DELETE/amdin/hooks/{id}Delete a hook
POST/markdownRender a markdown document as HTML
POST/markdown/rawRender raw markdown as HTML
GET/nodeinfoReturns the nodeinfo of the Gitea application
GET/notificationsList users's notification threads
PUT/notificationsMark notification threads as read, pinned or unread
GET/notifications/newCheck if unread notifications exist
GET/notifications/threads/{id}Get notification thread by ID
PATCH/notifications/threads/{id}Mark notification thread as read by ID
POST/org/{org}/reposdeprecatedCreate a repository in an organization
GET/orgsGet list of organizations
POST/orgsCreate an organization
GET/orgs/{org}Get an organization
PATCH/orgs/{org}Edit an organization
DELETE/orgs/{org}Delete an organization
GET/orgs/{org}/hooksList an organization's webhooks
POST/orgs/{org}/hooksCreate a hook
GET/orgs/{org}/hooks/{id}Get a hook
PATCH/orgs/{org}/hooks/{id}Update a hook
DELETE/orgs/{org}/hooks/{id}Delete a hook
GET/orgs/{org}/labelsList an organization's labels
POST/orgs/{org}/labelsCreate a label for an organization
GET/orgs/{org}/labels/{id}Get a single label
PATCH/orgs/{org}/labels/{id}Update a label
DELETE/orgs/{org}/labels/{id}Delete a label
GET/orgs/{org}/membersList an organization's members
GET/orgs/{org}/members/{username}Check if a user is a member of an organization
DELETE/orgs/{org}/members/{username}Remove a member from an organization
GET/orgs/{org}/public_membersList an organization's public members
GET/orgs/{org}/public_members/{username}Check if a user is a public member of an organization
PUT/orgs/{org}/public_members/{username}Publicize a user's membership
DELETE/orgs/{org}/public_members/{username}Conceal a user's membership
GET/orgs/{org}/reposList an organization's repos
POST/orgs/{org}/reposCreate a repository in an organization
GET/orgs/{org}/teamsList an organization's teams
POST/orgs/{org}/teamsCreate a team
GET/orgs/{org}/teams/searchSearch for teams within an organization
GET/packages/{owner}Gets all packages of an owner
GET/packages/{owner}/{type}/{name}/{version}Gets a package
DELETE/packages/{owner}/{type}/{name}/{version}Delete a package
GET/packages/{owner}/{type}/{name}/{version}/filesGets all files of a package
GET/repos/issues/searchSearch for issues across the repositories that the user has access to
POST/repos/migrateMigrate a remote git repository
GET/repos/searchSearch for repositories
GET/repos/{owner}/{repo}Get a repository
PATCH/repos/{owner}/{repo}Edit a repository's properties. Only fields that are set will be changed.
DELETE/repos/{owner}/{repo}Delete a repository
GET/repos/{owner}/{repo}/archive/{archive}Get an archive of a repository
GET/repos/{owner}/{repo}/assigneesReturn all users that have write access and can be assigned to issues
GET/repos/{owner}/{repo}/branch_protectionsList branch protections for a repository
POST/repos/{owner}/{repo}/branch_protectionsCreate a branch protections for a repository
GET/repos/{owner}/{repo}/branch_protections/{name}Get a specific branch protection for the repository
PATCH/repos/{owner}/{repo}/branch_protections/{name}Edit a branch protections for a repository. Only fields that are set will be changed
DELETE/repos/{owner}/{repo}/branch_protections/{name}Delete a specific branch protection for the repository
GET/repos/{owner}/{repo}/branchesList a repository's branches
POST/repos/{owner}/{repo}/branchesCreate a branch
GET/repos/{owner}/{repo}/branches/{branch}Retrieve a specific branch from a repository, including its effective branch protection
DELETE/repos/{owner}/{repo}/branches/{branch}Delete a specific branch from a repository
GET/repos/{owner}/{repo}/collaboratorsList a repository's collaborators
GET/repos/{owner}/{repo}/collaborators/{collaborator}Check if a user is a collaborator of a repository
PUT/repos/{owner}/{repo}/collaborators/{collaborator}Add a collaborator to a repository
DELETE/repos/{owner}/{repo}/collaborators/{collaborator}Delete a collaborator from a repository
GET/repos/{owner}/{repo}/collaborators/{collaborator}/permissionGet repository permissions for a user
GET/repos/{owner}/{repo}/commitsGet a list of all commits from a repository
GET/repos/{owner}/{repo}/commits/{ref}/statusGet a commit's combined status, by branch/tag/commit reference
GET/repos/{owner}/{repo}/commits/{ref}/statusesGet a commit's statuses, by branch/tag/commit reference
GET/repos/{owner}/{repo}/contentsGets the metadata of all the entries of the root dir
GET/repos/{owner}/{repo}/contents/{filepath}Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
POST/repos/{owner}/{repo}/contents/{filepath}Create a file in a repository
PUT/repos/{owner}/{repo}/contents/{filepath}Update a file in a repository
DELETE/repos/{owner}/{repo}/contents/{filepath}Delete a file in a repository
POST/repos/{owner}/{repo}/diffpatchApply diff patch to repository
GET/repos/{owner}/{repo}/editorconfig/{filepath}Get the EditorConfig definitions of a file in a repository
GET/repos/{owner}/{repo}/forksList a repository's forks
POST/repos/{owner}/{repo}/forksFork a repository
GET/repos/{owner}/{repo}/git/blobs/{sha}Gets the blob of a repository.
GET/repos/{owner}/{repo}/git/commits/{sha}Get a single commit from a repository
GET/repos/{owner}/{repo}/git/commits/{sha}.{diffType}Get a commit's diff or patch
GET/repos/{owner}/{repo}/git/notes/{sha}Get a note corresponding to a single commit from a repository
GET/repos/{owner}/{repo}/git/refsGet specified ref or filtered repository's refs

Showing the first 100 of 325 endpoints; the full list is in the documentation.

Questions

Does the Gitea API. API need an API key?

Yes. The Gitea API. API uses API key authentication; the documentation explains how to get credentials.

Does the Gitea API. API support HTTPS?

Yes, the Gitea API. API is served over HTTPS.

How many endpoints does the Gitea API. API have?

Its OpenAPI description lists 325 endpoints in version 1.20.0+dev-93-g6886706f5. The first 100 are shown on this page.

What are alternatives to the Gitea API. API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

Compare alternatives →

Listed from APIs.guru (CC0).