API – Assets¶
All paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() function is in the API chapter.
The Assets module keeps track of company equipment (laptops, phones, furniture, tools) from the moment it is registered until it is disposed of or sold. Every change of holder, every disposal and every sale creates a numbered protocol and an entry in the asset's history. The recipient can confirm the protocol electronically.
Basic rules¶
Who may do what. An ordinary user sees only the assets assigned to them. An asset administrator (the Assets permission at level 1 or higher, or a full company administrator) sees everything and may create, edit, move, dispose of and sell assets, manage categories, warehouses, custom fields and settings, and run imports and exports. Each path below states who may call it. Without the permission the response is 403.
Person identifiers. All fields that hold a person (ownerUserId, toUserId, buyerUserId, responsibleUserId, responsiblePersonIds, userId) contain the user's master ID, not a row in the employees table.
Token. Reading (GET) works with a read-only token as well as with a read and write token. Every POST, PUT and DELETE requires a read and write token, otherwise the response is 403. Even then the permissions of the token's owner apply. Only the recipient can confirm a protocol, so confirming requires the recipient's own token.
Asset statuses (status).
| Status | Meaning | Active |
|---|---|---|
in_stock |
In a warehouse or at an object, no person holds it | yes |
assigned |
Assigned to a person | yes |
in_repair |
In repair. You can filter by the value, but neither the API nor the portal sets it on its own today | yes |
disposed |
Disposed of (decommissioned). Final status | no |
sold |
Sold. Final status | no |
A disposed or sold asset can no longer be moved, handed over or disposed of again. It is reactivated only by editing it with isActive: true through PUT /api/assets/{id}.
Holder. An asset is held either by a person (ownerUserId) or by a place: a warehouse (warehouseId, ownerLabel is its name) or free text (ownerLabel, for example "Meeting room 2"). The ownerName field is the person's name, otherwise ownerLabel.
Asset condition (condition). new, good, worn, damaged. A new asset defaults to new.
Protocols. A move, a disposal and a sale each create one protocol for all assets in a single call. The number looks like PP-2026-0007 (prefix, year of the protocol date, sequence).
| Type | Prefix | When it arises | Recipient confirms |
|---|---|---|---|
handover |
PP |
handing over to a person when no person held the asset before (warehouse → person) | yes |
transfer |
PR |
person → person, or place → place | yes, if the recipient is a person |
return |
VP |
return from a person to a warehouse or an object | no, it has no recipient |
disposal |
LP |
disposal | no |
sale |
OP |
sale to a buyer | yes |
Response. Success has the form { "success": true, "data": … }. An error has { "success": false, "error": "text" }. The error text is in the user's language. A field error (422) also has errors. Business errors of the lifecycle also carry a stable code in the code field.
| Status | When |
|---|---|
200 |
The read or the change succeeded |
201 |
The record was created |
400 |
A file or a required query parameter is missing |
401 |
The token is missing, invalid or revoked |
403 |
Missing permission, someone else's asset, or the token is read-only |
404 |
The record does not exist |
422 |
A field is missing or malformed, or a lifecycle rule was violated |
500 |
Unexpected server error |
code values for 422 on move, dispose, sell and when deleting a warehouse:
code |
Meaning |
|---|---|
assets_required |
No asset was selected |
asset_not_found |
Some ID does not exist |
asset_not_active |
The asset is disposed or sold |
mixed_holders |
The assets do not have the same current holder |
same_holder |
The asset already has this holder |
target_required |
toUserId, warehouseId and label are all missing |
user_not_found |
The user does not exist |
warehouse_not_found |
The warehouse does not exist or is inactive |
invalid_disposal_method |
Invalid method on disposal |
warehouse_not_empty |
The warehouse still holds active assets |
Files. Exports, the import template, PDFs and attachment downloads return a file, not JSON (text/csv, XLSX, application/pdf or the original type of the attachment). Uploading attachments and imports is sent as multipart/form-data, not as JSON. The innovanet() helper sends JSON only, files are shown in the cURL examples.
GET /api/assets¶
List of assets. An administrator sees everything, others only the assets assigned to them. Without the isActive filter the list also contains disposed and sold items.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
limit |
yes | integer | no | Default 50, at most 500 |
offset |
yes | integer | no | Default 0. The API does not return a total, so page until fewer than limit records arrive |
search |
yes | string | no | Name, serial number, inventory number, supplier, place label |
categoryId |
yes | integer | no | Category |
ownerUserId |
yes | integer | no | Person holder (master ID) |
warehouseId |
yes | integer | no | Warehouse |
status |
yes | string | no | One or more statuses separated by commas, for example assigned,in_repair. Unknown values are ignored |
isActive |
yes | boolean | no | true active only, false disposed and sold only |
warrantyExpiring |
yes | boolean | no | true = the warranty ends within the next 60 days |
sort_by |
yes | string | no | Name (default), SerialNumber, InventoryNumber, Status, PurchasedAt, Price, CreatedAt, WarrantyUntil, OwnerUserId, CategoryName, or custom:key for a custom field. Any other value means Name |
sort_order |
yes | string | no | asc (default) or desc |
cURL
curl -sS "https://api.innovanet.com/api/assets?ownerUserId=15&isActive=true&limit=20" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Accept: application/json"
PHP
$res = innovanet('GET', '/api/assets?ownerUserId=15&isActive=true&limit=20');
Response 200
{
"success": true,
"data": [
{
"id": 30,
"name": "Notebook Dell Latitude 5440",
"serialNumber": "SN-DL5440-0042",
"inventoryNumber": "INV-000030",
"status": "assigned",
"condition": "good",
"warehouseId": null,
"warehouseName": null,
"assignedAt": "2026-11-02",
"disposedAt": null,
"disposalMethod": null,
"disposalReason": null,
"soldAt": null,
"salePrice": null,
"categoryId": 2,
"categoryName": "IT technika",
"purchasedAt": "2026-10-20",
"price": 1190,
"currencyId": 1,
"currencyCode": "EUR",
"supplier": "Alza.sk",
"ownerUserId": 15,
"ownerLabel": null,
"ownerName": "Jana Nováková",
"ownerPhoto": null,
"warrantyUntil": "2028-10-20",
"customFields": { "mac_address": "00:1B:44:11:3A:B7" },
"isActive": true,
"createdBy": 18,
"createdAt": "2026-10-21 09:14:03",
"updatedAt": "2026-11-02 10:30:00"
}
]
}
Meaning of the asset fields (the same shape is used throughout the module):
| Field | Description |
|---|---|
status, condition |
Lifecycle status and physical condition, see above |
inventoryNumber |
Inventory number. If you do not enter one, the system fills it in as the prefix from the settings plus the six-digit ID, for example INV-000030 |
assignedAt |
Date of the last assignment to a person. null for a warehouse |
disposedAt, disposalMethod, disposalReason |
Disposal details |
soldAt, salePrice |
Sale details |
price, currencyId, currencyCode |
Purchase price and currency (EUR by default) |
ownerUserId, ownerLabel, ownerName, ownerPhoto |
Holder. ownerPhoto is null if the person has no photo |
customFields |
Custom fields as an object key: value. Without values it is an empty list [] |
isActive |
false for disposed and sold assets |
GET /api/assets/by-users¶
Active assets grouped by person and by place (warehouses and free labels) with counts. An administrator sees everyone, others only themselves.
PHP
$res = innovanet('GET', '/api/assets/by-users');
Response 200
{
"success": true,
"data": {
"users": [
{
"id": "user_15",
"type": "user",
"userId": 15,
"name": "Jana Nováková",
"photo": null,
"assetCount": 1,
"assets": [
{ "id": 30, "name": "Notebook Dell Latitude 5440", "inventoryNumber": "INV-000030", "status": "assigned", "ownerUserId": 15, "ownerName": "Jana Nováková", "categoryId": 2, "categoryName": null }
]
}
],
"labels": [
{
"id": "label_6f1ed002ab5595859014ebf0951522d9",
"type": "label",
"label": "Sklad Bratislava",
"assetCount": 1,
"assets": [
{ "id": 31, "name": "Monitor Dell 27", "inventoryNumber": "INV-000031", "status": "in_stock", "ownerUserId": null, "ownerName": "Sklad Bratislava", "categoryId": 2, "categoryName": null }
]
}
],
"canEdit": true
}
}
The items in assets have the same fields as in the list (shortened here) and categoryName is always null in this overview. canEdit is true if you are an asset administrator.
GET /api/assets/{id}¶
One asset with comments and attachments. Someone else's asset is visible only to an administrator, otherwise 403, a non-existent one 404. The warehouseName field is null here, get the warehouse name through /detail.
PHP
$res = innovanet('GET', '/api/assets/30');
Response 200 – the asset fields as in the list, plus:
{
"success": true,
"data": {
"id": 30,
"name": "Notebook Dell Latitude 5440",
"status": "assigned",
"ownerUserId": 15,
"comments": [
{
"id": 12,
"userId": 15,
"userName": "Jana Nováková",
"userPhoto": null,
"comment": "The power adapter is missing",
"createdAt": "2026-11-03 08:41:10"
}
],
"attachments": [
{
"id": 5,
"originalName": "warranty.pdf",
"mimeType": "application/pdf",
"createdAt": "2026-10-21 09:20:00"
}
]
}
}
The example shortens the asset fields, in reality all of them arrive.
GET /api/assets/{id}/detail¶
Everything the detail page needs in one response: the asset with comments, attachments, events and protocols, plus categories, custom field definitions, active warehouses and flags saying what you may do. Permission as for GET /api/assets/{id}.
PHP
$res = innovanet('GET', '/api/assets/30/detail');
Response 200
{
"success": true,
"data": {
"asset": {
"id": 30,
"name": "Notebook Dell Latitude 5440",
"status": "assigned",
"warehouseName": null,
"comments": [],
"attachments": [],
"events": [
{
"id": 77,
"type": "handover",
"from": "Sklad Bratislava",
"to": "Jana Nováková",
"protocolId": 9,
"protocolNumber": "PP-2026-0007",
"changes": [],
"note": null,
"userId": 18,
"userName": "Peter Horváth",
"createdAt": "2026-11-02 10:30:00"
}
],
"protocols": [
{
"id": 9,
"number": "PP-2026-0007",
"type": "handover",
"fromUserId": null,
"from": "Sklad Bratislava",
"toUserId": 15,
"to": "Jana Nováková",
"requestId": null,
"protocolDate": "2026-11-02",
"createdBy": 18,
"createdByName": "Peter Horváth",
"createdAt": "2026-11-02 10:30:00",
"acceptedAt": null,
"acceptedByName": null
}
]
},
"categories": [
{ "id": 2, "name": "IT technika", "sortOrder": 0, "responsiblePersonIds": [18], "createdAt": "2026-09-01 08:00:00", "updatedAt": null }
],
"customFieldDefinitions": [
{ "id": 3, "categoryId": 2, "fieldKey": "mac_address", "label": "MAC address", "fieldType": "string", "sortOrder": 1, "createdAt": "2026-09-01 08:05:00", "updatedAt": null }
],
"warehouses": [
{ "id": 3, "name": "Sklad Bratislava", "address": "Príjazdná 10, Bratislava", "responsibleUserId": 18, "responsibleUserName": "Peter Horváth", "isActive": true, "assetCount": 4 }
],
"canEdit": true,
"canRequestSale": false,
"openSaleRequestId": null
}
}
canEdit is true for an administrator. canRequestSale is true if buying out is enabled in the settings, the asset is assigned to you and has no open buy-out request. openSaleRequestId is the ID of such an open request. customFieldDefinitions contains the fields for all categories and the fields of this asset's category.
GET /api/assets/{id}/history¶
The asset's history: events (newest first) and the protocols the asset was part of. It may be read by an administrator or by the current holder. A previous holder no longer sees it (403).
PHP
$res = innovanet('GET', '/api/assets/30/history');
Response 200
{
"success": true,
"data": {
"events": [
{
"id": 78,
"type": "updated",
"from": null,
"to": null,
"protocolId": null,
"protocolNumber": null,
"changes": [
{ "field": "condition", "label": "Condition", "old": "new", "new": "good" }
],
"note": null,
"userId": 18,
"userName": "Peter Horváth",
"createdAt": "2026-11-03 09:00:00"
},
{
"id": 77,
"type": "handover",
"from": "Sklad Bratislava",
"to": "Jana Nováková",
"protocolId": 9,
"protocolNumber": "PP-2026-0007",
"changes": [],
"note": "Handed over with a bag",
"userId": 18,
"userName": "Peter Horváth",
"createdAt": "2026-11-02 10:30:00"
}
],
"protocols": [
{
"id": 9,
"number": "PP-2026-0007",
"type": "handover",
"fromUserId": null,
"from": "Sklad Bratislava",
"toUserId": 15,
"to": "Jana Nováková",
"requestId": null,
"protocolDate": "2026-11-02",
"createdBy": 18,
"createdByName": "Peter Horváth",
"createdAt": "2026-11-02 10:30:00",
"acceptedAt": "2026-11-02 11:05:44",
"acceptedByName": "Jana Nováková"
}
]
}
}
Event types (type): created, handover, return, transfer, disposal, sale, updated (a change of data, details in changes) and reactivated.
POST /api/assets¶
Creates an asset. Only an asset administrator may do it. It creates neither a protocol nor a notification, only a created event. If you are handing the asset over to an employee right away and they should confirm receipt, create it without a holder and hand it over with POST /api/assets/move.
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | At most 500 characters |
serialNumber |
string | no | At most 255 characters |
inventoryNumber |
string | no | At most 50 characters. If missing, the system fills it in. Must be unique among assets, otherwise 422 |
categoryId |
integer | no | ID from GET /api/asset-categories. The category must exist |
purchasedAt |
date YYYY-MM-DD |
no | Purchase date |
price |
number | no | Not negative |
currencyId |
integer | no | If omitted, the company default currency is used (otherwise 1, EUR) |
supplier |
string | no | At most 500 characters |
ownerUserId |
integer | no | Person holder. Takes precedence over the warehouse and the text. The status will be assigned |
warehouseId |
integer | no | Warehouse, when no person holder is given. Status in_stock |
ownerLabel |
string | no | Free-text place, when there is neither a person nor a warehouse. At most 500 characters |
condition |
string | no | new (default), good, worn, damaged |
warrantyUntil |
date | no | Warranty until. Must not be earlier than purchasedAt |
customFields |
object | no | Values of custom fields, {"key": "value"}, see Custom fields |
isActive |
boolean | no | Default true. With false it is created straight away as disposed |
Request
{
"name": "Notebook Dell Latitude 5440",
"serialNumber": "SN-DL5440-0042",
"categoryId": 2,
"purchasedAt": "2026-10-20",
"price": 1190,
"supplier": "Alza.sk",
"warehouseId": 3,
"condition": "new",
"warrantyUntil": "2028-10-20",
"customFields": { "mac_address": "00:1B:44:11:3A:B7" }
}
cURL
curl -sS -X POST "https://api.innovanet.com/api/assets" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d "{\"name\":\"Notebook Dell Latitude 5440\",\"categoryId\":2,\"price\":1190,\"warehouseId\":3}"
PHP
$res = innovanet('POST', '/api/assets', [
'name' => 'Notebook Dell Latitude 5440',
'serialNumber' => 'SN-DL5440-0042',
'categoryId' => 2,
'purchasedAt' => '2026-10-20',
'price' => 1190,
'warehouseId' => 3,
'customFields' => ['mac_address' => '00:1B:44:11:3A:B7'],
]);
// $res['json']['data']['id'] is the ID of the new asset
Response 201
{ "success": true, "data": { "id": 30 } }
Without the administrator permission it is 403. A field error is 422 with errors per field. Besides the format, the API checks that no other asset has the inventoryNumber, that categoryId exists, that warrantyUntil is not before purchasedAt and that price is not negative:
{
"success": false,
"error": "Validation failed",
"errors": {
"name": ["The name field is required."]
}
}
PUT /api/assets/{id}¶
Edits the asset's data. Only an administrator may do it. The body has the same fields as on creation and name is again required.
Careful, this is a full replacement. The omitted fields serialNumber, categoryId, purchasedAt, price, supplier, warrantyUntil and customFields are cleared. Always send the whole object (load it with GET first). Exceptions: an omitted inventoryNumber and condition stay unchanged, an omitted isActive keeps the current state. The holder does not change until you send at least one of ownerUserId, warehouseId, ownerLabel. Once you send one, the holder is overwritten with the values sent (a lone null clears it).
A change of holder or a disposal made through PUT is recorded in the history, but it creates no protocol and does not notify the recipient. Use move and dispose for handing over and disposal. Changes to the other fields are recorded as an updated event with the old and new difference. Changing isActive from false to true reactivates the asset (a reactivated event, status according to the holder).
PHP
$res = innovanet('PUT', '/api/assets/30', [
'name' => 'Notebook Dell Latitude 5440',
'serialNumber' => 'SN-DL5440-0042',
'categoryId' => 2,
'purchasedAt' => '2026-10-20',
'price' => 1190,
'supplier' => 'Alza.sk',
'warrantyUntil' => '2028-10-20',
'condition' => 'good',
'customFields' => ['mac_address' => '00:1B:44:11:3A:B7'],
]);
Response 200
{ "success": true }
A non-existent asset is 404.
POST /api/assets/{id}/comments¶
A comment on an asset, for example a defect or missing accessories. An administrator and the holder of the asset may add one. The holder and all asset administrators (except the author) get a notification.
| Field | Type | Required | Description |
|---|---|---|---|
comment |
string | yes | At most 10,000 characters |
PHP
$res = innovanet('POST', '/api/assets/30/comments', ['comment' => 'The power adapter is missing']);
Response 201
{ "success": true, "data": { "id": 12 } }
Someone else's asset is visible only to an administrator, otherwise 403.
POST /api/assets/{id}/attachments¶
An attachment for an asset (invoice, warranty card, photo). An administrator and the holder may add it. The file is sent as multipart/form-data, field file. The API sets no size limit of its own, the server limit applies.
cURL
curl -sS -X POST "https://api.innovanet.com/api/assets/30/attachments" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Accept: application/json" \
-F "file=@warranty.pdf"
Response 201
{
"success": true,
"data": {
"id": 5,
"originalName": "warranty.pdf",
"createdAt": "2026-10-21T09:20:00+02:00"
}
}
A missing or damaged file is 400 (Invalid or missing file).
GET /api/assets/attachments/download¶
Downloads an asset attachment. The response is a file with the original name and type. An administrator and the holder of the asset may do it.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
id |
yes | integer | yes | Attachment ID from the attachments[].id field. Without it 400 |
cURL
curl -sS "https://api.innovanet.com/api/assets/attachments/download?id=5" \
-H "Authorization: Bearer inv_mcp_…" \
-o warranty.pdf
DELETE /api/assets/attachments/{id}¶
Deletes an asset attachment (including the file). An administrator and the holder of the asset may do it.
PHP
$res = innovanet('DELETE', '/api/assets/attachments/5');
Response 200
{ "success": true }
POST /api/assets/move¶
Handover, transfer or return of one or more items. Only an asset administrator may do it. In one transaction the operation changes the holder of all items, creates one protocol and an entry in the history for each item.
You specify the target with one of three fields. If more than one is filled in, the order is toUserId, then warehouseId, then label.
| Field | Type | Required | Description |
|---|---|---|---|
assetIds |
array of integers or string | yes | A list of IDs, for example [30, 31], or comma-separated text "30,31" |
toUserId |
integer | target | Master ID of the person the asset is handed to. The status changes to assigned |
warehouseId |
integer | target | An active warehouse. The status changes to in_stock |
label |
string | target | Free-text place, at most 500 characters. Status in_stock |
condition |
string | no | new, good, worn or damaged. It is written to the asset and to the protocol |
note |
string | no | Note in the protocol, at most 5000 characters |
date |
date YYYY-MM-DD |
no | Date of the protocol and of the assignment. Default today, must not be in the future |
Rules: all items must have the same current holder (otherwise mixed_holders), the target must not equal the current holder (same_holder) and a disposed or sold item cannot be moved (asset_not_active). The direction decides the protocol type: nobody → person is handover, person → place is return, everything else is transfer. If the recipient is not the person doing the move, they get a notification.
Request – handover to an employee
{
"assetIds": [30, 32],
"toUserId": 15,
"condition": "good",
"note": "Handed over with a bag and a charger",
"date": "2026-11-02"
}
cURL
curl -sS -X POST "https://api.innovanet.com/api/assets/move" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d "{\"assetIds\":[30,32],\"toUserId\":15,\"condition\":\"good\"}"
PHP
$res = innovanet('POST', '/api/assets/move', [
'assetIds' => [30, 32],
'toUserId' => 15,
'condition' => 'good',
'note' => 'Handed over with a bag and a charger',
]);
// $res['json']['data']['protocolId'] is the protocol ID
Response 200
{
"success": true,
"data": {
"protocolId": 9,
"number": "PP-2026-0007",
"type": "handover"
}
}
Request – return to a warehouse
{ "assetIds": [30], "warehouseId": 3, "condition": "worn" }
The response has type return and the number starts with VP-.
A rule error is 422:
{
"success": false,
"error": "Selected assets must have the same current holder.",
"code": "mixed_holders"
}
POST /api/assets/dispose¶
Disposal (decommissioning) of one or more items. Only an administrator may do it. The asset is deactivated (isActive: false, status disposed), loses its holder and warehouse, the date, method and reason are stored and a disposal protocol (LP-…) is created. Nobody confirms the protocol. The items need not have the same holder.
| Field | Type | Required | Description |
|---|---|---|---|
assetIds |
array of integers or string | yes | As for move |
method |
string | yes | scrap, recycling, donation, lost, stolen, other |
reason |
string | yes | Reason, at most 2000 characters |
date |
date | no | Date of disposal. Default today, must not be in the future |
note |
string | no | Note, at most 5000 characters |
Request
{
"assetIds": [41, 42],
"method": "recycling",
"reason": "Obsolete hardware, dead batteries",
"date": "2026-11-05"
}
PHP
$res = innovanet('POST', '/api/assets/dispose', [
'assetIds' => [41, 42],
'method' => 'recycling',
'reason' => 'Obsolete hardware, dead batteries',
]);
Response 200
{
"success": true,
"data": { "protocolId": 12, "number": "LP-2026-0003", "type": "disposal" }
}
An invalid method is 422 (invalid_disposal_method), an already disposed item 422 (asset_not_active).
POST /api/assets/{id}/deactivate¶
A shortened disposal of one item. It does the same as dispose with one ID, but all fields are optional. Only an administrator may do it.
| Field | Type | Required | Description |
|---|---|---|---|
method |
string | no | As for dispose. An invalid or missing value becomes other (no error) |
reason |
string | no | Default "Removed from register" |
date |
date | no | Default today, must not be in the future |
note |
string | no | Note |
PHP
$res = innovanet('POST', '/api/assets/41/deactivate', [
'method' => 'scrap',
'reason' => 'Broken display',
]);
Response 200
{
"success": true,
"data": { "protocolId": 13, "number": "LP-2026-0004", "type": "disposal" }
}
If the asset is already disposed, the response is 200 with { "success": true } without data and nothing changes. A lifecycle rule violation returns, as with dispose, 422 with the body { "success": false, "error": "text", "code": "…" } (not 500). An invalid method does not raise an error, it becomes other. A non-existent item is 404, without administrator permission 403.
POST /api/assets/{id}/sell¶
A direct sale of one item to a buyer (usually its holder) without a request. Only an administrator may do it. The asset is deactivated with the status sold, the date, price and buyer are stored and a sale protocol (OP-…) is created. The buyer confirms it as the recipient and gets a notification.
| Field | Type | Required | Description |
|---|---|---|---|
buyerUserId |
integer | yes | Master ID of the buyer |
price |
number | no | Sale price, not negative. Without it null is stored |
date |
date | no | Default today, must not be in the future |
note |
string | no | Note, at most 5000 characters |
Request
{
"buyerUserId": 15,
"price": 250,
"date": "2026-11-05",
"note": "Buy-out after 3 years of use"
}
PHP
$res = innovanet('POST', '/api/assets/30/sell', [
'buyerUserId' => 15,
'price' => 250,
'note' => 'Buy-out after 3 years of use',
]);
Response 200
{
"success": true,
"data": { "protocolId": 14, "number": "OP-2026-0001", "type": "sale" }
}
GET /api/assets/protocols/pending¶
Protocols you received and have not confirmed yet. These are the types handover, transfer and sale. They are always your own, an administrator does not see other people's here. Newest first.
PHP
$res = innovanet('GET', '/api/assets/protocols/pending');
Response 200
{
"success": true,
"data": [
{
"id": 9,
"number": "PP-2026-0007",
"type": "handover",
"fromUserId": null,
"from": "Sklad Bratislava",
"toUserId": 15,
"to": "Jana Nováková",
"requestId": null,
"protocolDate": "2026-11-02",
"createdBy": 18,
"createdByName": "Peter Horváth",
"createdAt": "2026-11-02 10:30:00",
"acceptedAt": null,
"acceptedByName": null
}
]
}
GET /api/assets/protocols/{id}¶
Detail of a protocol with its items. An administrator and the parties of the protocol (the handing-over person, the recipient, the creator) may see it, otherwise 403. requestId is filled in if the protocol arose by fulfilling a request.
PHP
$res = innovanet('GET', '/api/assets/protocols/9');
Response 200
{
"success": true,
"data": {
"id": 9,
"number": "PP-2026-0007",
"type": "handover",
"fromUserId": null,
"from": "Sklad Bratislava",
"toUserId": 15,
"to": "Jana Nováková",
"requestId": null,
"protocolDate": "2026-11-02",
"createdBy": 18,
"createdByName": "Peter Horváth",
"createdAt": "2026-11-02 10:30:00",
"acceptedAt": null,
"acceptedByName": null,
"details": [],
"note": "Handed over with a bag and a charger",
"items": [
{
"assetId": 30,
"name": "Notebook Dell Latitude 5440",
"inventoryNumber": "INV-000030",
"serialNumber": "SN-DL5440-0042",
"categoryName": "IT technika",
"price": 1190,
"currencyId": 1,
"condition": "good"
}
]
}
}
The items are a snapshot from the moment the protocol was created, later changes to the asset do not show in them. details is { "method": "recycling", "reason": "…" } for a disposal, { "price": 250, "currencyId": 1 } for a sale, otherwise empty.
POST /api/assets/protocols/{id}/accept¶
Electronic confirmation of receipt. It may be called only by the recipient of the protocol (toUserId) with their own read and write token. An administrator cannot confirm for the employee. The confirmation replaces the paper signature: the time acceptedAt and the name are stored and also appear on the protocol PDF. Confirming again is harmless (200, nothing changes).
A protocol without a person recipient (return, disposal, handover to a warehouse) cannot be confirmed. The response is 403. A non-existent protocol is 404.
cURL
curl -sS -X POST "https://api.innovanet.com/api/assets/protocols/9/accept" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Accept: application/json"
PHP
$res = innovanet('POST', '/api/assets/protocols/9/accept');
Response 200
{ "success": true }
GET /api/assets/protocols/{id}/pdf¶
The PDF of a protocol with its items, parties and (if confirmed) the electronic confirmation. The response is a file application/pdf. Permission as for the protocol detail.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
language |
yes | string | no | sk, cs or en. Otherwise sk |
cURL
curl -sS "https://api.innovanet.com/api/assets/protocols/9/pdf?language=en" \
-H "Authorization: Bearer inv_mcp_…" \
-o protocol-pp-2026-0007.pdf
GET /api/asset-requests¶
List of requests for an asset and requests to buy one out. An administrator sees all of them. Others see their own, their subordinates' and those in which they have an approval task. Newest first, no paging.
PHP
$res = innovanet('GET', '/api/asset-requests');
Response 200
{
"success": true,
"data": [
{
"id": 21,
"userId": 15,
"userName": "Jana Nováková",
"userPhoto": null,
"categoryId": 2,
"categoryName": "IT technika",
"name": "Notebook for the new designer",
"reason": "Starts on 1 December, needs a powerful laptop",
"type": "allocation",
"assetId": null,
"assetName": null,
"offeredPrice": null,
"fulfilledAt": null,
"dateCreated": "2026-11-04 14:22:10",
"orgUnit": null,
"workflowStatus": "in_progress",
"workflowLabel": "Approval in progress"
}
]
}
workflowStatus: pending waiting, in_progress approval in progress, approved approved (waiting to be fulfilled), declined declined, canceled canceled, fulfilled fulfilled (the asset was handed over or sold). workflowLabel is text in the user's language.
POST /api/asset-requests¶
Submits a request. Any logged-in user may do it. Approval tasks are created: the requester's manager, that manager's manager and the category's responsible persons, each person at most once. If the requester has no manager and the category has no responsible persons, the request is not submitted (400).
The type allocation (default) is a request for a new item from a category. The type sale is a request to buy out an item assigned to you. It requires buy-out to be enabled in the settings, the item assigned to the requester and active, and no other open buy-out request for it. The approvers are then taken from the category of that item.
| Field | Type | Required | Description |
|---|---|---|---|
type |
string | no | allocation (default) or sale |
name |
string | yes | Short name of the request, at most 500 characters |
categoryId |
integer | with allocation |
Category of the requested asset |
assetId |
integer | with sale |
The item you want to buy out |
offeredPrice |
number | no | Offered price for sale, not negative |
reason |
string | no | Justification, at most 10,000 characters |
orgUnit |
integer | no | ID of the organizational unit |
Request – new laptop
{
"type": "allocation",
"name": "Notebook for the new designer",
"categoryId": 2,
"reason": "Starts on 1 December, needs a powerful laptop"
}
cURL
curl -sS -X POST "https://api.innovanet.com/api/asset-requests" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d "{\"name\":\"Notebook for the new designer\",\"categoryId\":2}"
PHP
$res = innovanet('POST', '/api/asset-requests', [
'name' => 'Notebook for the new designer',
'categoryId' => 2,
'reason' => 'Starts on 1 December, needs a powerful laptop',
]);
Request – buy-out
{ "type": "sale", "name": "Laptop buy-out", "assetId": 30, "offeredPrice": 250 }
Response 201
{
"success": true,
"data": { "id": 21 },
"message": "Request was created"
}
A buy-out that is not allowed (sale_not_allowed) or already has an open request (sale_already_requested) is 422 with the text in error. A non-existent category or item and a request without approvers are 400.
GET /api/asset-requests/{id}¶
Detail of a request with its approval steps, comments and attachments. Permission as for the list, otherwise 404.
PHP
$res = innovanet('GET', '/api/asset-requests/21');
Response 200
{
"success": true,
"data": {
"id": 21,
"userId": 15,
"userName": "Jana Nováková",
"categoryId": 2,
"categoryName": "IT technika",
"name": "Notebook for the new designer",
"reason": "Starts on 1 December, needs a powerful laptop",
"type": "allocation",
"assetId": null,
"assetName": null,
"assetInventoryNumber": null,
"offeredPrice": null,
"fulfilledAt": null,
"fulfilledByName": null,
"protocolId": null,
"canFulfill": false,
"items": [
{ "id": 5, "name": "Notebook 14\"", "url": "https://shop.example/notebook-14", "quantity": 1, "unitPrice": 1150, "vatRate": 23, "net": 1150 }
],
"itemTotals": { "net": 1150, "vat": 264.5, "gross": 1414.5, "vatRate": 23 },
"canEditItems": false,
"fulfilmentMode": null,
"order": null,
"supplierCompanyId": null,
"supplierName": null,
"dateCreated": "2026-11-04 14:22:10",
"orgUnit": null,
"workflowStatus": "in_progress",
"workflowLabel": "Approval in progress",
"tasks": [
{
"id": 301,
"task": "Kontrola žiadosti",
"description": "Žiadosť: Notebook for the new designer",
"toUserId": 22,
"toUserName": "Eva Kováčová",
"toUserPhoto": null,
"fromUserId": 15,
"fromUserName": "Jana Nováková",
"status": 999,
"statusLabel": "Approved",
"active": 0,
"dateCreated": "2026-11-04 14:22:10",
"dateDone": "2026-11-04 15:01:00",
"reason": null
},
{
"id": 302,
"task": "Schválenie",
"description": "Žiadosť: Notebook for the new designer",
"toUserId": 18,
"toUserName": "Peter Horváth",
"toUserPhoto": null,
"fromUserId": 15,
"fromUserName": "Jana Nováková",
"status": 1,
"statusLabel": "In progress",
"active": 1,
"dateCreated": "2026-11-04 14:22:10",
"dateDone": null,
"reason": null
}
],
"activeTaskId": null,
"attachments": [
{ "id": 4, "fileName": "quote.pdf", "dateCreated": "2026-11-04 14:25:00" }
],
"comments": [
{
"id": 8,
"userId": 22,
"userName": "Eva Kováčová",
"userPhoto": null,
"comment": "Please add the specification",
"createdAt": "2026-11-04 15:02:00"
}
]
}
}
Step status (status): 1 in progress, 999 approved, 997 declined, 998 canceled. The steps are created one after another: first the requester's manager (Kontrola žiadosti, fills in the shopping basket), after they approve the manager's manager (Schválenie), and after that the category's responsible persons (Realizácia nákupu). tasks therefore holds only the steps that already exist. workflowStatus approved means that all approval steps are approved; the Realizácia task is the fulfilment itself and fulfill closes it. activeTaskId is the ID of the step that you are to approve right now, otherwise null. Approving is an ordinary task, done in the portal under Tasks. canFulfill is true if the request is approved and you may fulfill it. The names of the steps (task, description) are always in Slovak.
Shopping basket (only with allocation): items are the lines (unitPrice is without VAT, vatRate in percent, net is the line base), itemTotals the totals rounded like on invoices (base per line, VAT from the line). canEditItems is true for the person of the first approval step while their step is open, for an assets admin until the request is decided and, when the request has no approval step, for the fulfilling person. After fulfilment fulfilmentMode is stock (from stock), order (order draft) or sale; with order, order holds the number and ID of the order draft and supplierCompanyId and supplierName the supplier.
PUT /api/asset-requests/{id}/items¶
Replaces the shopping basket of an allocation request. The person of the first approval step (while their step is open), an assets admin or, when the request has no approval step, the fulfilling person may do it; otherwise 403. Once the reviewer's step is approved the basket is locked for the manager's manager. Lines without a name are dropped.
| Field | Type | Required | Description |
|---|---|---|---|
items |
array | yes | At most 100 lines ([] empties the basket) |
items[].name |
string | yes | At most 500 characters |
items[].url |
string | no | Shop link, must start with http:// or https:// (otherwise 422 invalid_url) |
items[].quantity |
number | no | Greater than 0, default 1 |
items[].unitPrice |
number | no | Unit price without VAT, not negative |
items[].vatRate |
number | no | VAT rate 0 to 100 |
Request
{ "items": [ { "name": "Notebook 14\"", "url": "https://shop.example/notebook-14", "quantity": 1, "unitPrice": 1150, "vatRate": 23 } ] }
PHP
$res = innovanet('PUT', '/api/asset-requests/21/items', [
'items' => [
['name' => 'Notebook 14"', 'url' => 'https://shop.example/notebook-14', 'quantity' => 1, 'unitPrice' => 1150, 'vatRate' => 23],
],
]);
Response 200 – the saved items and itemTotals (net, vat, gross, vatRate). An invalid quantity, price or VAT rate is 422 invalid_item.
POST /api/asset-requests/{id}/fulfill¶
Fulfills an approved request. An asset administrator or a responsible person of the request's category may do it. The request must have workflowStatus approved, otherwise 422 ("The request can be fulfilled only after approval."), and it can be fulfilled only once (already_fulfilled). Fulfilling closes the open Realizácia tasks.
allocation,modestock(default):assetIdis required, the item handed over to the requester. A move takes place as withmove(the item must be active and must not already belong to the requester) and ahandoverortransferprotocol linked to the request is created.allocation,modeorder: an order draft at a supplier is created from the shopping basket in the Orders module (an empty basket is422basket_empty). The supplier is eithersupplierCompanyIdfrom the address book orsupplierName(and optionalsupplierIco): an existing company is found by registration number or exact name, otherwise the supplier is added to the address book. The order has the supplier (role Supplier), the base and the amount with VAT from the basket, the fulfilling person as owner and the list of items with links in its conditions. Withsale,modeorderis422order_not_for_sale.sale:assetIdis not used, the item from the request is sold.priceis optional, by default the requester's offered price. The item is sold to the requester as withsell.
With a protocol, the requester then confirms it with accept.
| Field | Type | Required | Description |
|---|---|---|---|
mode |
string | no | stock (default) or order |
assetId |
integer | with allocation and stock |
The item handed over to the requester |
supplierCompanyId |
integer | with order (or supplierName) |
Supplier from the address book |
supplierName |
string | with order (or supplierCompanyId) |
Supplier name, at most 255 characters, a new one is added to the address book |
supplierIco |
string | no | Registration number of a new supplier |
price |
number | no | With sale the sale price, not negative |
note |
string | no | Note for the protocol or the order, at most 5000 characters |
Request
{ "assetId": 30, "note": "New laptop from the warehouse" }
PHP
$res = innovanet('POST', '/api/asset-requests/21/fulfill', [
'assetId' => 30,
'note' => 'New laptop from the warehouse',
]);
Response 200
{
"success": true,
"data": { "protocolId": 9, "number": "PP-2026-0007", "type": "handover" }
}
With mode order the response is:
{
"success": true,
"data": { "mode": "order", "orderId": 142, "orderNumber": "2026-0142", "supplierCompanyId": 87, "supplierCreated": true }
}
supplierCreated is true when the supplier was just added to the address book. Without permission it is 403. The lifecycle rules return 422 with the text in error (without a code field).
POST /api/asset-requests/{id}/comments¶
A comment on a request. Anyone who sees the request may add one. The requester and the asset administrators (except the author) get a notification.
| Field | Type | Required | Description |
|---|---|---|---|
comment |
string | yes | At most 10,000 characters |
PHP
$res = innovanet('POST', '/api/asset-requests/21/comments', ['comment' => 'I am adding the specification in the attachment']);
Response 201
{ "success": true, "data": { "id": 8 } }
GET /api/asset-requests/{id}/attachments¶
List of a request's attachments (without content).
PHP
$res = innovanet('GET', '/api/asset-requests/21/attachments');
Response 200
{
"success": true,
"data": [
{ "id": 4, "fileName": "quote.pdf", "dateCreated": "2026-11-04 14:25:00" }
]
}
POST /api/asset-requests/{id}/attachments¶
Adds an attachment to a request. Anyone who sees the request may do it. The file is multipart/form-data, field file, at most 20 MB.
cURL
curl -sS -X POST "https://api.innovanet.com/api/asset-requests/21/attachments" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Accept: application/json" \
-F "file=@quote.pdf"
Response 201
{
"success": true,
"data": { "id": 4, "fileName": "quote.pdf" },
"message": "Attachment uploaded"
}
A missing or too large file is 422.
GET /api/asset-requests/{id}/attachments/download¶
Downloads a request attachment. The response is a file.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
attachmentId |
yes | integer | yes | Attachment ID. Without it 400, a non-existent one 404 |
cURL
curl -sS "https://api.innovanet.com/api/asset-requests/21/attachments/download?attachmentId=4" \
-H "Authorization: Bearer inv_mcp_…" \
-o quote.pdf
DELETE /api/asset-requests/{id}/attachments¶
Deletes a request attachment. Anyone who sees the request may do it.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
attachmentId |
yes | integer | yes | Attachment ID. Without it 400 |
PHP
$res = innovanet('DELETE', '/api/asset-requests/21/attachments?attachmentId=4');
Response 200
{ "success": true, "message": "Deleted" }
A non-existent attachment is 400.
GET /api/asset-categories¶
Asset categories, alphabetically. Any logged-in user may read them (they also feed the dropdowns).
PHP
$res = innovanet('GET', '/api/asset-categories');
Response 200
{
"success": true,
"data": [
{
"id": 2,
"name": "IT technika",
"sortOrder": 0,
"responsiblePersonIds": [18, 22],
"createdAt": "2026-09-01 08:00:00",
"updatedAt": null
}
]
}
responsiblePersonIds are the people who become approvers of a request for an asset from this category and may fulfill it.
POST /api/asset-categories¶
Creates a category. Only an asset administrator may do it.
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | At most 255 characters |
sortOrder |
integer | no | Order, 0 or more. Default 0 |
responsiblePersonIds |
array of integers | no | Master IDs of the responsible persons |
Request
{ "name": "IT technika", "sortOrder": 0, "responsiblePersonIds": [18, 22] }
PHP
$res = innovanet('POST', '/api/asset-categories', [
'name' => 'IT technika',
'responsiblePersonIds' => [18, 22],
]);
Response 201
{ "success": true, "data": { "id": 2 } }
PUT /api/asset-categories/{id}¶
Edits a category. Only an administrator may do it. The fields are as on creation, name is required and an omitted sortOrder is set to 0. An omitted responsiblePersonIds stays unchanged, an empty array sent clears them.
PHP
$res = innovanet('PUT', '/api/asset-categories/2', [
'name' => 'IT technika',
'sortOrder' => 1,
'responsiblePersonIds' => [18],
]);
Response 200
{ "success": true }
A non-existent category is 404.
DELETE /api/asset-categories/{id}¶
Deletes a category. Only an administrator may do it. The API does not check whether any asset uses the category.
PHP
$res = innovanet('DELETE', '/api/asset-categories/2');
Response 200
{ "success": true }
GET /api/asset-warehouses¶
Warehouses and storage places, alphabetically, with the number of active items. Any logged-in user may read them.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
activeOnly |
yes | boolean | no | true = active warehouses only |
PHP
$res = innovanet('GET', '/api/asset-warehouses?activeOnly=true');
Response 200
{
"success": true,
"data": [
{
"id": 3,
"name": "Sklad Bratislava",
"address": "Príjazdná 10, Bratislava",
"responsibleUserId": 18,
"responsibleUserName": "Peter Horváth",
"isActive": true,
"assetCount": 4
}
]
}
POST /api/asset-warehouses¶
Creates a warehouse. Only an asset administrator may do it.
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | At most 255 characters |
address |
string | no | At most 500 characters |
responsibleUserId |
integer | no | Master ID of the responsible person |
isActive |
boolean | no | Default true. An inactive warehouse cannot be chosen as the target of a move |
PHP
$res = innovanet('POST', '/api/asset-warehouses', [
'name' => 'Sklad Bratislava',
'address' => 'Príjazdná 10, Bratislava',
'responsibleUserId' => 18,
]);
Response 201
{ "success": true, "data": { "id": 3 } }
PUT /api/asset-warehouses/{id}¶
Edits a warehouse. Only an administrator may do it. The fields are as on creation, name is required. A rename is carried over to the holder label (ownerLabel) of the items stored in the warehouse.
PHP
$res = innovanet('PUT', '/api/asset-warehouses/3', [
'name' => 'Sklad Bratislava – Vajnory',
'isActive' => true,
]);
Response 200
{ "success": true, "data": { "id": 3 } }
A non-existent warehouse is 404.
DELETE /api/asset-warehouses/{id}¶
Deletes a warehouse. Only an administrator may do it. A warehouse with active assets cannot be deleted, move them first.
PHP
$res = innovanet('DELETE', '/api/asset-warehouses/3');
Response 200
{ "success": true }
A warehouse that still holds assets returns 422:
{
"success": false,
"error": "The warehouse still holds active assets – move them first.",
"code": "warehouse_not_empty"
}
GET /api/asset-custom-fields¶
Definitions of custom fields. Only an asset administrator may read them. The values are sent with the asset in the customFields object in POST /api/assets and PUT /api/assets/{id} as {"fieldKey": value}. A definition sets the name and type of the field in the portal, the API itself does not check the values against the definition. The definitions for a specific asset (general ones and those of its category) are also returned by /detail, which the holder may read as well.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
categoryId |
yes | integer | no | Only the fields of this category. General fields (without a category) are not returned when filtering |
PHP
$res = innovanet('GET', '/api/asset-custom-fields?categoryId=2');
Response 200
{
"success": true,
"data": [
{
"id": 3,
"categoryId": 2,
"fieldKey": "mac_address",
"label": "MAC address",
"fieldType": "string",
"sortOrder": 1,
"createdAt": "2026-09-01 08:05:00",
"updatedAt": null
}
]
}
POST /api/asset-custom-fields¶
Creates a custom field definition. Only an administrator may do it.
| Field | Type | Required | Description |
|---|---|---|---|
fieldKey |
string | yes | The key in customFields, at most 100 characters. Use letters without diacritics, digits and _, otherwise you will not be able to sort by the field (sort_by=custom:key) |
label |
string | yes | Name of the field, at most 255 characters |
fieldType |
string | no | string (default) text, number number, date date, text long text |
categoryId |
integer | no | The field for this category only. Without it the field applies to all |
sortOrder |
integer | no | Order, 0 or more |
PHP
$res = innovanet('POST', '/api/asset-custom-fields', [
'fieldKey' => 'mac_address',
'label' => 'MAC address',
'fieldType' => 'string',
'categoryId' => 2,
'sortOrder' => 1,
]);
Response 201
{ "success": true, "data": { "id": 3 } }
PUT /api/asset-custom-fields/{id}¶
Edits a definition. Only an administrator may do it. The fields are as on creation, fieldKey and label are required. An omitted fieldType goes back to string, an omitted categoryId to "all categories", sortOrder to 0. Changing fieldKey does not rewrite the values already stored on assets.
PHP
$res = innovanet('PUT', '/api/asset-custom-fields/3', [
'fieldKey' => 'mac_address',
'label' => 'MAC address (LAN)',
'fieldType' => 'string',
'categoryId' => 2,
'sortOrder' => 1,
]);
Response 200
{ "success": true }
A non-existent definition is 404.
DELETE /api/asset-custom-fields/{id}¶
Deletes a definition. Only an administrator may do it. The values stored on assets remain.
PHP
$res = innovanet('DELETE', '/api/asset-custom-fields/3');
Response 200
{ "success": true }
GET /api/assets/settings¶
Module settings. Any logged-in user may read them.
PHP
$res = innovanet('GET', '/api/assets/settings');
Response 200
{
"success": true,
"data": { "allowSaleRequests": false, "inventoryPrefix": "INV-" }
}
PUT /api/assets/settings¶
Changes the settings. Only an asset administrator may do it. You can send just the field you are changing.
| Field | Type | Required | Description |
|---|---|---|---|
allowSaleRequests |
boolean | no | true lets employees ask to buy out the items assigned to them |
inventoryPrefix |
string | no | Prefix of the automatic inventory numbers, at most 20 characters. Empty means INV-. It applies to new assets, existing numbers do not change |
PHP
$res = innovanet('PUT', '/api/assets/settings', [
'allowSaleRequests' => true,
'inventoryPrefix' => 'FIR-',
]);
Response 200 – data are the valid settings after the change.
{
"success": true,
"data": { "allowSaleRequests": true, "inventoryPrefix": "FIR-" }
}
GET /api/assets/export-csv¶
Exports assets to CSV (UTF-8, comma separator). Only an administrator may do it. The response is a file text/csv named assets-export-YYYY-MM-DD-HHMMSS.csv.
Columns: name, serial_number, inventory_number, category, purchased_at, price, currency, supplier, owner_email, owner_label, warranty_until, status, followed by one column for each custom field key in use. The status column holds only "Active" or "Inactive" (in the user's language), not the lifecycle status.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
categoryId |
yes | integer | no | Category |
search |
yes | string | no | Search text |
ownerUserId |
yes | integer | no | Person holder |
warehouseId |
yes | integer | no | Warehouse |
status |
yes | string | no | Statuses separated by commas |
isActive |
yes | boolean | no | Active or disposed |
warrantyExpiring |
yes | boolean | no | Warranty within 60 days |
cURL
curl -sS "https://api.innovanet.com/api/assets/export-csv?status=assigned" \
-H "Authorization: Bearer inv_mcp_…" \
-o assets.csv
GET /api/assets/export-xls¶
The same as the CSV export, but as an Excel workbook. Only an administrator may do it, the filters are the same. The response is a file .xlsx (assets-export-YYYY-MM-DD-HHMMSS.xlsx).
cURL
curl -sS "https://api.innovanet.com/api/assets/export-xls?categoryId=2" \
-H "Authorization: Bearer inv_mcp_…" \
-o assets.xlsx
GET /api/assets/import-template¶
The import template: a CSV with an instruction line (starting with #), a header and one sample row. Only an administrator may do it. The response is a file assets-import-template.csv.
cURL
curl -sS "https://api.innovanet.com/api/assets/import-template" \
-H "Authorization: Bearer inv_mcp_…" \
-o template.csv
POST /api/assets/import¶
Bulk import of assets from CSV. Only an administrator may do it. The file is multipart/form-data, field file (required, otherwise 400).
File rules:
- UTF-8 encoding (a BOM is removed), comma separator, one record per line (line breaks inside a cell are not supported).
- Empty lines and lines whose first cell starts with
#are skipped. The first other line is the header. - Columns:
name(required),serial_number,inventory_number,category,purchased_at,price,currency,supplier,owner_email,owner_label,warranty_until,status. The names must be exactly these, in lower case. - Every other column is saved as a custom field, the key being the column name.
categoryis a name. A non-existent category is created by the import.owner_emailis the e-mail of the user the asset is assigned to (statusassigned). An unknown e-mail gives a warning and the asset is created without a holder.currencyis a currency code; if omitted, the company default currency is used (EUR if none is set). Dates must beYYYY-MM-DD, any other form is silently dropped.- The
statuscolumn is ignored on import, everything is created as active. A warehouse cannot be set by the import, useowner_labeland thenmove. - A row whose
inventory_numberalready belongs to another asset (or repeats in the file) and a row with a negative or non-numeric price are not imported and appear in the log aserror. Otherwise the import does not detect duplicates: the same file uploaded twice creates the assets without an inventory number twice. - Rows are processed independently. A faulty row does not disturb the others.
cURL
curl -sS -X POST "https://api.innovanet.com/api/assets/import" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Accept: application/json" \
-F "file=@assets.csv"
Response 200
{
"success": true,
"data": {
"imported": 2,
"failed": 1,
"log": [
{ "row": 3, "status": "ok", "message": "Notebook Lenovo T14" },
{ "row": 4, "status": "warning", "message": "User not found for email: nobody@company.com" },
{ "row": 4, "status": "ok", "message": "Monitor Dell 24" },
{ "row": 5, "status": "error", "message": "Missing name" }
]
}
}
row is the line number in the file. status in the log is ok, warning or error. A warning does not count as an error, the asset is created.
GET /api/assets/pdf/employee-card/{userId}¶
An employee's personal card: the list of assets assigned to them. An administrator or the employee themselves may get it (userId = your ID), otherwise 403. The response is a file application/pdf.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
language |
yes | string | no | sk (default), cs or en |
cURL
curl -sS "https://api.innovanet.com/api/assets/pdf/employee-card/15?language=en" \
-H "Authorization: Bearer inv_mcp_…" \
-o employee-card.pdf
GET /api/assets/pdf/employee-card-by-label¶
A card for a place or an object (for example "Sklad Ostrava"): the list of assets with that label. Only an administrator may do it. The response is a file application/pdf.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
label |
yes | string | yes | Label of the place (ownerLabel). Without it 400 |
language |
yes | string | no | sk (default), cs or en |
cURL
curl -sS -G "https://api.innovanet.com/api/assets/pdf/employee-card-by-label" \
--data-urlencode "label=Sklad Bratislava" \
-H "Authorization: Bearer inv_mcp_…" \
-o object-card.pdf
GET /api/assets/pdf/handover-protocol¶
A handover or receipt protocol to print for items currently held. It is a one-off preview: nothing is stored, no protocol number and no event arise. A stored, numbered protocol arises only through move. An administrator may print any, others only a protocol where they are a party, and only for items assigned to themselves. The response is a file application/pdf.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
userIdFrom |
yes | integer | no | The handing-over person |
userIdTo |
yes | integer | no | The receiving person |
labelTo |
yes | string | no | Target place instead of a person |
assetIds |
yes | string | no | Item IDs separated by commas, for example 30,32 |
handoverType |
yes | string | no | receive receipt (default) or return return |
language |
yes | string | no | sk (default), cs or en |
cURL
curl -sS "https://api.innovanet.com/api/assets/pdf/handover-protocol?userIdTo=15&assetIds=30,32&language=en" \
-H "Authorization: Bearer inv_mcp_…" \
-o protocol.pdf
GET /api/assets/pdf/labels¶
QR labels for marking assets. Only an administrator may do it. The response is a file application/pdf (stitky-majetku.pdf). The QR code points to the portal.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
assetIds |
yes | string | yes | Item IDs separated by commas. Without it 422 |
cURL
curl -sS "https://api.innovanet.com/api/assets/pdf/labels?assetIds=30,31,32" \
-H "Authorization: Bearer inv_mcp_…" \
-o labels.pdf
Recipes¶
1. Find out which assets an employee has¶
As an administrator: GET /api/assets?ownerUserId=15&isActive=true. An overview of all people at once is GET /api/assets/by-users. A card to print: GET /api/assets/pdf/employee-card/15. You find the employee's ID (master ID) in the Organization chapter. An employee sees their own assets with GET /api/assets without a filter.
$res = innovanet('GET', '/api/assets?ownerUserId=15&isActive=true');
foreach ($res['json']['data'] as $asset) {
echo $asset['inventoryNumber'] . ' ' . $asset['name'] . PHP_EOL;
}
2. Hand an asset over to an employee and have them confirm the protocol¶
- Administrator:
POST /api/assets/movewithassetIdsandtoUserId. The response givesprotocolIdandnumber. The employee gets a notification. - Employee (their token):
GET /api/assets/protocols/pendingshows the protocol,GET /api/assets/protocols/{id}its items. - Employee:
POST /api/assets/protocols/{id}/accept. The protocol getsacceptedAtand the name. - At any time
GET /api/assets/protocols/{id}/pdfdownloads the protocol with the confirmation.
// administrator's token
$moved = innovanet('POST', '/api/assets/move', ['assetIds' => [30, 32], 'toUserId' => 15]);
$protocolId = $moved['json']['data']['protocolId'];
// employee's token (set differently in innovanet())
$pending = innovanet('GET', '/api/assets/protocols/pending');
innovanet('POST', '/api/assets/protocols/' . $protocolId . '/accept');
3. Return an asset to the warehouse¶
Administrator: POST /api/assets/move with assetIds and warehouseId (optionally condition). A return protocol (VP-…) is created and the item's status is in_stock. A return has no person recipient, so nobody confirms it. A paper signature can be obtained from the PDF. An employee cannot return an asset by themselves through the API: they report it with a comment POST /api/assets/{id}/comments and the administrator does the move.
innovanet('POST', '/api/assets/move', [
'assetIds' => [30],
'warehouseId' => 3,
'condition' => 'good',
'note' => 'Returned when leaving the company',
]);
4. Request an asset and follow the request¶
GET /api/asset-categories– choose a category.POST /api/asset-requestswithnameandcategoryId. The response gives the requestid.GET /api/asset-requests/{id}– followworkflowStatusandtasks. You add supporting documents withPOST /api/asset-requests/{id}/attachmentsand…/comments.- The steps are created one after another. The requester's manager (Kontrola žiadosti) fills in the shopping basket with
PUT /api/asset-requests/{id}/itemsand approves their step. Then the manager's manager approves, and only then the Realizácia task is created. Tasks are approved in the portal under Tasks. - When
workflowStatusisapproved, an administrator (or the category's responsible person) callsPOST /api/asset-requests/{id}/fulfill: withassetId(from stock, a handover protocol is created) or withmode: "order"and a supplier (an order draft is created in the Orders module). - With a protocol, the requester confirms it with
POST /api/assets/protocols/{id}/accept.
5. Dispose of or sell an asset¶
- Disposal:
POST /api/assets/disposewithassetIds,methodandreason. The items are deactivated and anLP-…protocol is created. - Direct sale:
POST /api/assets/{id}/sellwithbuyerUserIdandprice. The buyer confirms theOP-…protocol withaccept. - Sale at an employee's request: an administrator turns on
allowSaleRequestsinPUT /api/assets/settings. The employee submitsPOST /api/asset-requestswithtype: "sale",assetIdandofferedPrice. After approval the administrator callsfulfill, which sells the asset. - The history stays available through
GET /api/assets/{id}/history, you find disposed assets with the filterisActive=falseorstatus=disposed,sold.
6. Import assets in bulk¶
GET /api/assets/import-template– download the template.- Fill in the rows. Only
nameis required. Categories are created by name,owner_emailassigns the asset, further columns are custom fields. POST /api/assets/importwith-F "file=@assets.csv".- Check
imported,failedandlogin the response. Fix the faulty rows and upload only those (uploading the whole file a second time creates duplicates). - Verification:
GET /api/assets?sort_by=CreatedAt&sort_order=desc.
MCP¶
The AI assistant (MCP) has 12 tools for the Assets module. It reads everything in the first part of this chapter and writes two things. Always with the user's permissions.
| Tool | Writes | Corresponds to |
|---|---|---|
list_assets |
no | GET /api/assets |
get_asset |
no | GET /api/assets/{id}/detail |
get_asset_history |
no | GET /api/assets/{id}/history |
list_assets_by_user |
no | GET /api/assets/by-users |
list_asset_categories |
no | GET /api/asset-categories |
list_asset_warehouses |
no | GET /api/asset-warehouses |
list_pending_asset_protocols |
no | GET /api/assets/protocols/pending |
get_asset_protocol |
no | GET /api/assets/protocols/{id} |
list_asset_requests |
no | GET /api/asset-requests |
get_asset_request |
no | GET /api/asset-requests/{id} |
create_asset_request |
yes | POST /api/asset-requests |
add_asset_comment |
yes | POST /api/assets/{id}/comments |
REST API only (not through MCP): creating and editing assets, moving (move), disposal (dispose, deactivate), sale (sell), confirming a protocol (accept), fulfilling a request (fulfill), the shopping basket of a request (PUT /api/asset-requests/{id}/items; through MCP get_asset_request only reads it), comments and attachments of requests, asset attachments, managing categories, warehouses, custom fields and settings, import, export and all PDFs.
The tools require the AI assistant (MCP) licence and the Assets module.
Want to try this feature? Start your innovanet trial →
Access rights (2026-11)
POST /api/asset-requests/{id}/fulfill: a category's responsible person (not an assets admin) may only hand over a free in-stock asset of the request's category, otherwise422. The assets admin is unrestricted. Creating an order draft (mode: "order") only needs the right to fulfil the request, not a right to the Orders module.PUT /api/asset-requests/{id}/items: the basket is changed only by the person of the first approval step (while their step is open), an assets admin or, when the request has no approval step, the fulfilling person; otherwise403.DELETE /api/asset-requests/{id}/attachments: only the uploader, an assets admin or the category's responsible person can delete an attachment (otherwise403).GET /api/assets/pdf/handover-protocol: a regular user must be a party of the handover (userIdFromoruserIdTo),assetIdsis required and all assets must be theirs (otherwise403).GET /api/asset-categoriesandGET /api/asset-warehouses: a regular user gets onlyid,name(categories alsohasResponsible, warehousesisActive);responsiblePersonIds, addresses, responsible persons and asset counts are for the assets admin.