Locations
Read the location tree, and add, change, move and delete locations.
List locations
/inventories/{inventory_id}/locations
Every location, flat, each with its full path and parent_id so you can build the tree. Paged and with updated_since, as items are. A deleted location has deleted_at set and no path.
Path
inventory_iduuid | The inventory's id, from List inventories. |
Query
updated_sincestring | A time. Includes deleted locations. |
limitinteger | How many per page, 1 to 200. 50 if left out. |
cursorstring | The next_cursor from the page before, exactly as it came. |
Reply
200, with a list of locations in data, and a next_cursor.
curl https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/locations \
-H "Authorization: Bearer $ADDITEM_KEY"
const res = await fetch("https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/locations", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ADDITEM_KEY}`,
},
});
const { data } = await res.json();
import os, requests
res = requests.get(
"https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/locations",
headers={"Authorization": f"Bearer {os.environ['ADDITEM_KEY']}"},
)
data = res.json()["data"]
{
"data": [
{
"id": "0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01",
"inventory_id": "0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70",
"name": "Shelf 2",
"path": "Garage > Shelf 2",
"parent_id": "0193a4f2-7b00-7e11-a0e3-4b5c6d7e8f90",
"type": "shelf",
"status": null,
"description": null,
"notes": null,
"address": null,
"codes": {
"barcode": null,
"qr": null,
"nfc_tag_uid": null
},
"created_at": "2026-02-12T09:00:00.000Z",
"updated_at": "2026-02-12T09:00:00.000Z",
"deleted_at": null
}
],
"next_cursor": null
}
Get a location
/locations/{location_id}
One location.
Path
location_iduuid | The location's id. |
Reply
200, with a location in data.
curl https://api.additem.to/api/v1/locations/0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01 \
-H "Authorization: Bearer $ADDITEM_KEY"
const res = await fetch("https://api.additem.to/api/v1/locations/0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ADDITEM_KEY}`,
},
});
const { data } = await res.json();
import os, requests
res = requests.get(
"https://api.additem.to/api/v1/locations/0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01",
headers={"Authorization": f"Bearer {os.environ['ADDITEM_KEY']}"},
)
data = res.json()["data"]
{
"data": {
"id": "0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01",
"inventory_id": "0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70",
"name": "Shelf 2",
"path": "Garage > Shelf 2",
"parent_id": "0193a4f2-7b00-7e11-a0e3-4b5c6d7e8f90",
"type": "shelf",
"status": null,
"description": null,
"notes": null,
"address": null,
"codes": {
"barcode": null,
"qr": null,
"nfc_tag_uid": null
},
"created_at": "2026-02-12T09:00:00.000Z",
"updated_at": "2026-02-12T09:00:00.000Z",
"deleted_at": null
}
}
Add a location
/inventories/{inventory_id}/locations
name is needed. Put it inside another with parent_id or parent_path. type is one of room, shelf, building, vehicle, container, drawer, box, garage, shed, warehouse, office, closet or other.
Needs a key that may change things, with Add ticked, and a role that allows add. Takes an Idempotency-Key.
Path
inventory_iduuid | The inventory's id, from List inventories. |
Body
namestring | Up to 255 characters. Needed when adding. |
parent_iduuid | The location to put it inside. Or send parent_path. null for the top level. |
parent_pathstring | The full path of the location to put it inside. |
typestring | room, shelf, building, vehicle, container, drawer, box, garage, shed, warehouse, office, closet or other. |
statusstring | active, inactive or archived. |
descriptionstring | Up to 2,000 characters. |
notesstring | Up to 10,000 characters. |
addressstring | Up to 500 characters. |
codesobject | Any of barcode, qr and nfc_tag_uid. |
Reply
201, with a location in data.
curl -X POST https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/locations \
-H "Authorization: Bearer $ADDITEM_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Shelf 3","parent_path":"Garage","type":"shelf"}'
const res = await fetch("https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/locations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ADDITEM_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Shelf 3",
"parent_path": "Garage",
"type": "shelf"
}),
});
const { data } = await res.json();
import os, requests
res = requests.post(
"https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/locations",
headers={"Authorization": f"Bearer {os.environ['ADDITEM_KEY']}"},
json={
"name": "Shelf 3",
"parent_path": "Garage",
"type": "shelf"
},
)
data = res.json()["data"]
{
"data": {
"id": "0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01",
"inventory_id": "0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70",
"name": "Shelf 3",
"path": "Garage > Shelf 3",
"parent_id": "0193a4f2-7b00-7e11-a0e3-4b5c6d7e8f90",
"type": "shelf",
"status": null,
"description": null,
"notes": null,
"address": null,
"codes": {
"barcode": null,
"qr": null,
"nfc_tag_uid": null
},
"created_at": "2026-02-12T09:00:00.000Z",
"updated_at": "2026-02-12T09:00:00.000Z",
"deleted_at": null
}
}
Change a location
/locations/{location_id}
Changes only the fields you send. Send parent_id or parent_path to move it, or null to make it top level. A location can't go inside itself or anything inside it.
Needs a key that may change things, with Edit ticked, and a role that allows edit.
Path
location_iduuid | The location's id. |
Body
namestring | Up to 255 characters. Needed when adding. |
parent_iduuid | The location to put it inside. Or send parent_path. null for the top level. |
parent_pathstring | The full path of the location to put it inside. |
typestring | room, shelf, building, vehicle, container, drawer, box, garage, shed, warehouse, office, closet or other. |
statusstring | active, inactive or archived. |
descriptionstring | Up to 2,000 characters. |
notesstring | Up to 10,000 characters. |
addressstring | Up to 500 characters. |
codesobject | Any of barcode, qr and nfc_tag_uid. |
Reply
200, with a location in data.
curl -X PATCH https://api.additem.to/api/v1/locations/0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01 \
-H "Authorization: Bearer $ADDITEM_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Top shelf"}'
const res = await fetch("https://api.additem.to/api/v1/locations/0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.ADDITEM_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Top shelf"
}),
});
const { data } = await res.json();
import os, requests
res = requests.patch(
"https://api.additem.to/api/v1/locations/0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01",
headers={"Authorization": f"Bearer {os.environ['ADDITEM_KEY']}"},
json={
"name": "Top shelf"
},
)
data = res.json()["data"]
{
"data": {
"id": "0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01",
"inventory_id": "0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70",
"name": "Shelf 2",
"path": "Garage > Shelf 2",
"parent_id": "0193a4f2-7b00-7e11-a0e3-4b5c6d7e8f90",
"type": "shelf",
"status": null,
"description": null,
"notes": null,
"address": null,
"codes": {
"barcode": null,
"qr": null,
"nfc_tag_uid": null
},
"created_at": "2026-02-12T09:00:00.000Z",
"updated_at": "2026-02-12T09:00:00.000Z",
"deleted_at": null
}
}
Delete a location
/locations/{location_id}
Moves it to Recently Deleted. Its items stay, in no location, and locations inside it show at the top level. Returns 204.
Needs a key that may change things, with Delete ticked, and a role that allows delete.
Path
location_iduuid | The location's id. |
Reply
204 with no body.
curl -X DELETE https://api.additem.to/api/v1/locations/0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01 \
-H "Authorization: Bearer $ADDITEM_KEY"
const res = await fetch("https://api.additem.to/api/v1/locations/0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.ADDITEM_KEY}`,
},
});
console.log(res.status); // 204
import os, requests
res = requests.delete(
"https://api.additem.to/api/v1/locations/0193a4f2-7b10-7e22-a1f4-5c6d7e8f9a01",
headers={"Authorization": f"Bearer {os.environ['ADDITEM_KEY']}"},
)
print(res.status_code) # 204
The location object
Every reply with a location in it has these fields, in this order. Version 1 may add fields at the end, and never renames or removes one.
| Field | What it holds |
|---|---|
iduuid | The location's id. |
inventory_iduuid | The inventory it belongs to. |
namestring | Its own name, such as Shelf 2. |
pathstring or null | Its full path from the top, such as Garage > Shelf 2. null once it's deleted. |
parent_iduuid or null | The location it's inside, or null at the top level. |
typestring or null | room, shelf, building, vehicle, container, drawer, box, garage, shed, warehouse, office, closet or other. |
statusstring or null | active, inactive or archived. |
descriptionstring or null | A description. |
notesstring or null | Notes. |
addressstring or null | A street address, for a building or site. |
codesobject | The codes on it, each a string or null. |
codes.barcodestring or null | A barcode, such as the EAN printed on the box. |
codes.qrstring or null | What its QR code holds. |
codes.nfc_tag_uidstring or null | The id of the NFC tag stuck on it. |
created_attime | When it was added. |
updated_attime | When it last changed. Use it with updated_since to keep a copy up to date. |
deleted_attime or null | When it was deleted, or null. Only lists asked for with updated_since include deleted ones. |