Can we download foreman logs i.e, production.log through Foreman api's or foreman GUI

I have requirement that I don’t have shell access of foreman server & I want to download the foreman logs for the debug purposes. I’m only communicating with Foreman through foreman api. How I can do the same?

Thanks in advance!!