Get attachment document
https://api.light.inc/v1/attachments/{attachmentId}/document
Redirects to a temporary download link for the attachment's file, archived attachments included. The link is valid for 2 hours and can be opened by anyone who holds it, so don't store it: the attachment id is the permanent reference, and a new link can be requested with it at any time. Files are kept indefinitely.
Permissions checked: vendors/portal-forms:read (COMPANY_ADMIN, VENDOR_MANAGEMENT) and whatever opening the record it belongs to needs, such as a bill. What a call needs depends on the caller, the record and the request.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
attachmentIdstring · uuidrequired
Response
application/json;charset=UTF-8This endpoint returns no content.