An endangered species was a species which was on the brink of extinction, whether caused naturally or by the actions of sentient beings.
In an alternate timeline the Xindi succeeded in destroying Earth in 2154, rendering Humans an endangered species of roughly six thousand. (ENT: "Twilight")
Josiah, a member of the xenophobic organization Terra Prime, claimed in 2155 that Humans were becoming an endangered species due to the increasing presence of aliens on Earth. (ENT: "Demons")
Endangered species within the Federation, including spaceborne species, were listed on the Endangered Species List and protected by the Endangered Species Act. Starfleet captains were required to act to protect them on threat of court martial. (DIS: "Magic to Make the Sanest Man Go Mad")
In 2258 of an alternate reality, while recording USS Enterprise's acting captain's log, Spock described himself as part of an endangered species. He made this statement shortly after Vulcan was destroyed by Nero, leaving roughly 10,000 Vulcan survivors, in his estimation. (Star Trek)
Corvan gilvos were endangered by the pollution of their native habitat on Corvan II. In 2368, there were only fourteen remaining. (TNG: "New Ground")