@User143 Review this topic:
and and this text file specifically
https://github.com/discourse/discourse_api/blob/master/routes.txt#L71-L78