This documentation describes the Gitea API.
curl \ # append ?access_token=$API_KEY to the URL \ /orgs
curl \ # append ?access_token=$API_KEY to the URL \ /user
curl \ # append ?access_token=$API_KEY to the URL \ /version