{"openapi":"3.1.0","info":{"title":"qrcodegenerator.in API","version":"0.1.0","description":"QR codes as an API: create, design, verify and measure. Rate limits are announced in X-RateLimit-* headers on every response to a call made with an API key. POST endpoints accept Idempotency-Key."},"servers":[{"url":"https://api.qrcodegenerator.in"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"A qr_live_… key from /app/api. Scopes: read, write."}}},"paths":{"/v1/qr":{"post":{"operationId":"post-v1-qr","summary":"Create a QR code (dynamic codes receive a qrrd.in short code). Supports Idempotency-Key.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":40,"enum":["url","wifi","vcard","mecard","text","email","sms","phone","geo","event","upi","whatsapp","pix","epc","google-review","google-form","instagram","facebook","youtube","linkedin","telegram","x-twitter","tiktok","maps","app-store","qris","promptpay","gst-info","gs1","messenger","snapchat","pinterest","waze","whatsapp-catalogue","facetime","bitcoin","paypal","ethereum","solana","xrp","usdt","menu","multi-link","business-card","form","business-profile","product","coupon","image","gallery","pdf","video","audio","file","qr-to-ai"],"description":"A content type from @qrcg/content-types, or a hosted type — hosted types are created with POST /v1/qr/hosted instead."},"mode":{"type":"string","enum":["static","dynamic"]},"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{3,29}$"},"printLocation":{"type":"string","maxLength":200},"folderId":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"campaignId":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"domainId":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"payloadJson":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"design":{"type":"object","properties":{"colorsJson":{"type":"object","properties":{"fg":{"type":"string"},"bg":{"type":"string"},"eyeOuter":{"type":"string"},"eyeInner":{"type":"string"},"eyeCorners":{"type":"object","properties":{"tl":{"type":"object","properties":{"frameColor":{"type":"string"},"ballColor":{"type":"string"}},"additionalProperties":false},"tr":{"type":"object","properties":{"frameColor":{"type":"string"},"ballColor":{"type":"string"}},"additionalProperties":false},"bl":{"type":"object","properties":{"frameColor":{"type":"string"},"ballColor":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"fill":{"type":"string","enum":["solid","gradient"]},"gradientStops":{"type":"array","items":{"type":"string"}},"gradientPreset":{"type":"number"},"gradientAngle":{"anyOf":[{"type":"number"},{"type":"string","enum":["radial","conic"]}]}},"additionalProperties":false},"shapesJson":{"type":"object","properties":{"dotStyle":{"type":"string","enum":["square","rounded","dot","classy","extra-rounded","hexagon","octagon","cross","plus","leaf-dot","corner-cut","squircle","pill-h","pill-v","notch","shield","soft","bar-h","bar-v","inset","diamond","triangle","pentagon","star","sun","heart","bold-x","bold-plus","drop","dome","fluid","blob","bevel","zebra-h","zebra-v","chain","tile","ninja","cushion","random-square"]},"eyeFrameStyle":{"type":"string","enum":["square","rounded","circle","leaf","squircle","flower","octagon","leaf-alt","arch","teardrop","soft","arch-down","petal","teardrop-alt","cushion","wedge","wedge-alt","pinched","pinched-alt","teardrop-down"]},"eyeBallStyle":{"type":"string","enum":["square","rounded","circle","diamond","leaf","squircle","octagon","shield","flower","arch","hexagon","star","heart","plus","pentagon","drop","arch-down","cushion","wedge","sun"]},"eyeCorners":{"type":"object","properties":{"tl":{"type":"object","properties":{"frameStyle":{"type":"string","enum":["square","rounded","circle","leaf","squircle","flower","octagon","leaf-alt","arch","teardrop","soft","arch-down","petal","teardrop-alt","cushion","wedge","wedge-alt","pinched","pinched-alt","teardrop-down"]},"ballStyle":{"type":"string","enum":["square","rounded","circle","diamond","leaf","squircle","octagon","shield","flower","arch","hexagon","star","heart","plus","pentagon","drop","arch-down","cushion","wedge","sun"]}},"additionalProperties":false},"tr":{"type":"object","properties":{"frameStyle":{"type":"string","enum":["square","rounded","circle","leaf","squircle","flower","octagon","leaf-alt","arch","teardrop","soft","arch-down","petal","teardrop-alt","cushion","wedge","wedge-alt","pinched","pinched-alt","teardrop-down"]},"ballStyle":{"type":"string","enum":["square","rounded","circle","diamond","leaf","squircle","octagon","shield","flower","arch","hexagon","star","heart","plus","pentagon","drop","arch-down","cushion","wedge","sun"]}},"additionalProperties":false},"bl":{"type":"object","properties":{"frameStyle":{"type":"string","enum":["square","rounded","circle","leaf","squircle","flower","octagon","leaf-alt","arch","teardrop","soft","arch-down","petal","teardrop-alt","cushion","wedge","wedge-alt","pinched","pinched-alt","teardrop-down"]},"ballStyle":{"type":"string","enum":["square","rounded","circle","diamond","leaf","squircle","octagon","shield","flower","arch","hexagon","star","heart","plus","pentagon","drop","arch-down","cushion","wedge","sun"]}},"additionalProperties":false}},"additionalProperties":false},"customModulePath":{"type":"string","maxLength":600,"description":"One module as an SVG path in a unit cell: absolute M, L, H, V, C, Q and Z only, no arcs, and every coordinate between 0 and 1. A path outside that grammar is refused with the reason."},"moduleGap":{"type":"number","minimum":0,"maximum":0.2},"quietZone":{"type":"integer","minimum":4,"maximum":10},"backgroundImage":{"type":"object","properties":{"href":{"type":"string","maxLength":120000,"pattern":"^data:image\\/(png|jpeg|webp);base64,[A-Za-z0-9+/]+=*$","description":"An inline base64 PNG, JPEG or WebP data URI. The bytes are read, and the file must be the type its label declares."},"opacity":{"type":"number","minimum":0,"maximum":1}},"required":["href"],"additionalProperties":false},"foregroundImage":{"type":"object","properties":{"href":{"type":"string","maxLength":120000,"pattern":"^data:image\\/(png|jpeg|webp);base64,[A-Za-z0-9+/]+=*$","description":"An inline base64 PNG, JPEG or WebP data URI. The bytes are read, and the file must be the type its label declares."},"opacity":{"type":"number","minimum":0,"maximum":1}},"required":["href"],"additionalProperties":false},"encode":{"type":"object","properties":{"ecLevel":{"type":"string","enum":["auto","L","M","Q","H"]},"version":{"anyOf":[{"type":"string","const":"auto"},{"type":"integer","minimum":1,"maximum":8}]},"mask":{"anyOf":[{"type":"string","const":"auto"},{"type":"integer","minimum":0,"maximum":7}]},"eci":{"type":"boolean"},"uppercase":{"type":"boolean"},"symbol":{"type":"string","enum":["model2","micro","rmqr","gs1"]},"micro":{"type":"string","enum":["M1","M2","M3","M4"]},"rmqr":{"type":"string","enum":["R7x43","R9x59","R11x27","R13x27","R15x59","R17x139"]}},"additionalProperties":false}},"additionalProperties":false},"frameJson":{"type":"object","properties":{"template":{"type":"string","enum":["solid","solid-top","panel","panel-top","solid-rounded","solid-rounded-top","label","card","card-rounded","top-label","ribbon","tooltip","corners","ticket","badge","card-rounded-top","ribbon-top","tooltip-bottom","corners-rounded","label-top","badge-top","ticket-top","card-dashed","card-dotted","card-thick","card-double","sides","rails","tag","banner","banner-top"]},"font":{"type":"string","enum":["sans","serif","mono","rounded","times","georgia","arial","verdana","tahoma","trebuchet","courier-new","impact","alfa-slab","anton","archivo-black","arvo","barlow","bebas","bitter","bungee","caveat","cormorant","crimson","dancing-script","dm-sans","eb-garamond","figtree","fredoka","ibm-plex-mono","inter","josefin-slab","lato","libre-baskerville","lobster","lora","manrope","merriweather","montserrat","nunito","oswald","pacifico","playfair","poppins","quicksand","raleway","righteous","rubik","source-code-pro","space-mono","spectral","titan-one","work-sans","zilla-slab","mukta","hind","mukta-vaani","hind-vadodara"]},"text":{"type":"string","maxLength":48},"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"frameColor":{"type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"fontSize":{"type":"number","minimum":1.6,"maximum":3.2},"bold":{"type":"boolean"},"italic":{"type":"boolean"},"underline":{"type":"boolean"},"fill":{"type":"string","enum":["solid","gradient"]},"gradientStops":{"type":"array","prefixItems":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}],"items":false,"minItems":2,"maxItems":2},"textFill":{"type":"string","enum":["solid","gradient"]},"textGradientStops":{"type":"array","prefixItems":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}],"items":false,"minItems":2,"maxItems":2},"gradientType":{"type":"string","enum":["linear","conic"]},"textGradientType":{"type":"string","enum":["linear","conic"]}},"additionalProperties":false},"brandKitId":{"type":"string","minLength":1,"maxLength":40}},"additionalProperties":false}},"required":["type","mode","name"],"additionalProperties":false,"description":"Every key is refused unless this body names it. `payloadJson` takes only the fields of the code's own `type` — a key another type uses is refused by name, with the type's own fields listed."}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"get":{"operationId":"get-v1-qr","summary":"List QR codes with search and filters, cursor-paginated.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"parameters":[{"name":"createdFrom","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"createdTo","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string","maxLength":120}},{"name":"type","in":"query","schema":{"type":"string","maxLength":40}},{"name":"status","in":"query","schema":{"type":"string","enum":["active","paused","continuity","expired","archived"]}},{"name":"folderId","in":"query","schema":{"type":"string","maxLength":40}},{"name":"favourite","in":"query","schema":{"type":"boolean"}},{"name":"tagId","in":"query","schema":{"type":"string","maxLength":40}},{"name":"untagged","in":"query","schema":{"type":"boolean"}},{"name":"domainId","in":"query","schema":{"type":"string","maxLength":40}},{"name":"sort","in":"query","schema":{"default":"newest","type":"string","enum":["newest","oldest","modified","name","scans"]}}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}":{"get":{"operationId":"get-v1-qr-id","summary":"Fetch one QR code including its design.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"patch":{"operationId":"patch-v1-qr-id","summary":"Rename, pause or resume a code. Continuity is system-managed and cannot be set here.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"status":{"type":"string","enum":["active","paused"]},"campaignId":{"type":["string","null"]},"printLocation":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"folderId":{"type":["string","null"]},"favourite":{"type":"boolean"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"delete":{"operationId":"delete-v1-qr-id","summary":"Archive a code (30-day trash — restorable, never an immediate hard delete).","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/restore":{"post":{"operationId":"post-v1-qr-id-restore","summary":"Restore a code from the trash.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/duplicate":{"post":{"operationId":"post-v1-qr-id-duplicate","summary":"Duplicate a code with its destination and design; dynamic copies get a fresh short code.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/history":{"get":{"operationId":"get-v1-qr-id-history","summary":"The append-only destination version history, newest first.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/destination":{"post":{"operationId":"post-v1-qr-id-destination","summary":"Append a new destination version (dynamic codes only; history is never mutated). Destinations are threat-screened.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payloadJson":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"targetUrl":{"type":"string","format":"uri"},"note":{"type":"string","maxLength":500},"activeFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/gates":{"patch":{"operationId":"patch-v1-qr-id-gates","summary":"Set what a scan must satisfy before it resolves: password, minimum age, email capture, expiry, health monitoring. Never returns the password — there is nothing stored that could produce it.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"password":{"anyOf":[{"type":"string","minLength":8,"maxLength":200},{"type":"null"}]},"minAge":{"anyOf":[{"type":"integer","minimum":13,"maximum":120},{"type":"null"}]},"emailCapture":{"type":"boolean"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiryScans":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000000},{"type":"null"}]},"healthMonitor":{"type":"boolean"},"expiredUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"startsAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"contentNotice":{"anyOf":[{"type":"string","enum":["alcohol","gambling","mature","graphic","financial"]},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/design":{"put":{"operationId":"put-v1-qr-id-design","summary":"Set the design — colours, shapes, logo. The encoded payload is never touched by design.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"colorsJson":{"type":"object","properties":{"fg":{"type":"string"},"bg":{"type":"string"},"eyeOuter":{"type":"string"},"eyeInner":{"type":"string"},"eyeCorners":{"type":"object","properties":{"tl":{"type":"object","properties":{"frameColor":{"type":"string"},"ballColor":{"type":"string"}},"additionalProperties":false},"tr":{"type":"object","properties":{"frameColor":{"type":"string"},"ballColor":{"type":"string"}},"additionalProperties":false},"bl":{"type":"object","properties":{"frameColor":{"type":"string"},"ballColor":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"fill":{"type":"string","enum":["solid","gradient"]},"gradientStops":{"type":"array","items":{"type":"string"}},"gradientPreset":{"type":"number"},"gradientAngle":{"anyOf":[{"type":"number"},{"type":"string","enum":["radial","conic"]}]}},"additionalProperties":false},"shapesJson":{"type":"object","properties":{"dotStyle":{"type":"string","enum":["square","rounded","dot","classy","extra-rounded","hexagon","octagon","cross","plus","leaf-dot","corner-cut","squircle","pill-h","pill-v","notch","shield","soft","bar-h","bar-v","inset","diamond","triangle","pentagon","star","sun","heart","bold-x","bold-plus","drop","dome","fluid","blob","bevel","zebra-h","zebra-v","chain","tile","ninja","cushion","random-square"]},"eyeFrameStyle":{"type":"string","enum":["square","rounded","circle","leaf","squircle","flower","octagon","leaf-alt","arch","teardrop","soft","arch-down","petal","teardrop-alt","cushion","wedge","wedge-alt","pinched","pinched-alt","teardrop-down"]},"eyeBallStyle":{"type":"string","enum":["square","rounded","circle","diamond","leaf","squircle","octagon","shield","flower","arch","hexagon","star","heart","plus","pentagon","drop","arch-down","cushion","wedge","sun"]},"eyeCorners":{"type":"object","properties":{"tl":{"type":"object","properties":{"frameStyle":{"type":"string","enum":["square","rounded","circle","leaf","squircle","flower","octagon","leaf-alt","arch","teardrop","soft","arch-down","petal","teardrop-alt","cushion","wedge","wedge-alt","pinched","pinched-alt","teardrop-down"]},"ballStyle":{"type":"string","enum":["square","rounded","circle","diamond","leaf","squircle","octagon","shield","flower","arch","hexagon","star","heart","plus","pentagon","drop","arch-down","cushion","wedge","sun"]}},"additionalProperties":false},"tr":{"type":"object","properties":{"frameStyle":{"type":"string","enum":["square","rounded","circle","leaf","squircle","flower","octagon","leaf-alt","arch","teardrop","soft","arch-down","petal","teardrop-alt","cushion","wedge","wedge-alt","pinched","pinched-alt","teardrop-down"]},"ballStyle":{"type":"string","enum":["square","rounded","circle","diamond","leaf","squircle","octagon","shield","flower","arch","hexagon","star","heart","plus","pentagon","drop","arch-down","cushion","wedge","sun"]}},"additionalProperties":false},"bl":{"type":"object","properties":{"frameStyle":{"type":"string","enum":["square","rounded","circle","leaf","squircle","flower","octagon","leaf-alt","arch","teardrop","soft","arch-down","petal","teardrop-alt","cushion","wedge","wedge-alt","pinched","pinched-alt","teardrop-down"]},"ballStyle":{"type":"string","enum":["square","rounded","circle","diamond","leaf","squircle","octagon","shield","flower","arch","hexagon","star","heart","plus","pentagon","drop","arch-down","cushion","wedge","sun"]}},"additionalProperties":false}},"additionalProperties":false},"customModulePath":{"type":"string","maxLength":600,"description":"One module as an SVG path in a unit cell: absolute M, L, H, V, C, Q and Z only, no arcs, and every coordinate between 0 and 1. A path outside that grammar is refused with the reason."},"moduleGap":{"type":"number","minimum":0,"maximum":0.2},"quietZone":{"type":"integer","minimum":4,"maximum":10},"backgroundImage":{"type":"object","properties":{"href":{"type":"string","maxLength":120000,"pattern":"^data:image\\/(png|jpeg|webp);base64,[A-Za-z0-9+/]+=*$","description":"An inline base64 PNG, JPEG or WebP data URI. The bytes are read, and the file must be the type its label declares."},"opacity":{"type":"number","minimum":0,"maximum":1}},"required":["href"],"additionalProperties":false},"foregroundImage":{"type":"object","properties":{"href":{"type":"string","maxLength":120000,"pattern":"^data:image\\/(png|jpeg|webp);base64,[A-Za-z0-9+/]+=*$","description":"An inline base64 PNG, JPEG or WebP data URI. The bytes are read, and the file must be the type its label declares."},"opacity":{"type":"number","minimum":0,"maximum":1}},"required":["href"],"additionalProperties":false},"encode":{"type":"object","properties":{"ecLevel":{"type":"string","enum":["auto","L","M","Q","H"]},"version":{"anyOf":[{"type":"string","const":"auto"},{"type":"integer","minimum":1,"maximum":8}]},"mask":{"anyOf":[{"type":"string","const":"auto"},{"type":"integer","minimum":0,"maximum":7}]},"eci":{"type":"boolean"},"uppercase":{"type":"boolean"},"symbol":{"type":"string","enum":["model2","micro","rmqr","gs1"]},"micro":{"type":"string","enum":["M1","M2","M3","M4"]},"rmqr":{"type":"string","enum":["R7x43","R9x59","R11x27","R13x27","R15x59","R17x139"]}},"additionalProperties":false}},"additionalProperties":false},"frameJson":{"anyOf":[{"type":"object","properties":{"template":{"type":"string","enum":["solid","solid-top","panel","panel-top","solid-rounded","solid-rounded-top","label","card","card-rounded","top-label","ribbon","tooltip","corners","ticket","badge","card-rounded-top","ribbon-top","tooltip-bottom","corners-rounded","label-top","badge-top","ticket-top","card-dashed","card-dotted","card-thick","card-double","sides","rails","tag","banner","banner-top"]},"font":{"type":"string","enum":["sans","serif","mono","rounded","times","georgia","arial","verdana","tahoma","trebuchet","courier-new","impact","alfa-slab","anton","archivo-black","arvo","barlow","bebas","bitter","bungee","caveat","cormorant","crimson","dancing-script","dm-sans","eb-garamond","figtree","fredoka","ibm-plex-mono","inter","josefin-slab","lato","libre-baskerville","lobster","lora","manrope","merriweather","montserrat","nunito","oswald","pacifico","playfair","poppins","quicksand","raleway","righteous","rubik","source-code-pro","space-mono","spectral","titan-one","work-sans","zilla-slab","mukta","hind","mukta-vaani","hind-vadodara"]},"text":{"type":"string","maxLength":48},"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"frameColor":{"type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"fontSize":{"type":"number","minimum":1.6,"maximum":3.2},"bold":{"type":"boolean"},"italic":{"type":"boolean"},"underline":{"type":"boolean"},"fill":{"type":"string","enum":["solid","gradient"]},"gradientStops":{"type":"array","prefixItems":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}],"items":false,"minItems":2,"maxItems":2},"textFill":{"type":"string","enum":["solid","gradient"]},"textGradientStops":{"type":"array","prefixItems":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}],"items":false,"minItems":2,"maxItems":2},"gradientType":{"type":"string","enum":["linear","conic"]},"textGradientType":{"type":"string","enum":["linear","conic"]}},"additionalProperties":false},{"type":"null"}]},"logoJson":{"anyOf":[{"type":"object","properties":{"dataUri":{"type":"string","maxLength":120000,"pattern":"^data:image\\/(png|jpeg|webp);base64,[A-Za-z0-9+/]+=*$","description":"An inline base64 PNG, JPEG or WebP data URI. The bytes are read, and the file must be the type its label declares."},"sizeRatio":{"type":"number","minimum":0.01,"maximum":0.3},"excavate":{"type":"boolean"},"backdrop":{"type":"boolean"}},"required":["dataUri","sizeRatio","excavate"],"additionalProperties":false},{"type":"null"}]},"brandKitId":{"anyOf":[{"type":"string","minLength":1,"maxLength":40},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/design/versions":{"post":{"operationId":"post-v1-qr-id-design-versions","summary":"Save the current design under a name. A version holds the design only — restoring one never changes what the code resolves to.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80}},"required":["name"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/render":{"post":{"operationId":"post-v1-render","summary":"Stateless render: payload in, SVG or PNG out. The payload is rendered exactly as received.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payload":{"type":"string","minLength":1,"maxLength":2953},"format":{"default":"svg","type":"string","enum":["svg","png"]},"ecLevel":{"type":"string","enum":["L","M","Q","H"]},"fg":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bg":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"quietZone":{"type":"integer","minimum":0,"maximum":16},"dotStyle":{"type":"string","enum":["square","rounded","dot","classy","extra-rounded","hexagon","octagon","cross","plus","leaf-dot","corner-cut","squircle","pill-h","pill-v","notch","shield","soft","bar-h","bar-v","inset","diamond","triangle","pentagon","star","sun","heart","bold-x","bold-plus","drop","dome","fluid","blob","bevel","zebra-h","zebra-v","chain","tile","ninja","cushion","random-square"]},"sizePx":{"default":1024,"type":"integer","minimum":64,"maximum":4096}},"required":["payload"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/render/structured-append":{"post":{"operationId":"post-v1-render-structured-append","summary":"Structured Append: one payload too large for a single symbol, split across 2–16 symbols. Returns a ZIP of one SVG per symbol plus a print sheet, or JSON. The payload is split exactly as received; one that fits a single symbol is refused.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payload":{"type":"string","minLength":1,"maxLength":47248},"ecLevel":{"default":"M","type":"string","enum":["L","M","Q","H"]},"symbolCount":{"type":"integer","minimum":2,"maximum":16},"format":{"default":"zip","type":"string","enum":["zip","json"]},"fg":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bg":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["payload"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/payment/validate":{"post":{"operationId":"post-v1-payment-validate","summary":"Validate a payment payload against the cross-app compatibility engine (UPI: five-wallet verdicts, zero false negatives).","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payload":{"type":"string","minLength":4,"maxLength":4096}},"required":["payload"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/decode":{"post":{"operationId":"post-v1-decode","summary":"Decode-verify any QR image: 5 resolutions × 8 degradations across independent decoder engines.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"imageBase64":{"type":"string","minLength":8,"maxLength":12000000}},"required":["imageBase64"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/links":{"post":{"operationId":"post-v1-links","summary":"Create a short link (auto or custom slug, one namespace with QR codes). Destinations are threat-screened.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"destination":{"type":"string","maxLength":2048,"format":"uri"},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{3,29}$"},"name":{"type":"string","maxLength":120},"campaignId":{"type":"string","maxLength":40},"folderId":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"domainId":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]}},"required":["destination"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"get":{"operationId":"get-v1-links","summary":"List short links. `q` searches the name, short code and destination; `status` is live (the default: all but archived), active, paused, archived or all; `folderId` and `campaignId` filter; `sort` is newest, oldest, name or scans. Pass `nextCursor` back as `cursor` for the next page.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/me":{"get":{"operationId":"get-v1-me","summary":"Who is asking. With a key: the key's name, environment and scopes, and the workspace and organisation it acts for — never a person's details.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/barcodes":{"get":{"operationId":"get-v1-barcodes","summary":"List barcodes. Needs `qr:read`; creating, editing and archiving need `qr:write`.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/analytics/summary":{"get":{"operationId":"get-v1-analytics-summary","summary":"The workspace's scans for the last `days`. Needs the `analytics` scope. A key reads in UTC.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/analytics/series":{"get":{"operationId":"get-v1-analytics-series","summary":"Scans by the hour for the last `days` (up to the hourly window). Needs the `analytics` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/analytics/scans":{"get":{"operationId":"get-v1-analytics-scans","summary":"Scans broken down by one `dimension`, with the window's total beside the attributed sum. Needs the `analytics` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/analytics/returning":{"get":{"operationId":"get-v1-analytics-returning","summary":"New and returning visitors by day. Needs the `analytics` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/ai-qr":{"post":{"operationId":"post-v1-ai-qr","summary":"Generate AI QR art around a deterministic code; spends AI credits and every result is scan-checked before it is returned. Needs the `ai` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/team":{"get":{"operationId":"get-v1-team","summary":"The workspace's members, invitations and seats. Needs the `team` scope; a key reads as a viewer and cannot invite or change anyone.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/billing":{"get":{"operationId":"get-v1-billing","summary":"The organisation's plan, usage and invoices, read-only. Needs the `billing` scope, a key made by an owner, on the organisation's own workspace — never a client workspace.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/links/{id}":{"get":{"operationId":"get-v1-links-id","summary":"Fetch one short link with its engine and aliases.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"delete":{"operationId":"delete-v1-links-id","summary":"Delete a short link. Needs a qr:write key.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"patch":{"operationId":"patch-v1-links-id","summary":"Repoint a short link; the edge updates in the same operation.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"destination":{"type":"string","maxLength":2048,"format":"uri"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"campaignId":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"folderId":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"domainId":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]}},"description":"At least one of destination, note, name, campaignId, folderId or domainId. A body that changes nothing is refused rather than answered with a 200."}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/folders":{"get":{"operationId":"get-v1-folders","summary":"The library's folders with the number of codes in each, plus the two views that are not folders: All (id null) and Archive (id \"archive\").","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"post":{"operationId":"post-v1-folders","summary":"Create a folder, optionally inside another one.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"parentId":{"type":["string","null"]},"color":{"anyOf":[{"type":"string","enum":["#DD6B20","#1E3A5F","#6B6B70","#7A3E9D","#0F6E70","#8C5A3C"]},{"type":"null"}]},"icon":{"anyOf":[{"type":"string","enum":["folder","building","bag","plate","ticket","box","flag","pin","globe","star","briefcase","calendar"]},{"type":"null"}]}},"required":["name"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/submissions":{"get":{"operationId":"get-v1-submissions","summary":"Every landing-page form submission in the workspace, newest first, with the page each came from.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/assets":{"get":{"operationId":"get-v1-qr-id-assets","summary":"Where this code's printed copies physically live, and a sentence saying why no copy carries a scan count: every copy of a code carries the same code.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"post":{"operationId":"post-v1-qr-id-assets","summary":"Record where a printed copy of this code lives.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}]},"photo":{"anyOf":[{"type":"string","maxLength":800008,"description":"An inline base64 PNG, JPEG or WebP data URI under 580KB. The bytes are read, and the file must be the type its label declares."},{"type":"null"}]},"serialise":{"type":"boolean"}},"required":["label"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/assets/{assetId}":{"delete":{"operationId":"delete-v1-qr-id-assets-assetid","summary":"Remove an entry from the asset register.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/activity":{"get":{"operationId":"get-v1-qr-id-activity","summary":"Everything that has happened to this code, newest first — creation, destination changes, design changes, and the asset register.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/tags":{"get":{"operationId":"get-v1-tags","summary":"The workspace's tags and how many things carry each one.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"post":{"operationId":"post-v1-tags","summary":"Create a tag. Asking for a name that exists returns the existing tag rather than a second one — a workspace with \"Menu\" twice is a workspace where a filter shows half the codes.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40},"color":{"anyOf":[{"type":"string","enum":["#DD6B20","#1E3A5F","#6B6B70","#7A3E9D","#0F6E70","#8C5A3C"]},{"type":"null"}]}},"required":["name"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/tags/assign":{"post":{"operationId":"post-v1-tags-assign","summary":"Apply one tag to a list of codes and a list of barcodes in a single call. All or nothing: if any of them is outside the workspace the whole request is refused rather than half-applied.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tagId":{"type":"string","minLength":1},"qrIds":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1}},"barcodeIds":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["tagId"],"description":"At least one id across `qrIds` and `barcodeIds`."}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/tags/unassign":{"post":{"operationId":"post-v1-tags-unassign","summary":"Take one tag off a list of codes and a list of barcodes. Only the label goes — every code keeps its destination and its scans. Refused whole if any id is outside the workspace.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tagId":{"type":"string","minLength":1},"qrIds":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1}},"barcodeIds":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["tagId"],"description":"At least one id across `qrIds` and `barcodeIds`."}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/tags/{id}/merge":{"post":{"operationId":"post-v1-tags-id-merge","summary":"Move every code and barcode carrying this tag to another tag, then delete this one. One transaction: a half-merged pair of tags looks exactly like a merge nobody has run yet.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"into":{"type":"string","minLength":1}},"required":["into"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/folders/{id}":{"patch":{"operationId":"patch-v1-folders-id","summary":"Rename a folder. Name only — folders are flat, so this cannot move one. The response omits the count: a rename does not know how many codes the folder holds and will not answer with a number it did not count.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"color":{"anyOf":[{"type":"string","enum":["#DD6B20","#1E3A5F","#6B6B70","#7A3E9D","#0F6E70","#8C5A3C"]},{"type":"null"}]},"icon":{"anyOf":[{"type":"string","enum":["folder","building","bag","plate","ticket","box","flag","pin","globe","star","briefcase","calendar"]},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"delete":{"operationId":"delete-v1-folders-id","summary":"Delete a folder. Never deletes a code: every QR code and barcode in it is unfiled first, in the same transaction, and the response says how many were kept.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/folders/{id}/empty":{"post":{"operationId":"post-v1-folders-id-empty","summary":"Unfile everything in a folder and keep the folder. What people reach for Delete to get when they are done with a grouping but not with the codes.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/folders/{id}/merge":{"post":{"operationId":"post-v1-folders-id-merge","summary":"Move every code and barcode into another folder, then delete the now-empty source. One transaction: a half-merged pair of folders looks exactly like a merge nobody has run yet.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"into":{"type":"string","minLength":1}},"required":["into"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/pages":{"post":{"operationId":"post-v1-pages","summary":"Create a landing page as a draft, optionally from a page template.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","pattern":"^[a-z0-9-]{4,60}$"},"templateKey":{"type":"string","enum":["restaurant-menu","digital-business-card","property-listing","event-page","product-authenticity","link-in-bio","hotel-compendium","feedback-review","cafe-menu","bar-drinks-menu","cloud-kitchen-ordering","table-feedback","todays-specials","catering-enquiry","retail-product","store-details","loyalty-signup","coupon-offer","new-arrivals","size-and-care-guide","returns-and-exchanges","rental-listing","open-house","project-launch","agent-profile","society-notices","conference-agenda","wedding-invitation","workshop-registration","concert-info","speaker-profile","event-feedback","ingredients-and-nutrition","recycling-guide","warranty-registration","product-manual","reorder","room-service-menu","guest-information","spa-and-wellness","local-guide","rate-your-stay","class-resources","admissions-enquiry","school-event","library-catalogue","course-landing","parent-teacher-meeting","clinic-profile","appointment-request","aftercare-instructions","pharmacy-refill","health-camp","doctor-profile","salon-services","gym-membership","service-business","portfolio","company-profile","job-openings"]},"withCode":{"type":"boolean"}},"required":["title"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"get":{"operationId":"get-v1-pages","summary":"List landing pages.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/pages/{id}":{"get":{"operationId":"get-v1-pages-id","summary":"Fetch one landing page: draft blocks, published version, status.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"put":{"operationId":"put-v1-pages-id","summary":"Save the draft. Every save is a new version; the live page changes only on publish. A new slug keeps the old one as an alias, so printed codes keep landing.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","pattern":"^[a-z0-9-]{4,60}$"},"blocksJson":{"maxItems":50,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"hero"},"assetId":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$"},"alt":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","maxLength":120},"subtitle":{"type":"string","maxLength":200}},"required":["type","assetId","alt"]},{"type":"object","properties":{"type":{"type":"string","const":"image"},"assetId":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$"},"alt":{"type":"string","minLength":1,"maxLength":200},"caption":{"type":"string","maxLength":200}},"required":["type","assetId","alt"]},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":24,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"alt":{"type":"string","minLength":1,"maxLength":200},"caption":{"type":"string","maxLength":200}},"required":["assetId","alt"]}}},"required":["type","images"]},{"type":"object","properties":{"type":{"type":"string","const":"carousel"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"alt":{"type":"string","minLength":1,"maxLength":200},"caption":{"type":"string","maxLength":200}},"required":["assetId","alt"]}}},"required":["type","images"]},{"type":"object","properties":{"type":{"type":"string","const":"video"},"assetId":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$"},"posterAssetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"caption":{"type":"string","maxLength":200},"captionsAssetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"}},"required":["type","assetId"]},{"type":"object","properties":{"type":{"type":"string","const":"audio"},"assetId":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$"},"title":{"type":"string","maxLength":120}},"required":["type","assetId"]},{"type":"object","properties":{"type":{"type":"string","const":"file"},"assetId":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$"},"label":{"type":"string","minLength":1,"maxLength":80},"show":{"type":"string","enum":["open","download","both"]},"downloadLabel":{"type":"string","maxLength":80},"note":{"type":"string","maxLength":200}},"required":["type","assetId","label"]},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/","description":"A URL the embed block can draw. Paste a link to something one of these can embed: YouTube, Vimeo, Loom, Spotify, SoundCloud, Google Maps, Google Forms, Calendly, Typeform — a video, a track, a place, a form or a booking page, not a channel, a profile or a shortened link."},"title":{"type":"string","maxLength":120}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"header"},"title":{"type":"string","maxLength":120},"tagline":{"type":"string","maxLength":200},"avatarAssetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"avatarAlt":{"type":"string","minLength":1,"maxLength":200}},"required":["type","title"],"description":"`avatarAlt` is required whenever `avatarAssetId` is set."},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","maxLength":4000}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"button"},"label":{"type":"string","minLength":1,"maxLength":60},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["type","label","url"]},{"type":"object","properties":{"type":{"type":"string","const":"links"},"items":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["label","url"]}}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"contact"},"phone":{"type":"string","maxLength":20},"whatsapp":{"type":"string","maxLength":20},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"form"},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"title":{"type":"string","maxLength":120},"fields":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,30}$"},"label":{"type":"string","minLength":1,"maxLength":60},"input":{"type":"string","enum":["text","email","tel","textarea"]},"required":{"type":"boolean"}},"required":["key","label","input"]}},"submitLabel":{"type":"string","maxLength":40}},"required":["type","id","fields"]},{"type":"object","properties":{"type":{"type":"string","const":"menu"},"timezone":{"type":"string","maxLength":40,"description":"An IANA timezone name, such as Asia/Kolkata."}},"required":["type","timezone"]},{"type":"object","properties":{"type":{"type":"string","const":"hours"},"rows":{"maxItems":14,"type":"array","items":{"type":"object","properties":{"days":{"type":"string","minLength":1,"maxLength":40},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"closed":{"type":"boolean"}},"required":["days"]}},"note":{"type":"string","maxLength":200}},"required":["type","rows"]},{"type":"object","properties":{"type":{"type":"string","const":"payment"},"vpa":{"type":"string","maxLength":120,"pattern":"^[A-Za-z0-9.\\-_]{2,}@[A-Za-z][A-Za-z0-9.\\-_]{1,}$"},"payeeName":{"type":"string","minLength":1,"maxLength":120},"label":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["type","vpa","payeeName","label"]},{"type":"object","properties":{"type":{"type":"string","const":"rating"},"prompt":{"type":"string","minLength":1,"maxLength":200},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["type","prompt","url"]},{"type":"object","properties":{"type":{"type":"string","const":"faq"},"items":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"q":{"type":"string","minLength":1,"maxLength":200},"a":{"type":"string","minLength":1,"maxLength":1000}},"required":["q","a"]}}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"richtext"},"text":{"type":"string","maxLength":8000}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"social"},"links":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"network":{"type":"string","enum":["instagram","facebook","x","youtube","linkedin","threads","telegram","website"]},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["network","url"],"description":"`url` must be on the named network's own host — a link labelled Instagram goes to Instagram."}}},"required":["type","links"]},{"type":"object","properties":{"type":{"type":"string","const":"phone"},"number":{"type":"string","maxLength":24,"pattern":"^\\+?[\\d\\s().-]{6,}$","description":"At least six digits; spaces, dashes, brackets and a leading + may sit between them."},"label":{"type":"string","maxLength":60}},"required":["type","number"]},{"type":"object","properties":{"type":{"type":"string","const":"whatsapp"},"number":{"type":"string","maxLength":24,"pattern":"^\\+?[\\d\\s().-]{6,}$","description":"At least six digits; spaces, dashes, brackets and a leading + may sit between them."},"label":{"type":"string","maxLength":60},"message":{"type":"string","maxLength":200}},"required":["type","number"]},{"type":"object","properties":{"type":{"type":"string","const":"email"},"address":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"label":{"type":"string","maxLength":60},"subject":{"type":"string","maxLength":120}},"required":["type","address"]},{"type":"object","properties":{"type":{"type":"string","const":"map"},"address":{"type":"string","minLength":1,"maxLength":240},"label":{"type":"string","maxLength":60},"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["type","address"]},{"type":"object","properties":{"type":{"type":"string","const":"products"},"items":{"maxItems":24,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"price":{"type":"string","maxLength":20},"description":{"type":"string","maxLength":200},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["name"]}}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"prices"},"title":{"type":"string","maxLength":120},"items":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"price":{"type":"string","minLength":1,"maxLength":20},"note":{"type":"string","maxLength":120}},"required":["name","price"]}}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"coupon"},"title":{"type":"string","minLength":1,"maxLength":120},"code":{"type":"string","pattern":"^[A-Za-z0-9-]{2,40}$"},"terms":{"type":"string","maxLength":300},"expiresOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A real calendar date, YYYY-MM-DD.","format":"date"}},"required":["type","title","code"]},{"type":"object","properties":{"type":{"type":"string","const":"reviews"},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"label":{"type":"string","maxLength":60}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"countdown"},"title":{"type":"string","minLength":1,"maxLength":120},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"after":{"type":"string","maxLength":200}},"required":["type","title","at"]}]}},"theme":{"description":"The page's theme, saved to the draft: four #rrggbb colours (background, surface, text, accent), a shape and a typeface. Anything else is refused."}},"required":["blocksJson"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"delete":{"operationId":"delete-v1-pages-id","summary":"Delete a landing page.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/pages/{id}/publish":{"post":{"operationId":"post-v1-pages-id-publish","summary":"Publish the draft now, or schedule it with publishAt.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","default":{},"type":"object","properties":{"publishAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/pages/{id}/versions":{"get":{"operationId":"get-v1-pages-id-versions","summary":"The saved versions of a page, newest first, with the live one marked.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/pages/{id}/versions/{version}/restore":{"post":{"operationId":"post-v1-pages-id-versions-version-restore","summary":"Copy an earlier version into the draft as a new version.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/pages/{id}/variants":{"get":{"operationId":"get-v1-pages-id-variants","summary":"A page's languages: its own, each variant with its draft and whether it is live, and whether this plan may add another.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"post":{"operationId":"post-v1-pages-id-variants","summary":"Add a language as a copy of the page's draft. Visitors whose browser asks for it are served it once the page is published.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"type":"string","enum":["en","hi","bn","te","mr","ta","ur","gu","kn","ml","or","pa","as","ne","ar","fr","de","es","pt","ru","zh","ja","ko"]}},"required":["locale"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/pages/{id}/variants/{locale}":{"put":{"operationId":"put-v1-pages-id-variants-locale","summary":"Save a language's translated title and blocks. Live on the page's next publish.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"blocksJson":{"maxItems":50,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"hero"},"assetId":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$"},"alt":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","maxLength":120},"subtitle":{"type":"string","maxLength":200}},"required":["type","assetId","alt"]},{"type":"object","properties":{"type":{"type":"string","const":"image"},"assetId":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$"},"alt":{"type":"string","minLength":1,"maxLength":200},"caption":{"type":"string","maxLength":200}},"required":["type","assetId","alt"]},{"type":"object","properties":{"type":{"type":"string","const":"gallery"},"images":{"minItems":1,"maxItems":24,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"alt":{"type":"string","minLength":1,"maxLength":200},"caption":{"type":"string","maxLength":200}},"required":["assetId","alt"]}}},"required":["type","images"]},{"type":"object","properties":{"type":{"type":"string","const":"carousel"},"images":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"alt":{"type":"string","minLength":1,"maxLength":200},"caption":{"type":"string","maxLength":200}},"required":["assetId","alt"]}}},"required":["type","images"]},{"type":"object","properties":{"type":{"type":"string","const":"video"},"assetId":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$"},"posterAssetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"caption":{"type":"string","maxLength":200},"captionsAssetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"}},"required":["type","assetId"]},{"type":"object","properties":{"type":{"type":"string","const":"audio"},"assetId":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$"},"title":{"type":"string","maxLength":120}},"required":["type","assetId"]},{"type":"object","properties":{"type":{"type":"string","const":"file"},"assetId":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,40}$"},"label":{"type":"string","minLength":1,"maxLength":80},"show":{"type":"string","enum":["open","download","both"]},"downloadLabel":{"type":"string","maxLength":80},"note":{"type":"string","maxLength":200}},"required":["type","assetId","label"]},{"type":"object","properties":{"type":{"type":"string","const":"embed"},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/","description":"A URL the embed block can draw. Paste a link to something one of these can embed: YouTube, Vimeo, Loom, Spotify, SoundCloud, Google Maps, Google Forms, Calendly, Typeform — a video, a track, a place, a form or a booking page, not a channel, a profile or a shortened link."},"title":{"type":"string","maxLength":120}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"header"},"title":{"type":"string","maxLength":120},"tagline":{"type":"string","maxLength":200},"avatarAssetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"avatarAlt":{"type":"string","minLength":1,"maxLength":200}},"required":["type","title"],"description":"`avatarAlt` is required whenever `avatarAssetId` is set."},{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string","maxLength":4000}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"button"},"label":{"type":"string","minLength":1,"maxLength":60},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["type","label","url"]},{"type":"object","properties":{"type":{"type":"string","const":"links"},"items":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["label","url"]}}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"contact"},"phone":{"type":"string","maxLength":20},"whatsapp":{"type":"string","maxLength":20},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"divider"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"form"},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"title":{"type":"string","maxLength":120},"fields":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,30}$"},"label":{"type":"string","minLength":1,"maxLength":60},"input":{"type":"string","enum":["text","email","tel","textarea"]},"required":{"type":"boolean"}},"required":["key","label","input"]}},"submitLabel":{"type":"string","maxLength":40}},"required":["type","id","fields"]},{"type":"object","properties":{"type":{"type":"string","const":"menu"},"timezone":{"type":"string","maxLength":40,"description":"An IANA timezone name, such as Asia/Kolkata."}},"required":["type","timezone"]},{"type":"object","properties":{"type":{"type":"string","const":"hours"},"rows":{"maxItems":14,"type":"array","items":{"type":"object","properties":{"days":{"type":"string","minLength":1,"maxLength":40},"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"closed":{"type":"boolean"}},"required":["days"]}},"note":{"type":"string","maxLength":200}},"required":["type","rows"]},{"type":"object","properties":{"type":{"type":"string","const":"payment"},"vpa":{"type":"string","maxLength":120,"pattern":"^[A-Za-z0-9.\\-_]{2,}@[A-Za-z][A-Za-z0-9.\\-_]{1,}$"},"payeeName":{"type":"string","minLength":1,"maxLength":120},"label":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"number","exclusiveMinimum":0,"maximum":100000}},"required":["type","vpa","payeeName","label"]},{"type":"object","properties":{"type":{"type":"string","const":"rating"},"prompt":{"type":"string","minLength":1,"maxLength":200},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["type","prompt","url"]},{"type":"object","properties":{"type":{"type":"string","const":"faq"},"items":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"q":{"type":"string","minLength":1,"maxLength":200},"a":{"type":"string","minLength":1,"maxLength":1000}},"required":["q","a"]}}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"richtext"},"text":{"type":"string","maxLength":8000}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","const":"social"},"links":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"network":{"type":"string","enum":["instagram","facebook","x","youtube","linkedin","threads","telegram","website"]},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["network","url"],"description":"`url` must be on the named network's own host — a link labelled Instagram goes to Instagram."}}},"required":["type","links"]},{"type":"object","properties":{"type":{"type":"string","const":"phone"},"number":{"type":"string","maxLength":24,"pattern":"^\\+?[\\d\\s().-]{6,}$","description":"At least six digits; spaces, dashes, brackets and a leading + may sit between them."},"label":{"type":"string","maxLength":60}},"required":["type","number"]},{"type":"object","properties":{"type":{"type":"string","const":"whatsapp"},"number":{"type":"string","maxLength":24,"pattern":"^\\+?[\\d\\s().-]{6,}$","description":"At least six digits; spaces, dashes, brackets and a leading + may sit between them."},"label":{"type":"string","maxLength":60},"message":{"type":"string","maxLength":200}},"required":["type","number"]},{"type":"object","properties":{"type":{"type":"string","const":"email"},"address":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"label":{"type":"string","maxLength":60},"subject":{"type":"string","maxLength":120}},"required":["type","address"]},{"type":"object","properties":{"type":{"type":"string","const":"map"},"address":{"type":"string","minLength":1,"maxLength":240},"label":{"type":"string","maxLength":60},"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["type","address"]},{"type":"object","properties":{"type":{"type":"string","const":"products"},"items":{"maxItems":24,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"price":{"type":"string","maxLength":20},"description":{"type":"string","maxLength":200},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["name"]}}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"prices"},"title":{"type":"string","maxLength":120},"items":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"price":{"type":"string","minLength":1,"maxLength":20},"note":{"type":"string","maxLength":120}},"required":["name","price"]}}},"required":["type","items"]},{"type":"object","properties":{"type":{"type":"string","const":"coupon"},"title":{"type":"string","minLength":1,"maxLength":120},"code":{"type":"string","pattern":"^[A-Za-z0-9-]{2,40}$"},"terms":{"type":"string","maxLength":300},"expiresOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A real calendar date, YYYY-MM-DD.","format":"date"}},"required":["type","title","code"]},{"type":"object","properties":{"type":{"type":"string","const":"reviews"},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"label":{"type":"string","maxLength":60}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"countdown"},"title":{"type":"string","minLength":1,"maxLength":120},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"after":{"type":"string","maxLength":200}},"required":["type","title","at"]}]}}},"required":["title","blocksJson"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"delete":{"operationId":"delete-v1-pages-id-variants-locale","summary":"Remove a language. Visitors who asked for it get the page’s own language at once.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/pages/{id}/locale":{"put":{"operationId":"put-v1-pages-id-locale","summary":"Set the language the page's own blocks are written in — the visitor fallback.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"type":"string","enum":["en","hi","bn","te","mr","ta","ur","gu","kn","ml","or","pa","as","ne","ar","fr","de","es","pt","ru","zh","ja","ko"]}},"required":["locale"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/pages/{id}/submissions":{"get":{"operationId":"get-v1-pages-id-submissions","summary":"One page's form submissions, newest first.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/campaigns":{"post":{"operationId":"post-v1-campaigns","summary":"Create a campaign. Budget is yours to enter — cost per scan is never estimated.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"objective":{"type":"string","maxLength":200},"startDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"budget":{"type":"number","minimum":0,"maximum":1000000000},"currency":{"type":"string","enum":["INR","USD","EUR","GBP","AED","SAR","SGD","AUD","CAD","JPY","NPR","BDT","LKR","AFN","ALL","AMD","AOA","ARS","AWG","AZN","BAM","BBD","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTN","BWP","BYN","BZD","CDF","CHF","CLP","CNY","COP","CRC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","FJD","FKP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","IQD","IRR","ISK","JMD","JOD","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SBD","SCR","SDG","SEK","SHP","SLE","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","UYU","UZS","VED","VES","VND","VUV","WST","XAF","XCD","XCG","XOF","XPF","YER","ZAR","ZMW","ZWG"]},"status":{"type":"string","enum":["draft","active"]},"utmDefaults":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["name"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"get":{"operationId":"get-v1-campaigns","summary":"List campaigns with their scan totals.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/campaigns/{id}":{"patch":{"operationId":"patch-v1-campaigns-id","summary":"Edit a campaign; changed UTM defaults reach its codes' redirects.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"objective":{"type":"string","maxLength":200},"startDate":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]},"endDate":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]},"budget":{"anyOf":[{"type":"number","minimum":0,"maximum":1000000000},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","enum":["INR","USD","EUR","GBP","AED","SAR","SGD","AUD","CAD","JPY","NPR","BDT","LKR","AFN","ALL","AMD","AOA","ARS","AWG","AZN","BAM","BBD","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTN","BWP","BYN","BZD","CDF","CHF","CLP","CNY","COP","CRC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","FJD","FKP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","IQD","IRR","ISK","JMD","JOD","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SBD","SCR","SDG","SEK","SHP","SLE","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","UYU","UZS","VED","VES","VND","VUV","WST","XAF","XCD","XCG","XOF","XPF","YER","ZAR","ZMW","ZWG"]},{"type":"null"}]},"utmDefaults":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"status":{"type":"string","enum":["draft","active","archived"]}}}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"delete":{"operationId":"delete-v1-campaigns-id","summary":"Delete a campaign.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/domains":{"get":{"operationId":"get-v1-domains","summary":"Custom short domains with their DNS state and plan usage.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"post":{"operationId":"post-v1-domains","summary":"Add a custom short domain. Point its CNAME at the edge, then check it. Needs the `domains` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hostname":{"type":"string","minLength":4,"maxLength":253}},"required":["hostname"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/domains/{id}":{"patch":{"operationId":"patch-v1-domains-id","summary":"Set where the domain's root and unknown paths send visitors. Destinations are screened. Needs the `domains` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"delete":{"operationId":"delete-v1-domains-id","summary":"Remove a domain no active code uses. Needs the `domains` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/domains/{id}/check":{"post":{"operationId":"post-v1-domains-id-check","summary":"Look up the DNS now and record what was seen.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/domains/{id}/primary":{"post":{"operationId":"post-v1-domains-id-primary","summary":"Make this domain the primary for new codes. Needs the `domains` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/templates":{"get":{"operationId":"get-v1-templates","summary":"Design and page templates: the global set plus this workspace's saved ones.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"post":{"operationId":"post-v1-templates","summary":"Save a code's design as a workspace template.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fromQrId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":80}},"required":["fromQrId","name"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/templates/{id}":{"delete":{"operationId":"delete-v1-templates-id","summary":"Delete a workspace template. Codes built from it keep their design.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/qr/{id}/apply-template":{"post":{"operationId":"post-v1-qr-id-apply-template","summary":"Copy a template's design onto a code — a starting point, never a live binding.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"templateId":{"type":"string","minLength":1}},"required":["templateId"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/conversions":{"post":{"operationId":"post-v1-conversions","summary":"Report a conversion against a scan, from your own server. `clickId` is the `qcid` parameter we added to the destination URL; keep it with the session and send it when the sale completes. Idempotent on your `externalId`, so a retried webhook books one sale.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clickId":{"type":"string","minLength":8,"maxLength":64},"kind":{"type":"string","enum":["lead","sale"]},"externalId":{"type":"string","minLength":1,"maxLength":128},"valueMinor":{"type":"integer","minimum":0,"maximum":1000000000000},"currency":{"type":"string","minLength":3,"maxLength":3,"pattern":"^[A-Za-z]{3}$"},"adClick":{"type":"object","properties":{"gclid":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,200}$"},"gbraid":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,200}$"},"wbraid":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,200}$"},"liFatId":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,200}$"}},"additionalProperties":false}},"required":["clickId","kind","externalId"],"additionalProperties":false,"description":"A `sale` must carry `valueMinor`, and any `valueMinor` must carry its `currency`. Keys this body does not name are refused, never stored."}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/bulk/suggest-mapping":{"post":{"operationId":"post-v1-bulk-suggest-mapping","summary":"Read a CSV, an XLSX workbook (base64) or a Google Sheet URL and suggest which column is the destination and which the name. Deterministic; `ai: true` adds a model proposal for one credit, cached per file, and is refused to a sandbox key, which spends nothing. Needs the `bulk` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"csv":{"type":"string","minLength":1,"maxLength":100000},"xlsx":{"type":"string","minLength":1,"maxLength":29360128},"sheetUrl":{"type":"string","maxLength":2048,"format":"uri"},"ai":{"type":"boolean"}},"description":"Exactly one of `csv`, `xlsx` or `sheetUrl`."}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/bulk":{"post":{"operationId":"post-v1-bulk","summary":"Submit a bulk job and get its per-row validation report. Nothing is made until you run it. Needs the `bulk` scope and a plan that includes bulk; rows are capped by the plan.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"csv":{"type":"string","minLength":1,"maxLength":20000000},"xlsx":{"type":"string","minLength":1,"maxLength":29360128},"mapping":{"type":"object","properties":{"url":{"type":"integer","minimum":0,"maximum":9007199254740991},"name":{"type":"integer","minimum":0,"maximum":9007199254740991},"symbology":{"type":"integer","minimum":0,"maximum":9007199254740991},"title":{"type":"integer","minimum":0,"maximum":9007199254740991},"tagline":{"type":"integer","minimum":0,"maximum":9007199254740991},"text":{"type":"integer","minimum":0,"maximum":9007199254740991},"phone":{"type":"integer","minimum":0,"maximum":9007199254740991},"whatsapp":{"type":"integer","minimum":0,"maximum":9007199254740991},"firstName":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastName":{"type":"integer","minimum":0,"maximum":9007199254740991},"email":{"type":"integer","minimum":0,"maximum":9007199254740991},"org":{"type":"integer","minimum":0,"maximum":9007199254740991},"jobTitle":{"type":"integer","minimum":0,"maximum":9007199254740991},"frameText":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"frame":{"type":"string","enum":["solid","solid-top","panel","panel-top","solid-rounded","solid-rounded-top","label","card","card-rounded","top-label","ribbon","tooltip","corners","ticket","badge","card-rounded-top","ribbon-top","tooltip-bottom","corners-rounded","label-top","badge-top","ticket-top","card-dashed","card-dotted","card-thick","card-double","sides","rails","tag","banner","banner-top"]},"mode":{"type":"string","enum":["static","dynamic","pages","barcode","vcard"]},"templateKey":{"type":"string","enum":["restaurant-menu","digital-business-card","property-listing","event-page","product-authenticity","link-in-bio","hotel-compendium","feedback-review","cafe-menu","bar-drinks-menu","cloud-kitchen-ordering","table-feedback","todays-specials","catering-enquiry","retail-product","store-details","loyalty-signup","coupon-offer","new-arrivals","size-and-care-guide","returns-and-exchanges","rental-listing","open-house","project-launch","agent-profile","society-notices","conference-agenda","wedding-invitation","workshop-registration","concert-info","speaker-profile","event-feedback","ingredients-and-nutrition","recycling-guide","warranty-registration","product-manual","reorder","room-service-menu","guest-information","spa-and-wellness","local-guide","rate-your-stay","class-resources","admissions-enquiry","school-event","library-catalogue","course-landing","parent-teacher-meeting","clinic-profile","appointment-request","aftercare-instructions","pharmacy-refill","health-camp","doctor-profile","salon-services","gym-membership","service-business","portfolio","company-profile","job-openings"]},"symbology":{"type":"string","minLength":1,"maxLength":40},"widthMm":{"type":"number","minimum":10,"maximum":300},"serial":{"type":"object","properties":{"prefix":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,20}$"},"start":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["prefix","start"]},"proceedWithValid":{"type":"boolean"},"brandKitId":{"type":"string","minLength":1,"maxLength":40},"domainId":{"type":"string","minLength":1,"maxLength":40},"folderId":{"type":"string","minLength":1,"maxLength":40}},"required":["mapping","mode"]}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}},"get":{"operationId":"get-v1-bulk","summary":"List bulk jobs, newest first.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/bulk/{id}/run":{"post":{"operationId":"post-v1-bulk-id-run","summary":"Run a validated job. Answers with its status once the rows are made. Needs the `bulk` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/bulk/{id}/pause":{"post":{"operationId":"post-v1-bulk-id-pause","summary":"Pause a running job. Completed rows are kept. Needs the `bulk` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/bulk/{id}/resume":{"post":{"operationId":"post-v1-bulk-id-resume","summary":"Resume a paused job from where it stopped. Needs the `bulk` scope.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/bulk/{id}":{"get":{"operationId":"get-v1-bulk-id","summary":"One job: its status, its progress and the audit of what it made.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/hooks/me":{"get":{"operationId":"get-v1-hooks-me","summary":"Test a connection: the workspace this key acts for, whether its plan includes integrations, and the events it can subscribe to.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/hooks":{"post":{"operationId":"post-v1-hooks","summary":"Subscribe a target URL to one event (REST hook). Deliveries are the same signed POSTs a webhook gets; answer 410 Gone to unsubscribe. Pro and above.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"targetUrl":{"type":"string","maxLength":2048,"pattern":"^https:\\/\\/"},"url":{"type":"string","maxLength":2048,"pattern":"^https:\\/\\/"},"event":{"type":"string","enum":["qr.created","qr.destination_changed","bulk.completed","form.submitted","conversion.recorded","qr.scanned","qr.deleted","link.created","link.updated","link.deleted","barcode.created","barcode.deleted","domain.verified","domain.failed","qr.transferred"]},"source":{"default":"rest_hook","type":"string","enum":["zapier","make","rest_hook"]}},"required":["event"],"additionalProperties":false,"description":"One of `targetUrl` or `url` is required — the https address deliveries are sent to."}}}},"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/hooks/{id}":{"delete":{"operationId":"delete-v1-hooks-id","summary":"Unsubscribe a REST hook.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}},"/v1/hooks/samples/{event}":{"get":{"operationId":"get-v1-hooks-samples-event","summary":"Recent items in the shape a delivery of this event will have, for a trigger’s setup step. One example marked `sample: true` when the workspace has none yet.","description":"Responses use the envelope { data, error, meta: { requestId } }. Errors carry error.code and error.message.","security":[{"apiKey":[]}],"responses":{"200":{"description":"Success (enveloped)"},"422":{"description":"Validation failed — error.fields names each problem"}}}}}}