API reference
Folders
Items can sit in a folder, and the item endpoints take and return a folderId. Use this endpoint to look up folder IDs. Folders are created and arranged in the app; see Folders.
List folders
GET /folders — needs read
Lists your organization's folders that aren't deleted, each with its full path, sorted by path.
| Field | Type | Description |
|---|---|---|
id |
integer | The folder's ID. Pass it as folderId when creating or updating an item. |
name |
string | The folder's own name. |
parentId |
integer or null | The folder it sits in, or null at the top level. |
path |
string | The folder's names from the top level down, joined with /. |
Example
curl https://app.simpleinventory.io/api/v1/folders \
-H "Authorization: Bearer $SIMPLE_INVENTORY_API_KEY"
{
"data": [
{ "id": 3, "name": "Warehouse", "parentId": null, "path": "Warehouse" },
{ "id": 7, "name": "Kitchen", "parentId": 3, "path": "Warehouse / Kitchen" }
]
}
Errors
This endpoint has no errors of its own. See Errors for the ones every request can get, such as 401 unauthorized and 403 forbidden.
