{"openapi":"3.1.0","info":{"title":"NimbusNexus · Tracked QR","version":"0.2.31"},"paths":{"/v1/qr-tracked/codes":{"get":{"tags":["qr-tracked","qr-tracked · codes"],"summary":"List Codes","operationId":"list_codes_v1_qr_tracked_codes_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackedCodeListResponse"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]},"post":{"tags":["qr-tracked","qr-tracked · codes"],"summary":"Create","operationId":"create_v1_qr_tracked_codes_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackedCodeCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackedCode"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = quota_exceeded (one more active code would pass the plan's max_active_codes), workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","quota_exceeded","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/codes/{code_id}":{"get":{"tags":["qr-tracked","qr-tracked · codes"],"summary":"Get One","operationId":"get_one_v1_qr_tracked_codes__code_id__get","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackedCode"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]},"patch":{"tags":["qr-tracked","qr-tracked · codes"],"summary":"Update","operationId":"update_v1_qr_tracked_codes__code_id__patch","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackedCodeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackedCode"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = quota_exceeded (one more active code would pass the plan's max_active_codes), workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","quota_exceeded","unauthorized","validation_error","workspace_frozen","workspace_suspended"]},"delete":{"tags":["qr-tracked","qr-tracked · codes"],"summary":"Delete","operationId":"delete_v1_qr_tracked_codes__code_id__delete","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error"]}},"/v1/qr-tracked/codes/{code_id}/revisions":{"get":{"tags":["qr-tracked","qr-tracked · revisions"],"summary":"List Revisions","description":"`GET /codes/{code_id}/revisions` — newest first.","operationId":"list_revisions_v1_qr_tracked_codes__code_id__revisions_get","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationRevisionListResponse"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/codes/{code_id}/routing-rules":{"get":{"tags":["qr-tracked","qr-tracked · routing"],"summary":"List Rules","operationId":"list_rules_v1_qr_tracked_codes__code_id__routing_rules_get","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleListResponse"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]},"post":{"tags":["qr-tracked","qr-tracked · routing"],"summary":"Create Rule","operationId":"create_rule_v1_qr_tracked_codes__code_id__routing_rules_post","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Rule V1 Qr Tracked Codes  Code Id  Routing Rules Post"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/codes/{code_id}/routing-rules/{rule_id}":{"patch":{"tags":["qr-tracked","qr-tracked · routing"],"summary":"Update Rule","operationId":"update_rule_v1_qr_tracked_codes__code_id__routing_rules__rule_id__patch","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Rule V1 Qr Tracked Codes  Code Id  Routing Rules  Rule Id  Patch"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]},"delete":{"tags":["qr-tracked","qr-tracked · routing"],"summary":"Delete Rule","operationId":"delete_rule_v1_qr_tracked_codes__code_id__routing_rules__rule_id__delete","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error"]}},"/v1/qr-tracked/codes/{code_id}/scans":{"get":{"tags":["qr-tracked","qr-tracked · analytics"],"summary":"List Scans","description":"Most-recent scans, within the plan's scan history. Caps at 500 per call — the dashboard's\ntail view fits in 50, batch / API consumers can paginate beyond.","operationId":"list_scans_v1_qr_tracked_codes__code_id__scans_get","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanEventListResponse"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/codes/{code_id}/breakdown":{"get":{"tags":["qr-tracked","qr-tracked · analytics"],"summary":"Code Breakdown","description":"One-shot fetch for the per-code dashboard's analytics block:\nKPI numbers, 30-day daily series, top countries, devices — all within the plan's scan\nhistory.","operationId":"code_breakdown_v1_qr_tracked_codes__code_id__breakdown_get","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreakdownResponse"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/codes/{code_id}/scans/export":{"get":{"tags":["qr-tracked","qr-tracked · analytics"],"summary":"Export Code Scans","description":"This code's scans as a CSV download, within the plan's scan history.","operationId":"export_code_scans_v1_qr_tracked_codes__code_id__scans_export_get","parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","title":"Code Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"The scans as CSV (RFC 4180, UTF-8, header row first), oldest first, streamed. Limited to the plan's scan_history_days, counted in whole UTC days back from today; a canceled workspace exports everything still kept. Scans past the history their plan kept them for are never included. Columns: scanned_at, scan_id, code_id, code_name, code_domain, code_slug, country, device, os, referrer, destination.","content":{"text/csv":{"schema":{"type":"string"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/scans/export":{"get":{"tags":["qr-tracked","qr-tracked · analytics"],"summary":"Export Workspace Scans","description":"Every scan of every code in this workspace as one CSV download, within the plan's scan\nhistory. Deleted codes are not in it: their scans went with them (the FK cascades).","operationId":"export_workspace_scans_v1_qr_tracked_scans_export_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"The scans as CSV (RFC 4180, UTF-8, header row first), oldest first, streamed. Limited to the plan's scan_history_days, counted in whole UTC days back from today; a canceled workspace exports everything still kept. Scans past the history their plan kept them for are never included. Columns: scanned_at, scan_id, code_id, code_name, code_domain, code_slug, country, device, os, referrer, destination.","content":{"text/csv":{"schema":{"type":"string"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/domains":{"get":{"tags":["qr-tracked","qr-tracked · domains"],"summary":"List Domains","operationId":"list_domains_v1_qr_tracked_domains_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainListResponse"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]},"post":{"tags":["qr-tracked","qr-tracked · domains"],"summary":"Add Domain","operationId":"add_domain_v1_qr_tracked_domains_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainOut"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/domains/{domain_id}/verify":{"post":{"tags":["qr-tracked","qr-tracked · domains"],"summary":"Verify Domain","description":"Re-check the CNAME and flip status accordingly.\n\nResolves the customer's hostname's CNAME records via DNS and\nlooks for our redirect target. If found → status=verified;\notherwise we update `last_error` so the dashboard can show\nsomething actionable, and status stays `pending` (it does NOT\nflip to `failed` on a single miss — DNS propagation takes time,\nand we don't want one timing race to lock the customer out).\n\nA scheduled re-check job (Phase 2) handles the long tail.","operationId":"verify_domain_v1_qr_tracked_domains__domain_id__verify_post","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainVerifyResponse"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/domains/{domain_id}":{"delete":{"tags":["qr-tracked","qr-tracked · domains"],"summary":"Delete Domain","description":"Remove a custom domain. Refused with 409 while any code is linked to it.","operationId":"delete_domain_v1_qr_tracked_domains__domain_id__delete","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error"]}},"/v1/qr-tracked/imports":{"post":{"tags":["qr-tracked","qr-tracked · imports"],"summary":"Create Import","operationId":"create_import_v1_qr_tracked_imports_post","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeImportCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeImportOut"}}},"headers":{"Idempotent-Replayed":{"description":"`true` when this 201 answers from an earlier import with the same Idempotency-Key and body. Not CORS-exposed, so only a same-origin page can read it; the body is the same either way.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = not_entitled (the plan does not include bulk_import), quota_exceeded (the file's codes would pass the plan's max_active_codes), workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict: idempotency_key_reused (this key was sent with a different body) or domain_not_verified","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large: the body passed NN_QRD_MAX_IMPORT_BYTES (1,000,000 bytes by default), not the 64 KiB every other route takes. 1,000 rows fit only while they average under about 1 KB of JSON each, so a client measures the serialized body before it sends","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","quota_exceeded","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/imports/{import_id}":{"get":{"tags":["qr-tracked","qr-tracked · imports"],"summary":"Get Import","operationId":"get_import_v1_qr_tracked_imports__import_id__get","parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","title":"Import Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeImportOut"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/webhooks":{"get":{"tags":["qr-tracked","qr-tracked · webhooks"],"summary":"List Webhooks","operationId":"list_webhooks_v1_qr_tracked_webhooks_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointListResponse"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]},"post":{"tags":["qr-tracked","qr-tracked · webhooks"],"summary":"Create Webhook","description":"Register an endpoint; the response shows its signing secret once. Every delivery carries\n`X-Webhook-Signature`: one or more comma-separated `sha256=<hex>` tokens, each the HMAC-SHA256\nof `{X-Webhook-Timestamp}.{raw body}` under one secret. Accept it if any token verifies.","operationId":"create_webhook_v1_qr_tracked_webhooks_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = not_entitled (the plan does not include scan_webhooks), quota_exceeded (the workspace holds max_webhook_endpoints already), workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","quota_exceeded","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/webhooks/{webhook_id}":{"get":{"tags":["qr-tracked","qr-tracked · webhooks"],"summary":"Get Webhook","operationId":"get_webhook_v1_qr_tracked_webhooks__webhook_id__get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointOut"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]},"patch":{"tags":["qr-tracked","qr-tracked · webhooks"],"summary":"Update Webhook","operationId":"update_webhook_v1_qr_tracked_webhooks__webhook_id__patch","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointOut"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]},"delete":{"tags":["qr-tracked","qr-tracked · webhooks"],"summary":"Delete Webhook","operationId":"delete_webhook_v1_qr_tracked_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error"]}},"/v1/qr-tracked/webhooks/{webhook_id}/rotate-secret":{"post":{"tags":["qr-tracked","qr-tracked · webhooks"],"summary":"Rotate Webhook Secret","description":"A new secret, shown once. For 24 hours the old one signs beside it, so\n`X-Webhook-Signature` is `sha256=<new>,sha256=<old>`: split on `,` and accept the request if\nany token verifies with the secret you hold.","operationId":"rotate_webhook_secret_v1_qr_tracked_webhooks__webhook_id__rotate_secret_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/webhooks/{webhook_id}/test":{"post":{"tags":["qr-tracked","qr-tracked · webhooks"],"summary":"Test Webhook","description":"Send a signed `qrd.webhook.test` event now and report how the endpoint answered.","operationId":"test_webhook_v1_qr_tracked_webhooks__webhook_id__test_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestOut"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = not_entitled (the plan does not include scan_webhooks), workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"error.code = rate_limited: more than 10 test sends a minute from this workspace; Retry-After says when to try again","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","rate_limited","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/webhooks/{webhook_id}/deliveries":{"get":{"tags":["qr-tracked","qr-tracked · webhooks"],"summary":"List Webhook Deliveries","description":"Newest first. `cursor` is the previous page's `nextCursor`.","operationId":"list_webhook_deliveries_v1_qr_tracked_webhooks__webhook_id__deliveries_get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["queued","sending","sent","failed","dead"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{1,17}\\.[0-9a-f]{32}$"},{"type":"null"}],"title":"Cursor"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryListResponse"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/webhooks/{webhook_id}/deliveries/redeliver":{"post":{"tags":["qr-tracked","qr-tracked · webhooks"],"summary":"Redeliver Dead Deliveries","description":"Queue every dead delivery made at or after `since` again, at most 10,000, oldest first.","operationId":"redeliver_dead_deliveries_v1_qr_tracked_webhooks__webhook_id__deliveries_redeliver_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRedeliverSince"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRedeliverOut"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = not_entitled (the plan does not include scan_webhooks), workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/qr-tracked/webhooks/{webhook_id}/deliveries/{delivery_id}/redeliver":{"post":{"tags":["qr-tracked","qr-tracked · webhooks"],"summary":"Redeliver Delivery","description":"Queue one dead delivery again, with a fresh attempt budget; 409 unless it is dead.","operationId":"redeliver_delivery_v1_qr_tracked_webhooks__webhook_id__deliveries__delivery_id__redeliver_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryOut"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = not_entitled (the plan does not include scan_webhooks), workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/plan":{"get":{"tags":["plan"],"summary":"Read Plan","description":"The workspace's tracked-QR plan and the ceilings it is held to.","operationId":"read_plan_v1_plan_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOut"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}},"/v1/usage":{"get":{"tags":["plan"],"summary":"Read Usage","description":"This period's scans and the workspace's active codes, each beside its plan ceiling.","operationId":"read_usage_v1_usage_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageOut"}}}},"401":{"description":"error.code = unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"error.code = workspace_suspended (any method but DELETE), workspace_frozen (a write other than DELETE) or not_entitled (an API key on a plan without api_access)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"error.code = forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"error.code = not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"error.code = conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"error.code = payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"error.code = validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"error.code = internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-error-codes":["conflict","forbidden","internal_error","not_entitled","not_found","payload_too_large","unauthorized","validation_error","workspace_frozen","workspace_suspended"]}}},"components":{"schemas":{"AbRule":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","const":"ab","title":"Kind","default":"ab"},"variants":{"items":{"$ref":"#/components/schemas/AbVariant"},"type":"array","title":"Variants"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["id","variants"],"title":"AbRule"},"AbVariant":{"properties":{"destination":{"type":"string","maxLength":2048,"minLength":1,"title":"Destination"},"weight":{"type":"integer","maximum":100,"minimum":0,"title":"Weight"}},"type":"object","required":["destination","weight"],"title":"AbVariant","description":"A variant on the way OUT. Deliberately NOT scheme-checked — see `AbVariantIn`.\n\nThe LENGTH bound is kept, unlike the scheme check, and the asymmetry is deliberate: it was\nalways enforced on input so every stored value already satisfies it, which makes it accurate\ndocumentation of what this endpoint emits. The scheme check is not, because rows written before\nit existed do not satisfy it."},"BreakdownResponse":{"properties":{"countries":{"items":{"$ref":"#/components/schemas/CountryBreakdownRow"},"type":"array","title":"Countries"},"devices":{"items":{"$ref":"#/components/schemas/DeviceBreakdownRow"},"type":"array","title":"Devices"},"daily":{"items":{"type":"integer"},"type":"array","title":"Daily"},"total":{"type":"integer","title":"Total"},"unique":{"type":"integer","title":"Unique"},"last7Days":{"type":"integer","title":"Last7Days"},"today":{"type":"integer","title":"Today"}},"type":"object","required":["countries","devices","daily","total","unique","last7Days","today"],"title":"BreakdownResponse"},"CodeImportCreate":{"properties":{"domain":{"type":"string","maxLength":255,"minLength":1,"title":"Domain"},"errorLevel":{"type":"string","enum":["L","M","Q","H"],"title":"Errorlevel","default":"M"},"rows":{"items":{"$ref":"#/components/schemas/ImportRowIn"},"type":"array","maxItems":1000,"minItems":1,"title":"Rows"}},"type":"object","required":["domain","rows"],"title":"CodeImportCreate","description":"Request body for `POST /imports`: every row becomes an active code on `domain`, or none."},"CodeImportOut":{"properties":{"id":{"type":"string","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"rowCount":{"type":"integer","title":"Rowcount"},"domain":{"type":"string","title":"Domain"},"codes":{"items":{"$ref":"#/components/schemas/ImportedCode"},"type":"array","title":"Codes"}},"type":"object","required":["id","createdAt","rowCount","domain","codes"],"title":"CodeImportOut"},"CountryBreakdownRow":{"properties":{"country":{"type":"string","title":"Country"},"countryCode":{"type":"string","title":"Countrycode"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["country","countryCode","count"],"title":"CountryBreakdownRow"},"CustomDomainCreate":{"properties":{"hostname":{"type":"string","maxLength":255,"minLength":3,"pattern":"^[a-zA-Z0-9.-]+$","title":"Hostname","description":"Fully-qualified hostname, e.g. qr.yourbrand.com"}},"type":"object","required":["hostname"],"title":"CustomDomainCreate"},"CustomDomainListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CustomDomainOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"CustomDomainListResponse"},"CustomDomainOut":{"properties":{"id":{"type":"string","title":"Id"},"hostname":{"type":"string","title":"Hostname"},"status":{"type":"string","enum":["pending","verified","failed"],"title":"Status"},"addedAt":{"type":"string","format":"date-time","title":"Addedat"},"verifiedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verifiedat"},"codesCount":{"type":"integer","title":"Codescount","default":0},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lasterror"}},"type":"object","required":["id","hostname","status","addedAt","verifiedAt"],"title":"CustomDomainOut"},"DestinationRevisionListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DestinationRevisionOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"DestinationRevisionListResponse"},"DestinationRevisionOut":{"properties":{"id":{"type":"string","title":"Id"},"changedAt":{"type":"string","format":"date-time","title":"Changedat"},"fromUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fromurl"},"toUrl":{"type":"string","title":"Tourl"},"changedBy":{"type":"string","title":"Changedby"}},"type":"object","required":["id","changedAt","fromUrl","toUrl","changedBy"],"title":"DestinationRevisionOut"},"DeviceBreakdownRow":{"properties":{"label":{"type":"string","title":"Label"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["label","count"],"title":"DeviceBreakdownRow"},"DomainVerifyResponse":{"properties":{"status":{"type":"string","enum":["pending","verified","failed"],"title":"Status"},"verifiedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verifiedat"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["status"],"title":"DomainVerifyResponse","description":"Returned by `POST /domains/{id}/verify`. The dashboard polls\nthis until status flips to `verified`."},"ErrorDetail":{"description":"The `error` object: what went wrong.","properties":{"code":{"description":"Stable machine-readable reason. Clients branch on this.","title":"Code","type":"string","x-known-values":["bad_request","conflict","error","forbidden","internal","internal_error","invalid_credential","invalid_request","method_not_allowed","not_entitled","not_found","payload_too_large","plan_violation","quota_exceeded","rate_limited","unauthorized","unavailable","unprocessable","unprocessable_event","validation_error","workspace_frozen","workspace_suspended"]},"message":{"description":"Human-readable explanation. Never branch on it.","title":"Message","type":"string"},"details":{"anyOf":[{},{"type":"null"}],"default":null,"description":"Optional structured detail; its shape is fixed per code, not globally.","title":"Details"},"request_id":{"type":"string","description":"The request's X-Request-ID. Quote it to support; never branch on it."},"next_code":{"type":"string","description":"Present only while this error is moving to a different code: the code it will be sent with once the move is complete. When present, branch on this rather than on `code`.","x-known-values":["bad_request","conflict","forbidden","internal_error","invalid_credential","method_not_allowed","not_entitled","not_found","payload_too_large","quota_exceeded","rate_limited","unauthorized","unavailable","unprocessable_event","validation_error","workspace_frozen","workspace_suspended"]}},"required":["code","message"],"title":"ErrorDetail","type":"object"},"ErrorEnvelope":{"description":"The body of every error response: an `error` object that says what went wrong.","properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"required":["error"],"title":"ErrorEnvelope","type":"object"},"GeoRule":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","const":"geo","title":"Kind","default":"geo"},"countries":{"items":{"type":"string"},"type":"array","title":"Countries"},"destination":{"type":"string","title":"Destination"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["id","countries","destination"],"title":"GeoRule"},"ImportRowIn":{"properties":{"destination":{"type":"string","maxLength":2048,"minLength":1,"title":"Destination"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"slug":{"anyOf":[{"type":"string","pattern":"^[a-z0-9-]{1,20}$"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["destination","name"],"title":"ImportRowIn"},"ImportedCode":{"properties":{"row":{"type":"integer","title":"Row"},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"domain":{"type":"string","title":"Domain"},"shortUrl":{"type":"string","title":"Shorturl"},"destination":{"type":"string","title":"Destination"}},"type":"object","required":["row","id","name","slug","domain","shortUrl","destination"],"title":"ImportedCode","description":"`row` is the code's index in the request's `rows`, as a 422's `loc` names it."},"PlanCeilings":{"properties":{"max_active_codes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Active Codes","description":"Codes with status `active` the workspace may hold. null means unlimited."},"monthly_scans":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Scans","description":"Scans per UTC calendar month. A HARD cap on every tier but custom: once a period's scans reach it, the workspace's codes stop redirecting until it upgrades or the period resets. null means unlimited."},"scan_history_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scan History Days","description":"How many UTC days of per-scan history are kept and shown — on the dashboard and in the CSV export — before each scan's detail is deleted. Scan counts are kept either way. null means unlimited."},"max_import_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Import Rows","description":"Rows one bulk import may carry. 0 when the plan does not include bulk import: POST /v1/qr-tracked/imports answers 402 not_entitled. null means unlimited."},"api_access":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Api Access","description":"1 when the plan includes API keys, 0 when not: a request made with an Identity-issued API key answers 402 not_entitled (feature api_access)."},"max_webhook_endpoints":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Webhook Endpoints","description":"Scan webhook endpoints the workspace may hold. 0 when the plan does not include scan webhooks: POST /v1/qr-tracked/webhooks answers 402 not_entitled. null means unlimited."}},"type":"object","required":["max_active_codes","monthly_scans","scan_history_days","max_import_rows","api_access","max_webhook_endpoints"],"title":"PlanCeilings","description":"One tier's ceilings — qrd/plans.py's `Ceilings`, field for field (a test pins that)."},"PlanOut":{"properties":{"product":{"type":"string","title":"Product","description":"This service's plan-catalog key: always `qrd`."},"plan":{"type":"string","title":"Plan","description":"The tier this workspace is on; empty when it has no plan."},"plan_status":{"type":"string","title":"Plan Status","description":"The subscription status last applied, lower-cased; empty when never told."},"ceilings":{"$ref":"#/components/schemas/PlanCeilings"}},"type":"object","required":["product","plan","plan_status","ceilings"],"title":"PlanOut"},"RoutingRuleCreate":{"properties":{"kind":{"type":"string","enum":["geo","ab","scheduled"],"title":"Kind"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"enabled":{"type":"boolean","title":"Enabled","default":true},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"}},"type":"object","required":["kind","data"],"title":"RoutingRuleCreate","description":"Discriminated on `kind`. The matching `data` shape is validated\nin the service layer because Pydantic v2 doesn't naturally express\n\"the shape of `data` depends on `kind`\" without extra acrobatics."},"RoutingRuleListResponse":{"properties":{"items":{"items":{"oneOf":[{"$ref":"#/components/schemas/GeoRule"},{"$ref":"#/components/schemas/AbRule"},{"$ref":"#/components/schemas/ScheduledRule"}],"discriminator":{"propertyName":"kind","mapping":{"ab":"#/components/schemas/AbRule","geo":"#/components/schemas/GeoRule","scheduled":"#/components/schemas/ScheduledRule"}}},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"RoutingRuleListResponse"},"RoutingRuleUpdate":{"properties":{"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"}},"type":"object","title":"RoutingRuleUpdate"},"ScanEventListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ScanEventOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"ScanEventListResponse"},"ScanEventOut":{"properties":{"id":{"type":"string","title":"Id"},"at":{"type":"string","format":"date-time","title":"At"},"country":{"type":"string","title":"Country"},"device":{"type":"string","title":"Device"},"os":{"type":"string","title":"Os"},"referrer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer"}},"type":"object","required":["id","at","country","device","os"],"title":"ScanEventOut"},"ScheduledRule":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","const":"scheduled","title":"Kind","default":"scheduled"},"startsAt":{"type":"string","format":"date-time","title":"Startsat"},"endsAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Endsat"},"destination":{"type":"string","title":"Destination"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["id","startsAt","destination"],"title":"ScheduledRule"},"TrackedCode":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"destination":{"type":"string","maxLength":2048,"minLength":1,"title":"Destination"},"errorLevel":{"type":"string","enum":["L","M","Q","H"],"title":"Errorlevel","default":"M"},"style":{"type":"string","enum":["square","rounded","smooth","dots"],"title":"Style","default":"square"},"eyeShape":{"type":"string","enum":["square","rounded","circle","leaf"],"title":"Eyeshape","default":"square"},"frameShape":{"type":"string","enum":["square","round"],"title":"Frameshape","default":"square"},"foreground":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","title":"Foreground","default":"#0F172A"},"background":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","title":"Background","default":"#FFFFFF"},"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"domain":{"type":"string","title":"Domain"},"shortUrl":{"type":"string","title":"Shorturl"},"status":{"type":"string","enum":["active","paused","archived"],"title":"Status"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"stats":{"$ref":"#/components/schemas/TrackedCodeStats"}},"type":"object","required":["name","destination","id","slug","domain","shortUrl","status","createdAt","updatedAt","stats"],"title":"TrackedCode","description":"Full response shape for a single code."},"TrackedCodeCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"destination":{"type":"string","maxLength":2048,"minLength":1,"title":"Destination"},"errorLevel":{"type":"string","enum":["L","M","Q","H"],"title":"Errorlevel","default":"M"},"style":{"type":"string","enum":["square","rounded","smooth","dots"],"title":"Style","default":"square"},"eyeShape":{"type":"string","enum":["square","rounded","circle","leaf"],"title":"Eyeshape","default":"square"},"frameShape":{"type":"string","enum":["square","round"],"title":"Frameshape","default":"square"},"foreground":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","title":"Foreground","default":"#0F172A"},"background":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$","title":"Background","default":"#FFFFFF"},"domain":{"type":"string","maxLength":255,"minLength":1,"title":"Domain"},"slug":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9-]{1,64}$"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["name","destination","domain"],"title":"TrackedCodeCreate","description":"Request body for `POST /codes`. `domain` is required; the slug\nis auto-minted unless `slug` is supplied."},"TrackedCodeListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TrackedCode"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"TrackedCodeListResponse"},"TrackedCodeStats":{"properties":{"totalScans":{"type":"integer","title":"Totalscans","default":0},"uniqueScans":{"type":"integer","title":"Uniquescans","default":0},"last7Days":{"type":"integer","title":"Last7Days","default":0},"today":{"type":"integer","title":"Today","default":0},"daily":{"items":{"type":"integer"},"type":"array","title":"Daily"}},"type":"object","title":"TrackedCodeStats","description":"Aggregated counts surfaced on the codes list + per-code dashboard.\nFilled in by the analytics module — empty list / zeros when there\nare no scans yet. Every count is within the plan's scan history, so\n`totalScans` is the retained history's total, not all-time."},"TrackedCodeUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"destination":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"title":"Destination"},"errorLevel":{"anyOf":[{"type":"string","enum":["L","M","Q","H"]},{"type":"null"}],"title":"Errorlevel"},"style":{"anyOf":[{"type":"string","enum":["square","rounded","smooth","dots"]},{"type":"null"}],"title":"Style"},"eyeShape":{"anyOf":[{"type":"string","enum":["square","rounded","circle","leaf"]},{"type":"null"}],"title":"Eyeshape"},"frameShape":{"anyOf":[{"type":"string","enum":["square","round"]},{"type":"null"}],"title":"Frameshape"},"foreground":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$"},{"type":"null"}],"title":"Foreground"},"background":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$"},{"type":"null"}],"title":"Background"},"status":{"anyOf":[{"type":"string","enum":["active","paused","archived"]},{"type":"null"}],"title":"Status"}},"type":"object","title":"TrackedCodeUpdate","description":"Request body for `PATCH /codes/:id`. Every field optional —\nonly declared fields are mutated. Destination changes auto-write\na revision row."},"UsageOut":{"properties":{"period":{"type":"string","title":"Period","description":"The current UTC calendar month, as its first day YYYY-MM-01."},"period_start":{"type":"string","format":"date-time","title":"Period Start","description":"The period's first instant (UTC), inclusive."},"period_end":{"type":"string","format":"date-time","title":"Period End","description":"The next period's first instant (UTC), exclusive: when the scan count resets."},"scans_used":{"type":"integer","title":"Scans Used","description":"Scans counted against this workspace this period."},"monthly_scans":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Scans","description":"The plan's monthly scans. null means unlimited."},"scan_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scan Cap","description":"The scan count at which this workspace's codes stop redirecting this period, scans bought with credit included. 0 when its subscription exists and is not entitled (paused, incomplete, unpaid): no scan is served. null when no scan cap applies: custom, a workspace never told about a subscription, a stored plan that does not resolve — and a canceled workspace, whose codes are refused on their own (see redirects_blocked)."},"purchased_scans":{"type":"integer","title":"Purchased Scans","description":"Scans bought with credit this period (RFC-0023), already counted in scan_cap. 0 while this service buys no credit.","default":0},"active_codes":{"type":"integer","title":"Active Codes","description":"Codes with status `active` right now."},"max_active_codes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Active Codes","description":"The plan's active-code cap. null means unlimited."},"ceiling_crossed":{"type":"boolean","title":"Ceiling Crossed","description":"Whether a scan this period reached the monthly scans in force WHEN IT WAS SCANNED. Recorded once and never cleared, so it stays true after a mid-period upgrade; redirects_blocked is where the workspace stands now."},"redirects_blocked":{"type":"boolean","title":"Redirects Blocked","description":"Whether scans of this workspace's codes are being refused right now, whatever the reason: it canceled, it is suspended, its scan_cap is 0, or scans_used has reached its scan_cap. A reached cap clears on an upgrade past scans_used, or when the period resets at period_end. Always false for custom and for a workspace never told about a subscription, unless suspended."}},"type":"object","required":["period","period_start","period_end","scans_used","monthly_scans","scan_cap","active_codes","max_active_codes","ceiling_crossed","redirects_blocked"],"title":"UsageOut"},"WebhookDeliveryListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WebhookDeliveryOut"},"type":"array","title":"Items"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextcursor","description":"Pass as `cursor` for the next, older page; null on the last page."}},"type":"object","required":["items","nextCursor"],"title":"WebhookDeliveryListResponse"},"WebhookDeliveryOut":{"properties":{"id":{"type":"string","title":"Id","description":"Sent as X-Webhook-Delivery-Id; the same on every retry."},"eventId":{"type":"string","title":"Eventid"},"eventType":{"type":"string","title":"Eventtype"},"status":{"type":"string","enum":["queued","sending","sent","failed","dead"],"title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"lastStatusCode":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Laststatuscode"},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lasterror"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sentat"},"nextAttemptAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Nextattemptat"},"payload":{"additionalProperties":true,"type":"object","title":"Payload","description":"The event exactly as it is signed and sent."}},"type":"object","required":["id","eventId","eventType","status","attempts","lastStatusCode","lastError","createdAt","updatedAt","sentAt","nextAttemptAt","payload"],"title":"WebhookDeliveryOut"},"WebhookEndpointCreate":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"description":{"type":"string","maxLength":200,"title":"Description","default":""},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["url"],"title":"WebhookEndpointCreate"},"WebhookEndpointListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WebhookEndpointOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"WebhookEndpointListResponse"},"WebhookEndpointOut":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"description":{"type":"string","title":"Description"},"enabled":{"type":"boolean","title":"Enabled"},"status":{"type":"string","enum":["live","disabled","paused_by_plan","auto_disabled"],"title":"Status","description":"disabled: switched off by the workspace. paused_by_plan: over the plan's max_webhook_endpoints, or the plan has no scan webhooks. auto_disabled: 20 deliveries in a row failed; PATCH enabled=true resumes it. live: receives every scan."},"planSuspendedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plansuspendedat"},"breakerTrippedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Breakertrippedat"},"consecutiveFailures":{"type":"integer","title":"Consecutivefailures"},"lastStatusCode":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Laststatuscode"},"lastDeliveryAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastdeliveryat"},"previousSecretExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previoussecretexpiresat","description":"Until then deliveries are signed with the previous secret as well."},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","url","description","enabled","status","planSuspendedAt","breakerTrippedAt","consecutiveFailures","lastStatusCode","lastDeliveryAt","previousSecretExpiresAt","createdAt","updatedAt"],"title":"WebhookEndpointOut"},"WebhookEndpointUpdate":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"title":"Url"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"WebhookEndpointUpdate","description":"`enabled: true` also clears an automatic disable (`breakerTrippedAt`)."},"WebhookEndpointWithSecret":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"description":{"type":"string","title":"Description"},"enabled":{"type":"boolean","title":"Enabled"},"status":{"type":"string","enum":["live","disabled","paused_by_plan","auto_disabled"],"title":"Status","description":"disabled: switched off by the workspace. paused_by_plan: over the plan's max_webhook_endpoints, or the plan has no scan webhooks. auto_disabled: 20 deliveries in a row failed; PATCH enabled=true resumes it. live: receives every scan."},"planSuspendedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plansuspendedat"},"breakerTrippedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Breakertrippedat"},"consecutiveFailures":{"type":"integer","title":"Consecutivefailures"},"lastStatusCode":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Laststatuscode"},"lastDeliveryAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastdeliveryat"},"previousSecretExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previoussecretexpiresat","description":"Until then deliveries are signed with the previous secret as well."},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"secret":{"type":"string","title":"Secret","description":"The signing secret. Shown once and never again."}},"type":"object","required":["id","url","description","enabled","status","planSuspendedAt","breakerTrippedAt","consecutiveFailures","lastStatusCode","lastDeliveryAt","previousSecretExpiresAt","createdAt","updatedAt","secret"],"title":"WebhookEndpointWithSecret"},"WebhookRedeliverOut":{"properties":{"requeued":{"type":"integer","title":"Requeued"},"more":{"type":"boolean","title":"More","description":"Dead deliveries since `since` are left; send it again."}},"type":"object","required":["requeued","more"],"title":"WebhookRedeliverOut"},"WebhookRedeliverSince":{"properties":{"since":{"type":"string","format":"date-time","title":"Since"}},"type":"object","required":["since"],"title":"WebhookRedeliverSince"},"WebhookTestOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"statusCode":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Statuscode"},"durationMs":{"type":"integer","title":"Durationms"},"failure":{"anyOf":[{"type":"string","enum":["address_blocked","dns_failed","timeout","connection_failed","http_status"]},{"type":"null"}],"title":"Failure","description":"Why the ping was not answered 2xx. address_blocked: the host resolves to a private or reserved address. dns_failed: the host does not resolve. timeout: no answer in 10 s. connection_failed: TCP or TLS failed. http_status: a non-2xx answer (statusCode); redirects are not followed."}},"type":"object","required":["ok","statusCode","durationMs"],"title":"WebhookTestOut"}}},"x-error-codes":{"aliases":{"internal":{"code":"internal_error","reason":null},"invalid_request":{"code":"validation_error","reason":null},"unprocessable":{"code":"validation_error","reason":null}},"client_only":["bad_response","gateway_error","network_error","timeout"],"codes":{"bad_request":{"audience":"customer","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{},"reasons":{},"replaced_by":null,"status":[400],"umbrella":false},"conflict":{"audience":"customer","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null},"hostname":{"format":"identifier","join":null,"kind":"value","required":false,"values":null},"slug":{"format":"identifier","join":null,"kind":"value","required":false,"values":null}},"reasons":{"delivery_not_dead":{},"domain_has_linked_codes":{},"domain_not_verified":{"domain_status":{"format":null,"join":null,"kind":"selector","required":true,"values":["failed","pending"]}},"hostname_taken":{},"idempotency_key_reused":{},"slug_taken":{}},"replaced_by":null,"status":[409],"umbrella":true},"error":{"audience":"customer","complete":false,"count_param":null,"deprecated":true,"diagnostic_reasons":[],"entry_types":{},"params":{},"reasons":null,"replaced_by":null,"status":[],"umbrella":false},"forbidden":{"audience":"customer","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{"required":{"format":null,"join":null,"kind":"selector","required":false,"values":["admin","member","viewer"]}},"reasons":{"csrf":{},"membership":{},"not_provisioned":{},"operator":{},"product_not_enabled":{},"project":{},"project_confined":{},"role":{},"scope":{}},"replaced_by":null,"status":[403],"umbrella":true},"internal":{"audience":"customer","complete":false,"count_param":null,"deprecated":true,"diagnostic_reasons":[],"entry_types":{},"params":{},"reasons":null,"replaced_by":"internal_error","status":[500],"umbrella":false},"internal_error":{"audience":"customer","complete":true,"count_param":null,"deprecated":false,"diagnostic_reasons":["id_mint_exhausted","slug_mint_exhausted"],"entry_types":{},"params":{},"reasons":{},"replaced_by":null,"status":[500],"umbrella":false},"invalid_credential":{"audience":"customer","complete":true,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{},"reasons":{},"replaced_by":null,"status":[401,403],"umbrella":false},"invalid_request":{"audience":"customer","complete":false,"count_param":null,"deprecated":true,"diagnostic_reasons":[],"entry_types":{"bool_parsing":{},"bool_type":{},"date_parsing":{},"date_type":{},"datetime_from_date_parsing":{},"datetime_parsing":{},"datetime_type":{},"dict_type":{},"enum":{},"extra_forbidden":{},"finite_number":{},"float_parsing":{},"float_type":{},"greater_than":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"greater_than_equal":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"int_from_float":{},"int_parsing":{},"int_parsing_size":{},"int_type":{},"json_invalid":{},"json_type":{},"less_than":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"less_than_equal":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"list_type":{},"literal_error":{},"missing":{},"model_attributes_type":{},"model_type":{},"string_pattern_mismatch":{},"string_too_long":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"string_too_short":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"string_type":{},"string_unicode":{},"too_long":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"too_short":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"url_parsing":{},"url_type":{},"uuid_parsing":{},"uuid_type":{}},"params":{},"reasons":null,"replaced_by":"validation_error","status":[422],"umbrella":false},"method_not_allowed":{"audience":"customer","complete":true,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{},"reasons":{},"replaced_by":null,"status":[405],"umbrella":false},"not_entitled":{"audience":"customer","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{"feature":{"format":null,"join":null,"kind":"selector","required":false,"values":["api_access","bulk_import","scan_webhooks"]}},"reasons":{},"replaced_by":null,"status":[402],"umbrella":false},"not_found":{"audience":"customer","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{"id":{"format":"identifier","join":null,"kind":"value","required":false,"values":null}},"reasons":{"code":{},"delivery":{},"domain":{"hostname":{"format":"identifier","join":null,"kind":"value","required":false,"values":null}},"import":{},"rule":{},"webhook":{}},"replaced_by":null,"status":[404],"umbrella":true},"payload_too_large":{"audience":"customer","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{"limit":{"format":"bytes","join":null,"kind":"value","required":true,"values":null},"size":{"format":"bytes","join":null,"kind":"value","required":false,"values":null}},"reasons":{},"replaced_by":null,"status":[413],"umbrella":false},"plan_violation":{"audience":"customer","complete":false,"count_param":null,"deprecated":true,"diagnostic_reasons":[],"entry_types":{},"params":{},"reasons":null,"replaced_by":null,"status":[402],"umbrella":false},"quota_exceeded":{"audience":"customer","complete":false,"count_param":"limit","deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{"current":{"format":"number","join":null,"kind":"value","required":false,"values":null},"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null},"metric":{"format":null,"join":null,"kind":"selector","required":false,"values":["active_codes","webhook_endpoints"]},"period":{"format":null,"join":null,"kind":"value","required":false,"values":null}},"reasons":{"allocation":{},"period":{"credit":{"format":null,"join":null,"kind":"selector","required":false,"values":["empty","off","pending"]}}},"replaced_by":null,"status":[402],"umbrella":false},"rate_limited":{"audience":"customer","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{"retry_after":{"format":"seconds","join":null,"kind":"value","required":false,"values":null}},"reasons":{},"replaced_by":null,"status":[429],"umbrella":false},"unauthorized":{"audience":"customer","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{},"reasons":{"expired":{},"invalid":{},"missing":{},"no_workspace":{},"revoked":{}},"replaced_by":null,"status":[401],"umbrella":true},"unavailable":{"audience":"customer","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{"retry_after":{"format":"seconds","join":null,"kind":"value","required":false,"values":null}},"reasons":{"ingest_disabled":{},"plan_service":{}},"replaced_by":null,"status":[503],"umbrella":false},"unprocessable":{"audience":"customer","complete":false,"count_param":null,"deprecated":true,"diagnostic_reasons":[],"entry_types":{"bool_parsing":{},"bool_type":{},"date_parsing":{},"date_type":{},"datetime_from_date_parsing":{},"datetime_parsing":{},"datetime_type":{},"dict_type":{},"enum":{},"extra_forbidden":{},"finite_number":{},"float_parsing":{},"float_type":{},"greater_than":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"greater_than_equal":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"int_from_float":{},"int_parsing":{},"int_parsing_size":{},"int_type":{},"json_invalid":{},"json_type":{},"less_than":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"less_than_equal":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"list_type":{},"literal_error":{},"missing":{},"model_attributes_type":{},"model_type":{},"string_pattern_mismatch":{},"string_too_long":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"string_too_short":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"string_type":{},"string_unicode":{},"too_long":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"too_short":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"url_parsing":{},"url_type":{},"uuid_parsing":{},"uuid_type":{}},"params":{},"reasons":null,"replaced_by":"validation_error","status":[422],"umbrella":false},"unprocessable_event":{"audience":"machine","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{},"reasons":{},"replaced_by":null,"status":[422],"umbrella":false},"validation_error":{"audience":"customer","complete":false,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{"bool_parsing":{},"bool_type":{},"date_parsing":{},"date_type":{},"datetime_from_date_parsing":{},"datetime_parsing":{},"datetime_type":{},"dict_type":{},"enum":{},"extra_forbidden":{},"finite_number":{},"float_parsing":{},"float_type":{},"greater_than":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"greater_than_equal":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"int_from_float":{},"int_parsing":{},"int_parsing_size":{},"int_type":{},"json_invalid":{},"json_type":{},"less_than":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"less_than_equal":{"limit":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"list_type":{},"literal_error":{},"missing":{},"model_attributes_type":{},"model_type":{},"qr.ab_weights_sum":{"total":{"format":"number","join":null,"kind":"value","required":true,"values":null}},"qr.destination_blank":{},"qr.destination_host":{},"qr.destination_scheme":{"scheme":{"format":"identifier","join":null,"kind":"value","required":false,"values":null}},"qr.ends_before_starts":{},"qr.import_slug_duplicate":{"slug":{"format":"identifier","join":null,"kind":"value","required":true,"values":null}},"qr.import_slug_taken":{"hostname":{"format":"identifier","join":null,"kind":"value","required":true,"values":null},"slug":{"format":"identifier","join":null,"kind":"value","required":true,"values":null}},"qr.rule_kind_unknown":{"kind":{"format":"identifier","join":null,"kind":"value","required":false,"values":null}},"qr.webhook_url_host":{},"qr.webhook_url_scheme":{"scheme":{"format":"identifier","join":null,"kind":"value","required":false,"values":null}},"string_pattern_mismatch":{},"string_too_long":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"string_too_short":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"string_type":{},"string_unicode":{},"too_long":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"too_short":{"count":{"format":"number","join":null,"kind":"value","required":false,"values":null}},"url_parsing":{},"url_type":{},"uuid_parsing":{},"uuid_type":{}},"params":{},"reasons":{},"replaced_by":null,"status":[422],"umbrella":true},"workspace_frozen":{"audience":"customer","complete":true,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{},"reasons":{},"replaced_by":null,"status":[402],"umbrella":false},"workspace_suspended":{"audience":"customer","complete":true,"count_param":null,"deprecated":false,"diagnostic_reasons":[],"entry_types":{},"params":{},"reasons":{},"replaced_by":null,"status":[402],"umbrella":false}},"status_codes":{"400":"bad_request","401":"unauthorized","403":"forbidden","404":"not_found","405":"method_not_allowed","409":"conflict","413":"payload_too_large","422":"validation_error","429":"rate_limited","500":"internal_error","503":"unavailable"},"version":1},"servers":[{"url":"https://qr.nimbusnexus.net"}]}