G

Gitea REST API

REST discovered

Details
URL
https://gitea.com/api/v1
Docs
https://docs.gitea.com/api/1.26/
Authentication
Gitea username and password basic discovered Get credentials ↗

Sign in to your Gitea account at gitea.com login. The API docs state HTTP Basic authentication is supported, and that creating tokens via /api/v1/users/{username}/tokens specifically requires Basic auth with your username and password.

Personal access token api_key discovered Get key ↗

In Gitea, open User Settings → Applications and use Manage Access Tokens to create a token. Choose the needed permission scopes; Gitea shows the token only once. The docs also note tokens can be minted via the API at /api/v1/users/{username}/tokens using HTTP Basic auth with your username and password.

Registered SSH key or SSH certificate for HTTP signatures signature discovered Get key ↗
Signature: <credential>

Add an SSH public key or SSH certificate to your Gitea account in User Settings → SSH / GPG Keys. Then sign API requests with the matching private key using the draft-cavage HTTP Signatures format; send the signature in the Signature header, and include x-ssh-certificate when using an SSH certificate.