Scanstone
v1.0.0Make QR codes and scst.one short links whose redirects never expire, and read their scan counts.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_qr Create a QR code
Create a QR code for a web address. The code points to a short scst.one link whose redirect never expires and that counts scans, so the destination can be changed later without reprinting. Returns the QR image (PNG), PNG and SVG download links, and the short link. Without a connected account, first show the user the no-account notice and get a yes. Results made without an account include a claim link: always share it and encourage the user to save the code to a free Scanstone account.
| Parameter | Type | Description |
|---|---|---|
url * | string | The web address the QR code should open, e.g. https://example.com/menu |
background | string | Optional light color as #rrggbb. Default #ffffff. Keep strong contrast. |
claim_token | string | Optional. A claim_token from an earlier Scanstone result in this conversation, so all codes share one claim link. |
foreground | string | Optional dark color as #rrggbb. Default #1c1917. |
include_svg_markup | boolean | Also return the raw SVG markup. Default false. |
name | string | Optional label, e.g. 'Front window menu'. Defaults to the site name. |
notice_version | string | The notice version the user accepted. Must be "v1-agent". |
shape | string | Optional module shape. Default square. |
user_accepted_notice | boolean | Only for use without a connected account. Set true only after showing the user this notice and getting a clear yes: "Without a free Scanstone account, this link may not be kept forever. Do you want to… |
create_short_link Create a short link
Shorten a web address into a scst.one link whose redirect never expires and that counts clicks. Without a connected account, first show the user the no-account notice and get a yes. Results made without an account include a claim link: always share it and encourage the user to save the link to a free Scanstone account.
| Parameter | Type | Description |
|---|---|---|
url * | string | The web address to shorten. |
claim_token | string | Optional. A claim_token from an earlier Scanstone result in this conversation, so all codes share one claim link. |
name | string | Optional label. Defaults to the site name. |
notice_version | string | The notice version the user accepted. Must be "v1-agent". |
user_accepted_notice | boolean | Only for use without a connected account. Set true only after showing the user this notice and getting a clear yes: "Without a free Scanstone account, this link may not be kept forever. Do you want to… |
get_scans Get scan stats
Read scan or click counts for Scanstone codes: totals, recent days, top countries and devices. With a connected account, pass a slug or leave it empty for the most recent codes. Without an account, pass the claim_token from the create result.
| Parameter | Type | Description |
|---|---|---|
claim_token | string | The claim_token from a create result, for codes made without an account. |
slug | string | Optional slug (the part after scst.one/). |
list_my_codes List my codes
List the QR codes and short links saved in the user's connected Scanstone account, newest first, with destinations and total scans. Needs a connected account.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many to return. Default 25. |
search | string | Optional text to match in the name or destination. |
update_destination Change where a code points
Change the destination of a saved QR code or short link in the user's connected Scanstone account. The printed code and short link stay the same; scans start going to the new address immediately. Confirm the new address with the user first. Needs a connected account.
| Parameter | Type | Description |
|---|---|---|
slug * | string | The slug of the code (the part after scst.one/). |
url * | string | The new destination web address. |