List file attachments
jobnimbus_list_filesList file attachments (photos, documents) with filename, content type, size, file type and the contact/job they belong to — optionally for one record (related_id). Metadata only; file bytes are not downloaded. Returns {count, files}. JobNimbus: GET /files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Zero-based offset for pagination (default 0). Next page: from + size. | |
| size | No | Records per page, 1-1000. Defaults to 25 here (the API's own default is 1000). | |
| filter | No | ElasticSearch-style bool query object, sent as the `filter` parameter. Examples: {"must":[{"term":{"first_name":"john"}}]}; {"must":[{"range":{"date_updated":{"gte":"now-1d"}}}]}; {"must":[{"terms":{"jnid":["a","b"]}}]}; {"must":[{"term":{"record_type_name":"Customer"}}]}. | |
| related_id | No | Only records related to this contact or job jnid (adds a related.id term to the filter). | |
| sort_field | No | Field to sort by (API default date_created), e.g. date_updated. | |
| sort_direction | No | Sort direction (API default desc). |