QRTap
v1.0.4Editable QR codes, short links, public pages, reviews and bookings as tools for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
qrtap_create_code
Create ONE managed QR code on QRTap. Returns the code object: `id`, `short_url` (the stable link the QR actually encodes — printing this once is safe because it never changes), `png_url`/`svg_url` for the rendered artifact, plus the label/group/external_ref you set. The destination behind the code is editable forever via qrtap_change_destination, so the printed sticker never has to be reissued. For more than a handful of codes at once use qrtap_create_codes_bulk instead — it is one request rather than N.
| Parameter | Type | Description |
|---|---|---|
url * | string | Destination URL the code should redirect to (http/https, max 2048 chars). |
design_template_id | string | Optional branded design template id (UUID) from qrtap_list_design_templates. Applies the organization's colour and centre logo to the rendered QR. |
external_ref | string | Your own identifier for this code (branch code, SKU, partner id, table number), max 200 chars. Two things depend on it: creation is idempotent by external_ref, so re-running the same call returns the… |
group | string | Analytics bucket for this code, one of: partner | equipment | event_menu | bag_insert | training. Codes sharing a group can be totalled in one call with qrtap_group_stats, so set it whenever a code be… |
title | string | Human-readable label shown in the owner's cabinet (max 160 chars). Not visible to the person scanning. Defaults to 'Код'. |
qrtap_create_codes_bulk
Create MANY managed codes in a single request — up to 500. Use this for any batch: stickers for a print run, one code per table or shelf, one per branch or partner. Results are per item, so one bad URL does not sink the batch: the reply is {created, reused, failed, data:[…]} where each entry is either a code (ok=true, plus `reused` telling you whether it already existed) or {ok:false, external_ref, error}. On a re-run after a partial failure `created` counts only what was actually new and `reused` counts what was returned unchanged, so the two numbers tell you whether the call did any work…
| Parameter | Type | Description |
|---|---|---|
items * | array | Codes to create, 1..500 items. |
qrtap_list_codes
List the organization's managed codes and short links, newest first. This is the way to find a code's `id` before retargeting it, and the way to check what already exists before creating more. Filter by `group` (a whole batch) or `external_ref` (one specific code). Set include_stats=true to get every code's all-time scan count in the same response — far cheaper than calling qrtap_code_stats per code when you only need totals.
| Parameter | Type | Description |
|---|---|---|
external_ref | string | Optional filter: only the code carrying this external reference (exact match). The fastest way to check whether a code for a given branch/SKU already exists. |
group | string | Optional filter: only codes filed under this group (partner | equipment | event_menu | bag_insert | training). |
include_stats | boolean | When true, adds an all-time non-bot `scans` counter to every returned code. Use it to compare a whole batch in one call. |
limit | integer | Page size, 1..500. Defaults to 100. |
offset | integer | Pagination offset; add `limit` to walk further batches. |
qrtap_get_code
Fetch one code by id: its current destination, label, group, external_ref, the permanent short_url and the artifact URLs. Use it to confirm where a code points right now before changing it, or to re-read a code returned earlier.
| Parameter | Type | Description |
|---|---|---|
codeId * | string | The code id (UUID), as returned by qrtap_create_code, qrtap_create_codes_bulk or qrtap_list_codes. This is the internal id, not the short_url slug. |
qrtap_change_destination
Point an existing code at a new destination URL. This is the core of the product: the printed QR, its slug and its short_url stay byte-for-byte the same, only the redirect target changes, so a menu or price list can be replaced without reprinting anything. The change is live for the next scan, immediately, and the previous destination is kept in the audit trail (qrtap_code_history). Because it changes what real customers see, confirm the new URL with the user before calling.
| Parameter | Type | Description |
|---|---|---|
codeId * | string | The code id (UUID) as returned by qrtap_create_code or qrtap_list_codes. |
url * | string | The new destination URL (http/https). |
qrtap_code_history
Every destination one code has ever pointed at, newest first, with the version number, the reason and when each became active. Use it to answer 'where did this code point last week?' or to recover a previous URL after a wrong retarget. The printed code itself never changed — only its target did.
| Parameter | Type | Description |
|---|---|---|
codeId * | string | The code id (UUID), as returned by qrtap_create_code, qrtap_create_codes_bulk or qrtap_list_codes. This is the internal id, not the short_url slug. |
qrtap_code_stats
Aggregated anonymous scan statistics for ONE code: total scans, a per-day series and the device split (mobile/tablet/desktop). Bots are excluded; QRTap stores no visitor IPs or user-agents, so no per-person data exists to return. Bound the window with `from`/`to` when the user asks about a period. For a whole batch use qrtap_group_stats; for plain totals across many codes use qrtap_list_codes with include_stats.
| Parameter | Type | Description |
|---|---|---|
codeId * | string | The code id (UUID), as returned by qrtap_create_code, qrtap_create_codes_bulk or qrtap_list_codes. This is the internal id, not the short_url slug. |
from | string | Optional range start (inclusive), ISO 8601, e.g. 2026-07-01T00:00:00Z. |
to | string | Optional range end (exclusive), ISO 8601. |
qrtap_group_stats
Aggregated scan statistics for a WHOLE group of codes at once: how many codes are in the group plus the combined total, per-day series and device split. This is the report for a batch — all branches, all tables, all partner stickers — without iterating over codes one by one.
| Parameter | Type | Description |
|---|---|---|
group * | string | Group name the codes were created with (partner | equipment | event_menu | bag_insert | training). |
from | string | Optional range start (inclusive), ISO 8601. |
to | string | Optional range end (exclusive), ISO 8601. |
qrtap_create_short_link
Create a short link (https://app.qrtap.kg/<slug>) when the user asks for a LINK rather than a printed code. It is the same managed object as a QR code and hits the same endpoint as qrtap_create_code — the reply's short_url is permanent, the destination is retargetable, scans are counted. Pick this one only when the user wants nothing but a link; if they need a label, a group, an external_ref or a batch, use qrtap_create_code / qrtap_create_codes_bulk, which take those fields.
| Parameter | Type | Description |
|---|---|---|
url * | string | Destination URL the short link should redirect to (http/https). |
qrtap_list_design_templates
List the organization's branded design templates (brand colour, centre logo, default caption), newest first. Its only purpose is to get a `design_template_id` to pass to qrtap_create_code / qrtap_create_codes_bulk. Templates are created by the owner in the cabinet, not through this server, because they carry logo image data.
qrtap_create_page
Create and publish the organization's public page — a mobile business card served at https://app.qrtap.kg/a/<slug> with the name, contacts, price list and review links. Returns `slug` and `public_url`; feed that public_url to qrtap_create_code to get a printable card. WARNING: a workspace has exactly ONE page, and if one already exists this REPLACES its whole content with what you send. Every field you leave out is dropped from the live page. Never reach for this tool to add or change something on a page that exists: call qrtap_get_page first, merge your change into the content it returns, a…
| Parameter | Type | Description |
|---|---|---|
content * | object | Page content. `name` is required and becomes the page heading; at least one contact (phone, whatsapp, instagram or bookingUrl) is required. Everything is sanitised server-side: unknown keys are droppe… |
qrtap_update_page
Publish a new version of an existing public page, identified by its slug. The slug and public_url do not change, so printed QR codes stay valid. IMPORTANT: `content` REPLACES the previous content wholesale — any field you omit is erased, not kept. To change one field, first read the current content with qrtap_get_page, merge your change into it, and send the whole object back.
| Parameter | Type | Description |
|---|---|---|
content * | object | Page content. `name` is required and becomes the page heading; at least one contact (phone, whatsapp, instagram or bookingUrl) is required. Everything is sanitised server-side: unknown keys are droppe… |
slug * | string | Page slug as returned by qrtap_list_pages / qrtap_create_page. |
qrtap_get_page
Read ONE public page in full, including its current `content` object. This is the read-before-write step for qrtap_update_page, which overwrites content wholesale — fetch here, change the one field, send the merged object back. qrtap_list_pages deliberately omits content, so it cannot be used for this.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Page slug, e.g. 'cozy-cafe-x1'. |
qrtap_list_pages
List the organization's public pages — slug, segment, theme, published state, version and public_url. Content is NOT included; use qrtap_get_page to read it. Use this when you only need to discover the slug or check whether a page exists yet.
qrtap_list_reviews
List guest reviews left on the organization's public pages. Nothing a guest writes appears publicly until someone publishes it, so the default status 'pending' is the moderation queue — this is the tool for 'are there new reviews?'. Pass 'published' or 'hidden' to review earlier decisions.
| Parameter | Type | Description |
|---|---|---|
status | string | Which bucket to list. Defaults to pending (the moderation queue). |
qrtap_moderate_review
Publish or hide one guest review. Publishing puts it on the public page immediately, visible to everyone; hiding takes it off. This is a decision made on behalf of the business owner and it is publicly visible — always show the user the review text and ask before calling.
| Parameter | Type | Description |
|---|---|---|
action * | string | publish = show on the public page; hide = remove it from the page. |
reviewId * | string | Review id (UUID) from qrtap_list_reviews. |
qrtap_list_bookings
List booking requests left by guests on the organization's public pages, newest first: service, the guest's free-form preferred time, name, phone and status. status='new' is the inbox that still needs a decision — that is the usual call. Omit status to see everything. The reply contains customers' names and phone numbers, so treat it as personal data: use it to serve the request, do not copy it elsewhere.
| Parameter | Type | Description |
|---|---|---|
status | string | Optional filter. Omit to list every request. |
qrtap_set_booking_status
Confirm or decline one booking request. Two things to tell the user before calling: this is a commitment to a real person, so ask first; and QRTap sends the guest NO notification, so somebody still has to ring the phone number on the request. The status here is the business's own record of that decision. It cannot be moved back to 'new'.
| Parameter | Type | Description |
|---|---|---|
bookingId * | string | Booking request id (UUID) from qrtap_list_bookings. |
status * | string | The decision. A request cannot be moved back to 'new'. |
qrtap_get_smart_rules
Read the conditional (Smart Links) redirect rules currently set on one code. An empty array means the code always goes to its primary destination. Call this before qrtap_set_smart_rules, which replaces the whole rule set — otherwise you will silently drop rules you did not know about.
| Parameter | Type | Description |
|---|---|---|
codeId * | string | The code id (UUID), as returned by qrtap_create_code, qrtap_create_codes_bulk or qrtap_list_codes. This is the internal id, not the short_url slug. |
qrtap_set_smart_rules
REPLACE the Smart Links rules of one code — conditional redirects evaluated on every scan, first match wins, falling back to the code's primary destination when nothing matches. Typical uses: send iOS and Android scans to their own app stores, serve a Russian and a Kyrgyz page, or point at the delivery menu outside opening hours. The array you pass becomes the complete rule set, so read the current one with qrtap_get_smart_rules first; passing [] clears all rules. At most 5 rules.
| Parameter | Type | Description |
|---|---|---|
codeId * | string | The code id (UUID), as returned by qrtap_create_code, qrtap_create_codes_bulk or qrtap_list_codes. This is the internal id, not the short_url slug. |
rules * | array | The complete new rule set, max 5, evaluated top to bottom. Each rule is {"if": <condition>, "to": "<http/https url>"}. Pass [] to remove every rule. |