Tags, categories and fields

The tags, categories and custom fields an inventory has, so you can send the right names and values.

List tags

GET /inventories/{inventory_id}/tags

Every tag, by name.

Path

inventory_iduuidThe inventory's id, from List inventories.

Reply

200, with the result in data.

Request
curl https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/tags \
  -H "Authorization: Bearer $ADDITEM_KEY"
const res = await fetch("https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/tags", {
  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/tags",
    headers={"Authorization": f"Bearer {os.environ['ADDITEM_KEY']}"},
)
data = res.json()["data"]
Reply 200
{
  "data": [
    {
      "id": "0193a4f2-7d30-7044-c3f6-7e8f9a0b1c23",
      "name": "power tools",
      "color": "orange"
    }
  ]
}

List categories

GET /inventories/{inventory_id}/categories

Every category, by name.

Path

inventory_iduuidThe inventory's id, from List inventories.

Reply

200, with the result in data.

Request
curl https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/categories \
  -H "Authorization: Bearer $ADDITEM_KEY"
const res = await fetch("https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/categories", {
  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/categories",
    headers={"Authorization": f"Bearer {os.environ['ADDITEM_KEY']}"},
)
data = res.json()["data"]
Reply 200
{
  "data": [
    {
      "id": "0193a4f2-7c20-7f33-b2e5-6d7e8f9a0b12",
      "name": "Tools"
    }
  ]
}

List custom fields

GET /inventories/{inventory_id}/fields

Every custom field, in the order the app shows them. options lists the choices of a select field.

Path

inventory_iduuidThe inventory's id, from List inventories.

Reply

200, with the result in data.

Request
curl https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/fields \
  -H "Authorization: Bearer $ADDITEM_KEY"
const res = await fetch("https://api.additem.to/api/v1/inventories/0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70/fields", {
  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/fields",
    headers={"Authorization": f"Bearer {os.environ['ADDITEM_KEY']}"},
)
data = res.json()["data"]
Reply 200
{
  "data": [
    {
      "id": "0193a4f2-7e40-7155-d407-8f9a0b1c2d34",
      "name": "Warranty ends",
      "type": "date",
      "options": null,
      "required": false
    }
  ]
}