curl -X POST "https://api.scanova.io/qr/hash/generate/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"domain": 42
}'
{
"domain": 42,
"url_hash": "k7m2xn9q",
"valid": true
}QR Codes
Generate an available hash
POST /qr/hash/generate/
POST
/
qr
/
hash
/
generate
/
curl -X POST "https://api.scanova.io/qr/hash/generate/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"domain": 42
}'
{
"domain": 42,
"url_hash": "k7m2xn9q",
"valid": true
}Asks the server for a random slug that is currently free, instead of guessing one and checking it.
Requires the
POST https://api.scanova.io/qr/hash/generate/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
CUSTOM_URL_HASH quota — the same gate as Check hash availability.
integer
Custom-domain primary key to generate against. Omit for the default short domain.
string
Read-only — the generated slug.
boolean
Read-only — always
true for a freshly generated slug.curl -X POST "https://api.scanova.io/qr/hash/generate/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"domain": 42
}'
Generation does not reserve the slug. Claim it promptly by passing it as
url_hash on Create a QR Code or Change a QR Code’s short-URL slug.Related
- Check hash availability — verify a slug you chose yourself.
- Change a QR Code’s short-URL slug — apply a generated slug to an existing QR Code.
- QR Manager overview — the quotas, role permissions, and Trash model shared by every endpoint in this module.
- Management API overview — the auth scheme and quota rules that apply to this endpoint.
Authorizations
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
Response
A generated, available slug.
Was this page helpful?