Locations

Read the location tree, and add, change, move and delete locations.

List locations

GET /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_iduuidThe inventory's id, from List inventories.

Query

updated_sincestringA time. Includes deleted locations.
limitintegerHow many per page, 1 to 200. 50 if left out.
cursorstringThe next_cursor from the page before, exactly as it came.

Reply

200, with a list of locations in data, and a next_cursor.

Request
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"]
Reply 200
{
  "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

GET /locations/{location_id}

One location.

Path

location_iduuidThe location's id.

Reply

200, with a location in data.

Request
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"]
Reply 200
{
  "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

POST /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_iduuidThe inventory's id, from List inventories.

Body

namestringUp to 255 characters. Needed when adding.
parent_iduuidThe location to put it inside. Or send parent_path. null for the top level.
parent_pathstringThe full path of the location to put it inside.
typestringroom, shelf, building, vehicle, container, drawer, box, garage, shed, warehouse, office, closet or other.
statusstringactive, inactive or archived.
descriptionstringUp to 2,000 characters.
notesstringUp to 10,000 characters.
addressstringUp to 500 characters.
codesobjectAny of barcode, qr and nfc_tag_uid.

Reply

201, with a location in data.

Request
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"]
Reply 201
{
  "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

PATCH /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_iduuidThe location's id.

Body

namestringUp to 255 characters. Needed when adding.
parent_iduuidThe location to put it inside. Or send parent_path. null for the top level.
parent_pathstringThe full path of the location to put it inside.
typestringroom, shelf, building, vehicle, container, drawer, box, garage, shed, warehouse, office, closet or other.
statusstringactive, inactive or archived.
descriptionstringUp to 2,000 characters.
notesstringUp to 10,000 characters.
addressstringUp to 500 characters.
codesobjectAny of barcode, qr and nfc_tag_uid.

Reply

200, with a location in data.

Request
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"]
Reply 200
{
  "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

DELETE /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_iduuidThe location's id.

Reply

204 with no body.

Request
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.

FieldWhat it holds
iduuidThe location's id.
inventory_iduuidThe inventory it belongs to.
namestringIts own name, such as Shelf 2.
pathstring or nullIts full path from the top, such as Garage > Shelf 2. null once it's deleted.
parent_iduuid or nullThe location it's inside, or null at the top level.
typestring or nullroom, shelf, building, vehicle, container, drawer, box, garage, shed, warehouse, office, closet or other.
statusstring or nullactive, inactive or archived.
descriptionstring or nullA description.
notesstring or nullNotes.
addressstring or nullA street address, for a building or site.
codesobjectThe codes on it, each a string or null.
codes.barcodestring or nullA barcode, such as the EAN printed on the box.
codes.qrstring or nullWhat its QR code holds.
codes.nfc_tag_uidstring or nullThe id of the NFC tag stuck on it.
created_attimeWhen it was added.
updated_attimeWhen it last changed. Use it with updated_since to keep a copy up to date.
deleted_attime or nullWhen it was deleted, or null. Only lists asked for with updated_since include deleted ones.