API / Reference / Attachments
Get attachment document
GET
https://api.light.inc/v1/attachments/{attachmentId}/document
Returns the document file for a specific attachment
Returns a 307 Temporary Redirect with an empty body, not the file. The Location is a pre-signed download URL valid for two hours that serves the file with its stored content type and a Content-Disposition: attachment header. Follow it without your Light Authorization header. Unknown id: 404 ATTACHMENT_NOT_FOUND.
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
This endpoint returns no content.