Your key

Check the key you're calling with, who made it, what it may change and which inventories it reaches.

Check your key

GET /key

The key making the call, who made it, what it may change and which inventories it is limited to. inventory_ids is null for a key that reaches every inventory its maker can. A quick way to check a key works before doing anything else.

Reply

200, with the key in data.

Request
curl https://api.additem.to/api/v1/key \
  -H "Authorization: Bearer $ADDITEM_KEY"
const res = await fetch("https://api.additem.to/api/v1/key", {
  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/key",
    headers={"Authorization": f"Bearer {os.environ['ADDITEM_KEY']}"},
)
data = res.json()["data"]
Reply 200
{
  "data": {
    "name": "Shop",
    "access": "read_write",
    "hint": "ait_live_Scrdokg7",
    "created_at": "2026-12-01T09:00:00.000Z",
    "expires_at": null,
    "made_by": {
      "id": "0193a4f2-0000-7000-8000-000000000001",
      "name": "Sam"
    },
    "actions": [
      "move"
    ],
    "inventory_ids": [
      "0193a4f2-7a00-7c11-8e3d-2b1f0a9c8d70"
    ]
  }
}

The key object

Every reply with the key 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
namestringThe name it was given, such as Shop.
accessstringread for a key that only reads, read_write for one that may change things.
hintstringThe start of the key, to tell keys apart. Never the whole key.
created_attimeWhen it was made.
expires_attime or nullWhen it stops working, or null if it never expires.
made_byobjectThe person who made it, with id and name. The key acts as them.
actionsarrayWhat it may change. Any of add, edit, move and delete.
inventory_idsarray or nullThe inventories it's limited to, or null for every inventory its maker can reach.