The American Academy of Sleep Medicine (AASM)does not recommend most antidepressants (including trazodone; except for doxepin) (however, they note that antidepressants such as trazodone may be appropriate in certain situations, such as patients who are experiencing both depression and insomnia)
doxepin (Silenor) [an antidepressant] The American Academy of Sleep Medicine (AASM) has recommended it for sleep maintenance insomnia (i.e., problems with staying asleep):
--
Trazodone
https://www.consumerreports.org/insomnia/trazodone-for-insomnia-should-you-take-a9455377183/
https://landmarkrecovery.com/side-effects-of-taking-trazodone-for-sleep/
2017, a systematic review of trazodone for insomnia
https://www.nhs.uk/medicines/trazodone/
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3165092/
https://www.drugs.com/sfx/trazodone-side-effects.html
a May 2018 Cochrane review found that there’s no good evidence to support the use of any antidepressant to treat insomnia, including trazodone.
https://www.consumerreports.org/drugs/the-problem-with-sleeping-pills/