# interact XR > interact XR connects physical objects to data with smart stickers (QR and NFC). A sticker is linked to an object (a device, a location, a touchpoint); scanning it opens the object's page, inspectors record checks, defects become issues. Everything is available from the terminal, over a REST API, through webhooks and as an MCP server for agents. Base URL: https://app.interactxr.app ## Connect a project (instructions for agents) A user who asks you to connect their project to interact XR wants a working setup, not a list of commands. Use only what this file documents. **If you can run shell commands in the project** (Claude Code, Cursor, Codex …): 1. Run `npx -y https://app.interactxr.app/cli.tgz login`. It prints a code and a link; wait while the user confirms it in the browser. 2. Run `npx -y https://app.interactxr.app/cli.tgz init`. It writes `INTERACTXR_API_KEY` and `INTERACTXR_URL` to `./.env`. Make sure `.env` is git-ignored. 3. Run `whoami --json` and `objects list --json` to see the organization, its quota and what already exists. 4. Read the codebase and propose three concrete integrations that fit it, each with the commands or endpoints it needs. Ask which one to build. **If you cannot run commands** (a chat without a terminal): say so in one sentence and do not hand the steps back as a list. Ask what the user wants to tag and what a scan should trigger. Then guide them one command at a time and wait for each output. Never ask for the API key. If the client supports remote MCP servers (connectors), that is the better way: tell the user to add `https://app.interactxr.app/api/v1/mcp` as a connector and sign in in the browser – after that you can act yourself instead of guiding. ## Concepts - **Sticker** (API: `code`): one printed QR/NFC label. Identified by its short code (in the scan URL) or its printed number (e.g. `LBL-000123`). States: `unused`, `active` (linked to an object), `void`. - **Object**: the thing a sticker is attached to. Types: `appliance`, `location`, `touchpoint`. Your own identifier goes into `externalRef`. - **Registered object**: an object with at least one active sticker. Organizations have a quota of registered objects (100 free, more in steps of 1,000). Linking beyond the quota fails with error code `quota_exceeded`. - **Scan**: one scan of a sticker. Scan events contain no personal data. - **Inspection**: a check of an object with result `ok` or `defect`. A defect opens an issue. - **Issue**: a task on the board (`todo`, `in_progress`, `done`). ## Command line Requires Node 18+. No installation needed: npx -y https://app.interactxr.app/cli.tgz login # shows a code, an admin confirms it in the browser npx -y https://app.interactxr.app/cli.tgz init # writes INTERACTXR_API_KEY and INTERACTXR_URL to ./.env npx -y https://app.interactxr.app/cli.tgz whoami Commands: `objects list [--q text]`, `objects create --name N [--type T] [--ref R] [--serial S] [--address A] [--sticker CODE]`, `objects import file.csv` (columns name,type,ref,serial,address,sticker), `stickers get CODE`, `stickers link CODE --object `, `stickers void CODE --reason "…"`, `scans list`, `scans tail`, `destinations list`. Every command accepts `--json`. Errors exit non-zero and print `{"error":{"code","message"}}`. `INTERACTXR_API_KEY` and `INTERACTXR_URL` override the stored login, so the CLI works in CI and inside agents without `login`. ## REST API `https://app.interactxr.app/api/v1`, authenticated with `Authorization: Bearer `. Keys are created by `login` or under Settings → API keys. Full description: https://app.interactxr.app/openapi.yaml - `GET /me` – organization and quota - `GET /objects?q=&type=&linked=&page=&pageSize=` – list or search objects - `POST /objects` – create an object; with `code` it is linked to that sticker in one step - `GET /codes/{code}` – look up a sticker - `POST /codes/{code}/link` `{ "objectId": "" }` – link or move a sticker - `PUT /codes/{code}/destination` – set what a scan opens - `POST /codes/{code}/void` `{ "reason": "…" }` – void a sticker (cannot be undone) - `GET /destinations` – list destinations - `GET /scans?from=&to=&code=&after=&limit=` – scan events, ascending; page with `after` = `nextAfter` Errors: `{ "error": { "code": "…", "message": "…" } }` with status 400 (invalid_request), 401, 403, 404, 409 (invalid_state), 422 (business rule, e.g. `quota_exceeded`), 429 (rate_limited, see `Retry-After`). ## MCP server (for agents) Streamable HTTP endpoint: `https://app.interactxr.app/api/v1/mcp`. Two ways to sign in: - **In the browser (OAuth)** – for chat assistants and any client that supports remote MCP servers with sign-in (ChatGPT, Claude, Cursor …). Add the endpoint URL as a connector / custom MCP server and leave the key empty. The client opens a page where an admin allows access to the organization. No key is copied by hand; the access shows up under Settings → API keys and can be revoked there. - **With an API key** – send `Authorization: Bearer `, as with the REST API. Claude Code, in the browser: claude mcp add --transport http interactxr https://app.interactxr.app/api/v1/mcp Claude Code, with a key: claude mcp add --transport http interactxr https://app.interactxr.app/api/v1/mcp --header "Authorization: Bearer $INTERACTXR_API_KEY" Tools: `whoami`, `list_objects`, `create_object`, `get_sticker`, `link_sticker`, `list_scans`, `report_inspection`, `list_issues`, `create_issue`. ## Webhooks Under Automations, add the action "Send webhook" to a trigger: `defect_reported`, `inspection_passed`, `issue_created`, `issue_done`, `sticker_linked`. The platform POSTs JSON: { "id": "evt_…", "event": "defect_reported", "createdAt": "…", "organizationId": "…", "data": { "automation", "object", "objectId", "note", "issue", "sticker", "by", "url" } } Verify the header `InteractXR-Signature: t=,v1=`: `v1` is HMAC-SHA256 of `.` with the webhook's signing secret (shown in the automation after saving). Reject timestamps older than five minutes. Respond with 2xx within five seconds; the target must be a public https address. ## Knowledge base (website) Explanations of the terms and practical questions around smart labels, NFC and QR codes, each page in English and German: - Glossary: /en/glossary (German: /de/glossar) – NFC, NFC tag, QR code, NTAG 213/215/216, NTAG 424 DNA, SUN, NDEF, UID, ISO 14443, RFID, on-metal NFC tags, dynamic QR codes, GS1 Digital Link, ESPR, digital twin, inspection tags, asset tags, webhooks, MCP - Guides: /en/guides (German: /de/ratgeber) – NFC vs QR code, NFC tag cost, chip comparison, NFC on metal, digital inspection logs, QR code size, writing and reading NFC tags, inventory counts, printing QR codes - NFC tags by object: /en/nfc-tags (German: /de/nfc-sticker) – fire extinguishers, fire doors, ladders, power tools, forklifts, pallet jacks, defibrillators, elevators, air conditioners, IT equipment, rental bikes, coffee machines - QR code size calculator: /en/tools/qr-code-size-calculator