> For the complete documentation index, see [llms.txt](https://bothelp.hktrpg.com/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bothelp.hktrpg.com/guide/en/getting-started/yao-qing-hktrpg/api.md).

# API

Responses are JSON; requests use GET.\
Endpoint: <https://api.hktrpg.com/>

Example: <https://api.hktrpg.com/?msg=1d100>

![Example in use](https://github.com/hktrpg/TG.line.Discord.Roll.Bot/blob/master/views/image/api.png?raw=true)

{% hint style="info" %}
Like the web version, this method cannot pass a user ID, so personal database features such as `.ra`, `.db`, and personal character sheets are not available.
{% endhint %}
