Information
- License: MIT
- OpenAPI version:
3.0.3
This documentation describes the Gitea API.
61 of these endpoints only exist in Gitea Enterprise and are collected under the enterprise tag. Every other endpoint is the one the community edition of the same release serves.
Download the specification:OpenAPI 3.0, Swagger 2.0
enterprise
Endpoints that only exist in Gitea Enterprise. They are also listed under the tag of the resource they belong to.
admin
Site administration
issue
Issues, pull requests, comments, labels and milestones
miscellaneous
Miscellaneous endpoints
notification
User notifications
organization
Organizations and teams
package
Package registry
repository
Repositories and their contents
security
Security findings, dependency alerts and scans of a repository
settings
Server settings
user
The authenticated user
This authentication option is deprecated for removal in Gitea 1.23. Please use AuthorizationHeaderToken instead.
Security scheme type: apiKey
Query parameter name: access_token
API tokens must be prepended with “token” followed by a space.
Security scheme type: apiKey
Header parameter name: Authorization
Security scheme type: http
Sudo API request as the user provided as the key. Admin privileges are required.
Security scheme type: apiKey
Header parameter name: Sudo
Sudo API request as the user provided as the key. Admin privileges are required.
Security scheme type: apiKey
Query parameter name: sudo
Must be used in combination with BasicAuth if two-factor authentication is enabled.
Security scheme type: apiKey
Header parameter name: X-GITEA-OTP
This authentication option is deprecated for removal in Gitea 1.23. Please use AuthorizationHeaderToken instead.
Security scheme type: apiKey
Query parameter name: token