Sunrise 2027: checkouts are switching to 2D codes – is your packaging ready?Learn more →
Contents

Help Center › Settings › API endpoints with examples

API endpoints with examples

All REST API endpoints with curl examples: tags, bulk create, analytics, folders, export, serial numbers, workspace and activity log.

This page shows every endpoint of the REST API with a real request and response. Getting a key and the basics: REST API: getting started.

From Scaleup

All paths start with https://app.tagvio.app/api/v1. Every request needs Authorization: Bearer $TAGVIO_KEY; requests with a body also need Content-Type: application/json. Responses in the examples are shortened with “…”.

MethodPathPurpose
GET/workspaceName, scan address, plan, limits, scans this month
GET, POST/tagsList tags, create a tag
GET, PATCH, DELETE/tags/{id}Tag with history, change, delete
POST/tags/bulkCreate up to 200 tags
GET/analytics, /tags/{id}/analyticsAnalytics
GET, POST, PATCH, DELETE/folders, /folders/{id}Folders
GET/exportAll tags as JSON or CSV
GET, POST, DELETE/tags/{id}/batches, /tags/{id}/batches/{lot}Batches of a product code: {"lot":"24-117","url":"…","no_buy":true}, see Batches
GET, PATCH, POST/tags/{id}/serials, /tags/{id}/serial/{serial}Serial numbers
GET/activityActivity log
GET, POST, PATCH, DELETE/designs, /designs/{id}, POST /tags/designSaved design templates, apply a design to up to 1,000 tags
GET, POST, PATCH, DELETE/webhooks, /webhooks/{id}Event webhooks, see Webhooks
Example

The winery Weingut Sonnhalde has 40 wine labels with codes. When the 2026 vintage arrives, a script reads all tags in the folder “Red wines” with GET /tags and changes each destination with PATCH /tags/{id} to the new vintage page. One page had a typo. The winery reads the versions with GET /tags/{id} and restores the previous one in a single request.

Tags

List tags

GET /tags returns all active tags, newest change first, with the human scans of the last 30 days. ?archived=1 returns the archived ones instead.

curl https://app.tagvio.app/api/v1/tags \
  -H "Authorization: Bearer $TAGVIO_KEY"
{
  "tags": [
    {
      "id": "k7m2xq4d",
      "name": "Oak chair Linus",
      "type": "gtin",
      "host": "go.tagvio.app",
      "path": "/01/09506000134352",
      "gtin": "09506000134352",
      "data": { "gtin": "09506000134352", "url": "https://example.com/linus", "checkout": "https://example.com/cart/linus" },
      "destination": "https://example.com/linus",
      "content": "https://go.tagvio.app/01/09506000134352",
      "folder_id": "3f9kz2m8q1v7c4xa",
      "labels": ["chairs"],
      "design": { … },
      "archived": false,
      "blocked": false,
      "serialized": false,
      "counterfeit_url": null,
      "created_at": 1795132800000,
      "updated_at": 1795132800000,
      "scans_30d": 214
    }
  ]
}

Create a tag

POST /tags with name, type and data. Optional: host (go.tagvio.app or an active own domain), folder_id, labels, design. A product code with GTIN and Buy link:

curl https://app.tagvio.app/api/v1/tags \
  -H "Authorization: Bearer $TAGVIO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Oak chair Linus","type":"gtin","data":{"gtin":"9506000134352","url":"https://example.com/linus","checkout":"https://example.com/cart/linus"},"folder_id":"3f9kz2m8q1v7c4xa","labels":["chairs"]}'

Answer 201 with {"tag": {…}} in the same form as above. Tagvio stores the GTIN with 14 digits; the scan address is https://go.tagvio.app/01/09506000134352.

Types for type: url, gtin, social, email, sms, call, wifi, page, vcard, file, passport, whatsapp, review, location, appstore, video, event, text. What each type needs: Destination types.

Tip: create one tag of a type in the dashboard and read it with GET /tags/{id}. Its data shows exactly which fields that type needs.

Read a tag with its history

curl https://app.tagvio.app/api/v1/tags/k7m2xq4d \
  -H "Authorization: Bearer $TAGVIO_KEY"
{
  "tag": { "id": "k7m2xq4d", … },
  "versions": [
    { "version": 3, "destination": "https://example.com/linus-2027", "data": { … }, "changed_at": 1795219200000, "changed_by": "anna@example.com" },
    { "version": 2, "destination": "https://example.com/linus", "data": { … }, "changed_at": 1795132800000, "changed_by": "anna@example.com" }
  ]
}

versions holds up to 50 destination versions, newest first.

Change the destination

PATCH /tags/{id} with the fields of data you want to change. The printed code stays the same: type and GTIN of a tag cannot change.

curl -X PATCH https://app.tagvio.app/api/v1/tags/k7m2xq4d \
  -H "Authorization: Bearer $TAGVIO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data":{"url":"https://example.com/linus-2027"}}'

The API adds to the existing data: fields you leave out stay as they are – in the example the Buy link (checkout) is kept. To remove a field, send it as null, e.g. {"data":{"checkout":null}}.

With the same request you can also change name, design, folder_id (null = no folder) and labels. The answer is {"tag": {…}}. Every destination change creates a new version.

Archive and delete

curl -X PATCH https://app.tagvio.app/api/v1/tags/k7m2xq4d \
  -H "Authorization: Bearer $TAGVIO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"archived":true}'

curl -X DELETE https://app.tagvio.app/api/v1/tags/k7m2xq4d \
  -H "Authorization: Bearer $TAGVIO_KEY"

{"archived": false} brings a tag back. DELETE only works for archived tags (otherwise 409, not_archived) and answers {"ok": true}. Details: Archive and delete.

Restore an earlier version

Take the data of the version from GET /tags/{id} and send it with restored_from. The activity log then shows a restore instead of a normal change.

curl -X PATCH https://app.tagvio.app/api/v1/tags/k7m2xq4d \
  -H "Authorization: Bearer $TAGVIO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data":{"gtin":"09506000134352","url":"https://example.com/linus","checkout":"https://example.com/cart/linus"},"restored_from":2}'

The restore creates a new version; the old versions stay. See History.

Bulk create

POST /tags/bulk creates up to 200 tags per request. Each row is either short {"name", "url", "gtin"?, "checkout"?} (with GTIN it becomes a product code, otherwise a web link) or long {"name", "type", "data"} like a single tag. Files, landing pages and product passports cannot be created in bulk. folder_id, labels, design and host apply to all rows.

curl https://app.tagvio.app/api/v1/tags/bulk \
  -H "Authorization: Bearer $TAGVIO_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "folder_id": "3f9kz2m8q1v7c4xa",
    "labels": ["import-2026-11"],
    "rows": [
      { "name": "Oak chair Linus", "gtin": "9506000134352", "url": "https://example.com/linus" },
      { "name": "Catalogue 2027", "type": "url", "data": { "url": "https://example.com/catalogue" } }
    ]
  }'
{ "ok": true, "count": 2, "tags": [ { "id": "k7m2xq4d", … }, { "id": "r3t8wz6p", … } ] }
  • All or nothing: if one row is wrong, no tag is created. The answer 400 lists every faulty row (up to 200):
    { "ok": false, "total": 1, "errors": [ { "row": 0, "error": "invalid_gtin", "field": "gtin", "expected": "2" } ] }
    row counts from 0 (first row = 0).
  • Check first: with "dry_run": true Tagvio checks up to 1,000 rows without creating anything and answers {"ok": true, "count": 1000}.
  • A GTIN may appear only once per request (duplicate_gtin) and must not be used by another tag (gtin_taken).
  • At most 1,200 new tags per hour and workspace. Plan larger imports over several hours.

The same import without code: CSV import.

Analytics

GET /analytics evaluates the whole workspace. Filters: tag, folder (_none = tags without a folder), label. GET /tags/{id}/analytics evaluates one tag. Period: days=1 (today), 7, 30 (default) or 90 – or from=YYYY-MM-DD&to=YYYY-MM-DD for up to 366 days.

curl "https://app.tagvio.app/api/v1/analytics?label=chairs&days=30" \
  -H "Authorization: Bearer $TAGVIO_KEY"
{
  "range": { "from": "2026-10-29", "to": "2026-11-27", "days": 30 },
  "limited": false,
  "hidden": [],
  "totals": { "scans": 1840, "buys": 96, "machine": 12, "bots": 31, "counterfeit": 0, "countries": 9, "unique": 1502 },
  "previous": { "from": "2026-09-29", "to": "2026-10-28", "scans": 1610, "buys": 81, "unique": 1320 },
  "series": [ { "day": "2026-11-27", "scans": 71, "buys": 4, "unique": 60, "orders": 1, "prev": 58 }, … ],
  "countries": [ { "country": "DE", "scans": 1210 }, … ],
  "cities": [ { "country": "DE", "city": "Munich", "region": "Bavaria", "scans": 210 }, … ],
  "devices": [ { "device": "ios", "scans": 990 }, … ],
  "languages": [ { "lang": "de", "scans": 1300 }, … ],
  "top": [ { "id": "k7m2xq4d", "name": "Oak chair Linus", "scans": 420, "orders": 9, "revenue_cents": 359100 }, … ],
  "orders": { "count": 23, "previous": 17, "revenue": [ { "currency": "EUR", "cents": 918400 } ], "currency": "EUR" },
  …
}
  • scans counts human scans and Buy clicks without bots; buys only the Buy clicks; unique the unique scanners.
  • previous is the period of the same length just before.
  • hidden lists days above your plan's scan limit. Those scans are counted but only shown after an upgrade.
  • limited: true means the period was shortened to what your plan shows.

What the numbers mean: Analytics.

Folders

# list
curl https://app.tagvio.app/api/v1/folders -H "Authorization: Bearer $TAGVIO_KEY"
# create
curl https://app.tagvio.app/api/v1/folders -H "Authorization: Bearer $TAGVIO_KEY" \
  -H "Content-Type: application/json" -d '{"name":"Chairs"}'
# rename
curl -X PATCH https://app.tagvio.app/api/v1/folders/3f9kz2m8q1v7c4xa -H "Authorization: Bearer $TAGVIO_KEY" \
  -H "Content-Type: application/json" -d '{"name":"Chairs & stools"}'
# delete
curl -X DELETE https://app.tagvio.app/api/v1/folders/3f9kz2m8q1v7c4xa -H "Authorization: Bearer $TAGVIO_KEY"
  • GET answers {"folders": [{"id": "3f9kz2m8q1v7c4xa", "name": "Chairs", "tag_count": 38}]}.
  • POST answers 201 with {"folder": {"id", "name", "tag_count": 0}}, renaming with {"ok": true, "name"}.
  • Names have up to 50 characters and must be unique (409, folder_exists).
  • Deleting a folder keeps its tags; they then have no folder.

To move a tag into a folder, send PATCH /tags/{id} with folder_id. More: Folders and labels.

Export

GET /export returns all tags of the workspace, archived ones included, with the published redirect rule. JSON is the default, ?format=csv gives a CSV file.

curl "https://app.tagvio.app/api/v1/export?format=json" \
  -H "Authorization: Bearer $TAGVIO_KEY" -o tagvio-export.json
{
  "format": "tagvio-export",
  "version": 1,
  "exported_at": "2026-11-27T06:00:00.000Z",
  "workspace": { "id": "…", "name": "Holzwerk Brandt", "scan_host": "go.tagvio.app" },
  "tags": [
    {
      "id": "k7m2xq4d", "name": "Oak chair Linus", "type": "gtin",
      "scan_url": "https://go.tagvio.app/01/09506000134352",
      "content": "https://go.tagvio.app/01/09506000134352",
      "destination": "https://example.com/linus", "gtin": "09506000134352",
      "data": { … }, "folder": "Chairs", "labels": ["chairs"], "design": { … },
      "archived": false, "created_at": "2026-11-20T00:00:00.000Z", "updated_at": "2026-11-21T00:00:00.000Z",
      "rule": { … }
    }
  ]
}

The CSV is separated by semicolons (UTF-8) with the columns id;name;type;scan_url;destination;gtin;folder;labels;archived;created_at;updated_at;data_json. rule is the rule exactly as the scan service reads it (null for archived and static tags). See Data & deletion.

Serial numbers

Serial numbers make each printed label unique and let you check authenticity. Background: Serial numbers and Authenticity. Not possible for Wi-Fi and text tags.

Create a batch and download it

curl https://app.tagvio.app/api/v1/tags/k7m2xq4d/serials/batches \
  -H "Authorization: Bearer $TAGVIO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Batch 24-117","count":5000}'
{
  "batch": { "id": "p2c8wz5n7t1k3h9d", "name": "Batch 24-117", "count": 5000, "created_at": 1795132800000, "scanned": 0 },
  "sample": [ "https://go.tagvio.app/01/09506000134352/21/A7K2M9QXR4TB8HCN3PW", … ]
}
curl https://app.tagvio.app/api/v1/tags/k7m2xq4d/serials/batches/p2c8wz5n7t1k3h9d/csv \
  -H "Authorization: Bearer $TAGVIO_KEY" -o serials.csv

A batch has up to 10,000 serials. The CSV for the printer has the columns serial,url. The first batch switches the authenticity check on. New serials per month are limited by your plan (402, plan_limit_serials with limit and issued).

Overview and settings

GET /tags/{id}/serials returns batches, key figures (issued, scanned, scans, revoked, suspicious), suspicious and blocked serials and the monthly quota. PATCH /tags/{id}/serials with {"serialized": true|false} switches the check on or off; {"counterfeit_url": "https://…"} sets your own warning page.

Check or block one serial

curl https://app.tagvio.app/api/v1/tags/k7m2xq4d/serial/A7K2M9QXR4TB8HCN3PW \
  -H "Authorization: Bearer $TAGVIO_KEY"
{
  "serial": "A7K2M9QXR4TB8HCN3PW",
  "url": "https://go.tagvio.app/01/09506000134352/21/A7K2M9QXR4TB8HCN3PW",
  "batch_id": "p2c8wz5n7t1k3h9d",
  "scans": 3, "first_scan_at": 1795140000000, "last_scan_at": 1795219200000,
  "countries": ["DE"], "revoked": false, "suspicious": false,
  "valid": true, "known": true
}

valid says whether the signature is genuine, known whether Tagvio issued this serial. Instead of the serial you can also send the full scan address (URL-encoded).

curl https://app.tagvio.app/api/v1/tags/k7m2xq4d/serial/A7K2M9QXR4TB8HCN3PW/revoke \
  -H "Authorization: Bearer $TAGVIO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"revoked":true}'

A blocked serial shows the warning page when scanned. {"revoked": false} unblocks it.

Workspace

curl https://app.tagvio.app/api/v1/workspace \
  -H "Authorization: Bearer $TAGVIO_KEY"
{
  "id": "…",
  "name": "Holzwerk Brandt",
  "scan_host": "go.tagvio.app",
  "plan": "scaleup",
  "step": "25k",
  "limits": { "scans": 25000, "gtin": 250, "newTagsPerDay": null, "csv": true, "logo": true, "files": true, "pages": true,
              "branding": false, "analyticsDays": 730, "serials": 50000, "domains": 1, "api": true, "members": 5 },
  "usage": { "month": "2026-11", "scans": 8412, "limit": 25000, "percent": 34, "projected": 9800,
             "runs_out_on": null, "over_on": null, "gtin_used": 212, "gtin_limit": 250, "locked": false },
  "api_key": { "scope": "write" }
}

plan is startup, trial, scaleup or enterprise. null in a limit means unlimited. projected estimates the scans for the whole month, runs_out_on the day the limit would be reached. Useful for a monitoring script that warns before you hit a limit.

Activity log

GET /activity returns the activity log of the workspace, newest first, 50 entries per page.

curl "https://app.tagvio.app/api/v1/activity?group=tags" \
  -H "Authorization: Bearer $TAGVIO_KEY"
{
  "entries": [
    {
      "id": 8812, "actor": "API: ERP sync", "via": "api",
      "action": "tag.target", "target_type": "tag", "target_id": "k7m2xq4d", "target_name": "Oak chair Linus",
      "detail": "https://example.com/linus-2027", "created_at": 1795219200000
    },
    …
  ],
  "next": 8763,
  "retention_days": 365
}
  • Next page: ?before= with the value of next. next: null means there is nothing older.
  • Filters: ?group=tags|serials|team|domains|integrations|settings or ?tag={id} for one tag.
  • ?format=csv downloads up to 5,000 entries as CSV.
  • via is api for changes made with a key and app for changes in the dashboard.

Entries are kept for 12 months. More: Activity log.

Related: REST API: getting started · Webhooks · GS1 Digital Link

Still stuck?

Use the contact form or write to hello@tagvio.app – we usually reply within 1–2 business days.

Try it in the app

Free plan forever. No credit card. Early access: we activate new accounts within one working day.

Start free →