Help Center › Settings › REST API: getting started
REST API: getting started
Connect your ERP, inventory system or shop: create codes, change destinations and pull analytics automatically with an API key.
The REST API connects Tagvio to your other systems. Your ERP, inventory system or shop can create codes, change destinations and read scan numbers without anyone clicking through the dashboard.
From Scaleup
Typical uses:
- Sync products from an ERP or shop and create one code per product, with GTIN and Buy link.
- Create many codes at once, e.g. for a new collection.
- Change destinations automatically when a product page moves. The printed code stays the same.
- Pull scan numbers into your own reports or BI tool.
- Create serial numbers for the printer and check single serials.
The furniture maker Holzwerk Brandt keeps 2,000 products in its ERP. A nightly job sends new products to /tags/bulk in packets of 200 and writes the scan address of each code back into the ERP. The label printer takes it from there. When a product page moves, the ERP changes the destination with one PATCH request. Every Monday a report script reads /analytics. In the activity log, all of this shows up as “API: ERP sync”.
Create an API key
- Open Settings › REST API. Only owners and admins see this page.
- Enter a name under Name (e.g. Shopify sync). Use the system that will work with the key, e.g. “ERP sync”.
- Choose the Access: read and write or read only. A read-only key can only send GET requests.
- Click Create key. If you use two-factor sign-in, Tagvio may ask for your code first.
- Under Your new API key, click Copy and store the key in your system's secret store or a password manager. Then click Done.
The key is shown only once. Tagvio stores only a fingerprint (hash) of it, so nobody can show it to you again. If you lose it, create a new key and revoke the old one.
- A key starts with
tgv_followed by 40 characters. The list shows only the beginning, the access, when it was last used and who created it. - A workspace can have up to 10 active keys.
- A key belongs to exactly one workspace. For several workspaces, create one key in each.
- A key only works as long as the person who created it is an owner or admin of the workspace. If you remove that person or change their role, their keys stop working.
- Revoke stops a key immediately. Systems that use it get an error from then on.
Keep your key safe
- Use the key only on a server, never in website code, an app or anywhere a visitor can read it.
- Never put the key into a Git repository. Use environment variables or a secret store.
- One key per system: if a key leaks, you only revoke that one.
- Use read only whenever a system only reads, e.g. a reporting tool.
- Replace keys from time to time: create a new key, switch your system over, then revoke the old one.
- All owners and admins get a security email when a new key is created. If you did not expect it, revoke the key and check the security settings.
Changes in the activity log
Every change made with a key appears in Settings › Activity log as “API: key name”. That is why a clear name helps. In a tag's history, the change shows the email address of the person who created the key.
Base URL and authentication
- Base URL:
https://app.tagvio.app/api/v1 - Every request sends the key in the header
Authorization: Bearer tgv_… - The workspace comes from the key. There is no workspace ID in the path.
- Requests with a body use JSON with
Content-Type: application/json. Responses are JSON as well, except the CSV downloads. - Times in API responses are milliseconds since 1970 (UTC). Exports and webhooks use ISO dates.
curl https://app.tagvio.app/api/v1/tags \
-H "Authorization: Bearer $TAGVIO_KEY"
Without a key you get 401 with api_key_required, with a wrong or revoked key 401 with invalid_api_key.
Your first call
- Store the key in an environment variable, e.g.
export TAGVIO_KEY=tgv_… - Check the key and your plan with
GET /workspace. - Create a first tag with
POST /tags.
curl https://app.tagvio.app/api/v1/workspace \
-H "Authorization: Bearer $TAGVIO_KEY"
The answer (shortened) shows the workspace, plan, limits and this month's scans:
{
"name": "Holzwerk Brandt",
"scan_host": "go.tagvio.app",
"plan": "scaleup",
"step": "25k",
"limits": { "scans": 25000, "gtin": 250, "api": true, … },
"usage": { "month": "2026-11", "scans": 8412, "limit": 25000, "percent": 34, … },
"api_key": { "scope": "write" }
}
Now create a tag that leads to a web page:
curl https://app.tagvio.app/api/v1/tags \
-H "Authorization: Bearer $TAGVIO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Oak chair Linus","type":"url","data":{"url":"https://example.com/linus"}}'
Tagvio answers with 201 and the new tag (shortened):
{
"tag": {
"id": "k7m2xq4d",
"name": "Oak chair Linus",
"type": "url",
"destination": "https://example.com/linus",
"content": "https://go.tagvio.app/p/k7m2xq4d",
…
}
}
content is what goes into the QR code. The tag is live immediately and also appears in the dashboard. All endpoints with examples: API endpoints.
Limits
- 120 requests per minute and key. Every response has the headers
X-RateLimit-LimitandX-RateLimit-Remaining. Above the limit you get429withrate_limitedand the headerRetry-After(seconds until the next minute). - New tags: at most 1,200 per hour and workspace (
429,rate_limited_tags). During the trial also at most 1,000 per 24 hours (plan_daily_tags). - Bulk create: up to 200 tags per request, checking without creating up to 1,000 rows.
- Plan limits apply exactly as in the dashboard: GTIN codes, serial numbers per month and so on. See Plan & billing.
- Same checks: short links and IP addresses are rejected as destinations, suspicious destinations are checked, and every change is published at once.
- Dashboard only: plan and billing, domains, team, API keys and file uploads.
Errors
Errors come as JSON with a code and a matching HTTP status. For invalid input, field names the field. Sometimes expected adds a hint, e.g. the correct check digit of a GTIN:
{ "error": "invalid_gtin", "field": "gtin", "expected": "2" }
| Status | Codes | Meaning |
|---|---|---|
| 400 | invalid_*, url_blocked, gtin_restricted, too_many_rows | Input invalid or destination blocked |
| 401 | api_key_required, invalid_api_key | Key missing, wrong or revoked |
| 402 | plan_feature_api, plan_feature_*, plan_limit_gtin, plan_limit_serials, plan_usage_locked | Your plan does not include this or the limit is reached |
| 403 | read_only_key, forbidden, tag_blocked | Key may only read, or the action is not allowed |
| 404 | not_found | Does not exist in this workspace |
| 409 | gtin_taken, gtin_cooldown, not_archived, folder_exists | Conflict, e.g. GTIN already in use |
| 415 | json_required | Body is not sent as JSON |
| 429 | rate_limited, rate_limited_tags, plan_daily_tags | Too many requests or new tags |
| 500 | internal | Error on our side – try again later |
Retry 429 after Retry-After and 5xx errors with growing pauses. Do not repeat 4xx requests unchanged – fix the input first.
Related: API endpoints · Webhooks · Shop & revenue · CSV import
Use the contact form or write to hello@tagvio.app – we usually reply within 1–2 business days.
Free plan forever. No credit card. Early access: we activate new accounts within one working day.