From endo- (“inside”) +‎ -onym (“name”).

endonym (plural endonyms)

a name used by a group or category of people to refer to themselves or their language