Query document management of an asset

Using this API, you can view the document management of assets created in Fracttal.

You can consult the document management of all assets or consult a particular asset by filtering by asset code and/or type of asset.

Input parameters

ParameterTypeRequiredDescription
codeTextOptionalCode of the asset to be obtained.
item_typeNumberOptionalFilter by asset type.
The following table shows the number to send according to the type of asset you want to obtain:
1: Locations
2: Equipment
3: Tools
4: Spare Parts and Supplies
5: Digital
startIntegerOptionalRecord number from which the query will start. By default it starts at item 0
limitintegerOptionalFinal record number to be returned by the query. By default 100 records are returned (Maximum value).

Output parameters

Configurable output parameters that vary according to the type of asset:

ParameterTypeLocation (id_type_item = 1)
nameTextName
descriptionTextDescription
groups_attached_descriptionTextGroup
versiónTextVersion
valid_fromDateValid since
valid_throughDateValid until
authorTextAuthor
field_3TextModel
code_isoTextISO code

is_warranty\

BooleanTrue
False
statusBooleanTrue
False
item_descriptionTextDescription of asset
item_type_itemNumberType of asset
item_codeTextAsset code
attachmentArrayAttachments of the document. [] if it has no attachments. See the Attachments section.

Attachments (attachment)

Each document includes attachment, an array with its attachments. It is always an array: it is [] if the document has no attachments or none is returned. Each element includes type and only the fields that apply to its type; the rest are omitted (they are not returned as null).

FieldTypeDescription
typeTextAttachment type: file (Virtual Drive file), link (external link), or note (text note)
attachment_descriptionTextOnly in file and note. In file: the attachment's description or, if it has none, the file name. In note: the text of the note
folderTextOnly in file. Path of the file's folder in the Virtual Drive; the root is /
file_urlTextOnly in file and link. In file: signed URL of the file, valid for 24 hours. In link: the external link
  • Attachments of type file are only returned if the token's user has permission to view the Virtual Drive. Without that permission, no files or URLs are returned, but link and note attachments are.
  • Files with the extensions .exe, .html, .htm, .phtml, .shtml, .msi, .jsx, .php, .java, and .asp are not returned.
  • A file's file_url is valid for 24 hours from the moment of the request; after that, query the service again to get a new one.
  • The service returns the files registered in the document without checking that they still exist in storage. If a file was deleted, its file_url may not download anything.
  • The link is returned exactly as it was registered, even if it points to an internal address of the customer.

Example:

Request: GET https://app.fracttal.com/api/items_document_management?code=EQ-0042&start=0&limit=100. The code can also be passed in the path: GET https://app.fracttal.com/api/items_document_management/EQ-0042.

{
    "success": true,
    "message": "200",
    "data": [
        {
            "id_company": 1001,
            "id_group_attached": 1,
            "groups_attached_description": "WARRANTY",
            "description": "Manufacturer's warranty",
            "name": "Factory warranty",
            "version": "1",
            "valid_from": "2026-03-01T05:00:00+00:00",
            "valid_through": "2027-03-01T05:00:00+00:00",
            "author": "Example user",
            "code_iso": "",
            "is_warranty": true,
            "id_item": 1520,
            "id_attached": 122,
            "id": 268,
            "status": true,
            "item_description": "Main water pump",
            "id_type_item": 2,
            "item_code": "EQ-0042",
            "attachment": [
                {
                    "type": "file",
                    "attachment_description": "Warranty certificate.pdf",
                    "folder": "/Warranties/Pumps",
                    "file_url": "https://<bucket>/company_1001/Warranties/Pumps/Warranty%20certificate.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=86400&X-Amz-Signature=<signature>"
                },
                {
                    "type": "link",
                    "file_url": "https://www.example.com/pump-manual"
                },
                {
                    "type": "note",
                    "attachment_description": "Check the seal every 6 months"
                }
            ]
        }
    ],
    "total": 1
}

Test iT

Response
200
Language
LoadingLoading…