I'm a little bit confused with the REST API documentation.
Say I have a confluence page
https://COMPANY_DOMAIN/confluence/display/SOME_ID/This+is+root+page.
In the above page there is a section with a hyperlink like the below
https://COMPANY_DOMAIN/confluence/download/attachments/51527290/FileName
Reading a little bit around I found an answer implying that with this https://COMPANY_DOMAIN/rest/api/content/{id}/child/attachment I could download the file but not sure what the actual id is.
I tried with a GET and adding Authorization header with my company credentials.
Any ideas or examples?