the IRCv3 spec name you're looking for is "filehost":
https://ircv3.net/wg#:~:text=FILEHOST (the reference to 562)
https://codeberg.org/emersion/soju/src/branch/master/doc/ext/filehost.md (the earlier draft spec)
https://github.com/ircv3/ircv3-specifications/pull/562/changes (the draft spec proposal, with associated discussion in the commentary on the pull request)
https://codeberg.org/whitequark/ircv3-filehost-server (a sample implementation, functional and in use)
https://github.com/ergochat/ergo/releases/tag/v2.19.0#:~:text=authtoken (ergo IRCd release 2.19.0 adding authtoken support, opening the door to integrating with the above implementation)