List attachments
https://api.light.inc/v1/attachments
Returns the attachments of a specific resource with the given status. Without status, only active attachments are returned; pass status=ARCHIVED for archived ones, or both values for all. Attachments and their files are kept indefinitely: a replaced file stays listed as a separate, archived attachment next to the one that replaced it.
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
Query parameters
-
resourceIdstring · uuid -
statusarrayStatuses to return, repeatable. Defaults to ACTIVE.
Response
-
idstring · uuid -
companyIdstring · uuid -
resourceIdstring · uuid -
documentKeystring -
fileNamestring -
contentTypestring -
createdBystring · uuid -
metadataobject-
typestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
APARVENDOR_PORTAL
-
-
createdAtstring · date-time -
updatedAtstring · date-time -
statusstringARCHIVED once the attachment was archived. Who archived it and when is on the record's activity log.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACTIVEARCHIVED