List SSH and GPG keys
list_keysList an account's SSH and GPG keys to check verification status and GPG address activation before relying on signatures. Omit username for the authenticated user's keys.
Instructions
List an account's SSH and GPG keys (omit username for the authenticated user). A key must be present AND verified before the instance will verify signatures made with it. IMPORTANT: verified absent does not mean unverified — Gitea does not expose the field on SSH keys at all (its web UI shows 'Verified Key' but its API omits it), while Forgejo does. Absent means unreported; only an explicit false means the forge holds the key without having confirmed ownership. Since Gitea also answers gpg.error.no_gpg_keys_found whether a key is absent or merely unverified, on Gitea neither this nor a commit's reason settles it — the web UI is the only source. GPG entries carry the addresses the key covers and whether each is activated; a signature only verifies for a commit authored under an activated address. Key material and armored blobs are dropped — fingerprints and key ids identify them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | No | Whose keys to list. Omit for the authenticated user, which is the only list that reliably carries `verified`. |