Forgejo token identity
forgejo_whoamiVerify a Forgejo token by returning the account it belongs to, including id, login, full name, and email. Use it to confirm token validity and the identity that will be attributed to issues or pull requests.
Instructions
Returns the Forgejo account the token used for this call belongs to.
No parameters.
Returns: { id, login, full_name, email }
Use it to confirm a token is valid and which identity writes will be attributed to, before creating an issue or a pull request. Errors: 401 if the token is missing, expired or revoked; 403 if it lacks the 'read:user' scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response_format | No | 'markdown' for a readable rendering, 'json' for the full data. | markdown |