In this blog, I am going to give some REST API endpoints to access the attachment files with its proeprties from List item:
To get all attachments from List Item:
- //Option 1
- https://<SharepointSiteURL>/_api/web/lists/getByTitle('<ListName>')/getitembyid(<ItemID>)/attachmentfiles
- //Option 2
- https://<SharepointSiteURL>/_api/web/lists/getByTitle('<ListName>')/Items(<ItemID>)/attachmentfiles
To get specific attachment based on attachment file name:
- //Option 1:
- https://SharepointSiteURL/_api/web/lists/getByTitle('<ListName>')/getitembyid(<ItemID>)/attachmentfiles('<filename.docx>')
- //Option 2:
- https://SharepointSiteURL/_api/web/lists/getByTitle('<ListName>')/getitembyid(<ItemID>)/attachmentfiles/getbyfilename('<filename.docx>')
- https://SharepointSiteURL/_api/web/lists/getByTitle('<ListName>')/getitembyid(<ItemID>)/attachmentfiles('<filename.docx>')?$select=ServerRelativeUrl,FileName

Shantha Kumar TPosted May 21, 2016, 10:20 AM
Hi Tarun, Refer this url, http://www.c-sharpcorner.com/blogs/get-the-document-based-on-version-number-in-sharepoint-using-rest-api
Tarun DPosted May 19, 2016, 2:38 AM
Thank you Shantha Kumar for nice article. Can you please tell me the endpoint url for getting the document of a specific version..