generated: '2026-07-11' method: derived source: openapi/gitea-rest-api-openapi-original.yml, openapi/gitea-rest-api-openapi.yml summary: types: - apiKey - http api_key_in: - header - query schemes: - name: AccessToken type: apiKey in: query parameter: access_token description: This authentication option is deprecated for removal in Gitea 1.23. Please use AuthorizationHeaderToken instead. sources: - openapi/gitea-rest-api-openapi-original.yml - openapi/gitea-rest-api-openapi.yml - name: AuthorizationHeaderToken type: apiKey in: header parameter: Authorization description: API tokens must be prepended with "token" followed by a space. sources: - openapi/gitea-rest-api-openapi-original.yml - openapi/gitea-rest-api-openapi.yml - name: BasicAuth type: http scheme: basic sources: - openapi/gitea-rest-api-openapi-original.yml - openapi/gitea-rest-api-openapi.yml - name: SudoHeader type: apiKey in: header parameter: Sudo description: Sudo API request as the user provided as the key. Admin privileges are required. sources: - openapi/gitea-rest-api-openapi-original.yml - openapi/gitea-rest-api-openapi.yml - name: SudoParam type: apiKey in: query parameter: sudo description: Sudo API request as the user provided as the key. Admin privileges are required. sources: - openapi/gitea-rest-api-openapi-original.yml - openapi/gitea-rest-api-openapi.yml - name: TOTPHeader type: apiKey in: header parameter: X-GITEA-OTP description: Must be used in combination with BasicAuth if two-factor authentication is enabled. sources: - openapi/gitea-rest-api-openapi-original.yml - openapi/gitea-rest-api-openapi.yml - name: Token type: apiKey in: query parameter: token description: This authentication option is deprecated for removal in Gitea 1.23. Please use AuthorizationHeaderToken instead. sources: - openapi/gitea-rest-api-openapi-original.yml - openapi/gitea-rest-api-openapi.yml