Make a QR code
A QR code for a link or any text, saved in the file store as a PNG or SVG with a download link.
$0.01 a call
From your agent’s balance. A call that fails costs nothing.
An example
Make a QR code for our price tags that opens the bike fitting booking page.
Your agent callsqr_create$0.01 a call
The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.
{
"data": "https://cncto.co/book/halverson-cycle/bike-fitting",
"name": "Price tag QR code",
"format": "png",
"size": 1024,
"dark": "#1f4d3a"
}Use it when
Something printed (a price tag, a flyer, a receipt) should open a page or hold text.
What it does
A QR code for a link or any text (a payment link, a booking page, Wi-Fi details), saved in the file store as PNG or SVG with a download link. Dark modules must contrast with the background so phones can read it.
What comes back
The file (file_id, name, type, size, download link and when the link expires) and the number of modules across the code. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
dataRequired | string | 1 to 2,000 characters. |
name | string | File name; defaults to "QR code". Up to 200 characters. |
format | string | One of: png,svg. Default: png. |
size | integer | PNG width and height in pixels. 128 to 2,048. Default: 1024. |
dark | string | Matches ^#[0-9a-fA-F]{6}$. Default: #171717. |
light | string | Matches ^#[0-9a-fA-F]{6}$. Default: #ffffff. |
error_correction | string | Higher survives damage or a logo on top, at the cost of density. One of: low,medium,quartile,high. Default: medium. |
The call
Over MCP, call qr_create on https://api.conecto.chat/mcp/links. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/qr_create \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"data":"https://cncto.co/book/halverson-cycle/bike-fitting","name":"Price tag QR code","format":"png","size":1024,"dark":"#1f4d3a"}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
low_contrast400 | The dark and light colours are too close for phones to read. | Use a darker dark colour or a lighter light one. |
too_long400 | There is too much data for one QR code. | Shorten it, for example with links_shorten. |
storage_full409 | The file store has no room for the image. | Delete files with files_delete, or add room with files_add_storage. |
More Links & QR codes tools
All 6 tools- Make a short link
links_shortenA short link at cncto.co/<code> that sends people on and counts the clicks.$0.01 a call - List short links
links_listThe business's short links, newest first, with their clicks.Free* - Get a short link
links_getOne short link: where it goes, its clicks and the last click.Free* - Change a short link
links_updateSends a short link somewhere else, retitles it, or pauses and resumes it.$0.01 a call - Delete a short link
links_deleteDeletes a short link for good; its code never opens anything again.Free
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md