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
| Parameter | Type | Required | Description |
|---|---|---|---|
code | Text | Optional | Code of the asset to be obtained. |
item_type | Number | Optional | Filter 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 |
start | Integer | Optional | Record number from which the query will start. By default it starts at item 0 |
limit | integer | Optional | Final 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:
| Parameter | Type | Location (id_type_item = 1) |
|---|---|---|
name | Text | Name |
description | Text | Description |
groups_attached_description | Text | Group |
versión | Text | Version |
valid_from | Date | Valid since |
valid_through | Date | Valid until |
author | Text | Author |
field_3 | Text | Model |
code_iso | Text | ISO code |
| Boolean | True False |
status | Boolean | True False |
item_description | Text | Description of asset |
item_type_item | Number | Type of asset |
item_code | Text | Asset code |
attachment | Array | Attachments of the document. [] if it has no attachments. See the Attachments section. |
Attachments (attachment)
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).
| Field | Type | Description |
|---|---|---|
type | Text | Attachment type: file (Virtual Drive file), link (external link), or note (text note) |
attachment_description | Text | Only 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 |
folder | Text | Only in file. Path of the file's folder in the Virtual Drive; the root is / |
file_url | Text | Only in file and link. In file: signed URL of the file, valid for 24 hours. In link: the external link |
- Attachments of type
fileare only returned if the token's user has permission to view the Virtual Drive. Without that permission, no files or URLs are returned, butlinkandnoteattachments are. - Files with the extensions
.exe,.html,.htm,.phtml,.shtml,.msi,.jsx,.php,.java, and.aspare not returned. - A file's
file_urlis 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_urlmay not download anything. - The
linkis 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
200