{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/qrx/main/json-schema/qrx-get-v1-codes-id-response-schema.json",
  "title": "GetV1CodesIdResponse",
  "x-generated": "2026-10-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/qrx-openapi-generated.yml#/components/schemas/GetV1CodesIdResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The code’s id."
    },
    "object": {
      "type": "string",
      "description": "Always \"code\"."
    },
    "status": {
      "type": "string",
      "description": "Processing status."
    },
    "type": {
      "type": "string",
      "description": "Code type (url or wifi)."
    },
    "prompt": {
      "type": "string",
      "description": "Prompt text."
    },
    "style": {
      "type": "string",
      "description": "Style id if chosen."
    },
    "destination": {
      "type": "string",
      "description": "Destination URL for link codes."
    },
    "wifi": {
      "type": "object",
      "description": "Wi‑Fi network details for wifi codes."
    },
    "shortUrl": {
      "type": "string",
      "description": "Short link URL."
    },
    "imageUrl": {
      "type": "string",
      "description": "URL of the finished image."
    },
    "pageUrl": {
      "type": "string",
      "description": "URL of the code’s page in the app."
    },
    "error": {
      "type": "object",
      "description": "Error details if the code failed."
    },
    "createdAt": {
      "type": "string",
      "description": "Creation timestamp."
    },
    "completedAt": {
      "type": "string",
      "description": "Completion timestamp."
    }
  }
}