Where can I find the Badges API Docs?

I am trying to use the Twitch Badges API (badges.twitch.tv) to get both global and channel-specific badge images for display within a Unity game. Where can I find documentation for this API? Surely some documentation exists given that it’s nearly five years old?

More specifically, I want to know the following:

  • What endpoints exist within the Badges API?
  • What query parameters must be / can be used for these endpoints?
  • Do any of these endpoints require authentication?
  • What data are the endpoints supposed to return?
  • What are the rate limits, if any?
  • What kind of errors can these endpoints run into, and why?

Twitch is the copyright owner of all global emotes/badges, and the channel-specific badges belong to the channel they are for, so using them in a Unity game without express permission from the copyright owners would be copyright infringement.

Thank you for the heads-up, I will look into that.

Do you have any idea where I can find the API docs in question?