{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Qr Generator",
    "description": "High Performance Bulk QR Generator",
    "version": "0.0",
    "x-build-id": "7ON3nb8xxMDgp1hip"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yasaslive~bulk-qr-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yasaslive-bulk-qr-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/yasaslive~bulk-qr-generator/runs": {
      "post": {
        "operationId": "runs-sync-yasaslive-bulk-qr-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/yasaslive~bulk-qr-generator/run-sync": {
      "post": {
        "operationId": "run-sync-yasaslive-bulk-qr-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "title": "Data to encode",
            "type": "array",
            "description": "List of items to generate QR codes for. Each item can be a string (converted to text) or an object with a 'type' specific payload.",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "title": "Type",
                  "type": "string",
                  "enum": [
                    "text",
                    "url",
                    "email",
                    "phone",
                    "sms",
                    "wifi",
                    "geo",
                    "vcard",
                    "event",
                    "custom"
                  ],
                  "default": "text",
                  "description": "Type of the QR code data."
                },
                "content": {
                  "title": "Content",
                  "type": "string",
                  "description": "Content for 'text' or 'url' types."
                },
                "email": {
                  "title": "Email Address",
                  "type": "string",
                  "description": "Email address for 'email' or 'vcard' types."
                },
                "subject": {
                  "title": "Subject",
                  "type": "string",
                  "description": "Subject for 'email' type."
                },
                "body": {
                  "title": "Body",
                  "type": "string",
                  "description": "Body for 'email' type."
                },
                "phone": {
                  "title": "Phone Number",
                  "type": "string",
                  "description": "Phone number for 'phone', 'sms', or 'vcard' types."
                },
                "message": {
                  "title": "Message",
                  "type": "string",
                  "description": "Message for 'sms' type."
                },
                "ssid": {
                  "title": "SSID",
                  "type": "string",
                  "description": "SSID for 'wifi' type."
                },
                "password": {
                  "title": "Password",
                  "type": "string",
                  "description": "Password for 'wifi' type."
                },
                "encryption": {
                  "title": "Encryption",
                  "type": "string",
                  "enum": [
                    "WPA",
                    "WEP",
                    "nopass"
                  ],
                  "default": "WPA",
                  "description": "Encryption type for 'wifi' type."
                },
                "lat": {
                  "title": "Latitude",
                  "type": "number",
                  "description": "Latitude for 'geo' type."
                },
                "lng": {
                  "title": "Longitude",
                  "type": "number",
                  "description": "Longitude for 'geo' type."
                },
                "firstName": {
                  "title": "First Name",
                  "type": "string",
                  "description": "First name for 'vcard' type."
                },
                "lastName": {
                  "title": "Last Name",
                  "type": "string",
                  "description": "Last name for 'vcard' type."
                },
                "org": {
                  "title": "Organization",
                  "type": "string",
                  "description": "Organization for 'vcard' type."
                },
                "website": {
                  "title": "Website",
                  "type": "string",
                  "description": "Website URL for 'vcard' type."
                },
                "custom": {
                  "title": "Custom Data",
                  "type": "string",
                  "description": "Raw string data for 'custom' type."
                },
                "filename": {
                  "title": "Filename",
                  "type": "string",
                  "description": "Optional filename for the output image (extension added automatically)."
                }
              }
            }
          },
          "batchSize": {
            "title": "Batch Size (Concurrency)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of QR codes to generate in parallel.",
            "default": 10
          },
          "zipResults": {
            "title": "Zip Results",
            "type": "boolean",
            "description": "If true, all generated QR codes will be zipped into a single archive.",
            "default": true
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "png",
              "svg",
              "utf8"
            ],
            "type": "string",
            "description": "Format of the output image.",
            "default": "png"
          },
          "options": {
            "title": "QR Options",
            "type": "object",
            "description": "Visual configuration for the generated QR codes.",
            "properties": {
              "width": {
                "type": "integer",
                "title": "Width",
                "description": "Width of the QR code in pixels (for PNG).",
                "default": 256
              },
              "margin": {
                "type": "integer",
                "title": "Margin",
                "description": "Margin around the QR code.",
                "default": 4
              },
              "color": {
                "type": "object",
                "title": "Colors",
                "description": "Customizable colors for the QR code.",
                "properties": {
                  "dark": {
                    "type": "string",
                    "title": "Dark Color",
                    "description": "The foreground color of the QR code (hex code).",
                    "default": "#000000",
                    "editor": "textfield"
                  },
                  "light": {
                    "type": "string",
                    "title": "Light Color",
                    "description": "The background color of the QR code (hex code).",
                    "default": "#ffffff",
                    "editor": "textfield"
                  }
                }
              },
              "errorCorrectionLevel": {
                "type": "string",
                "title": "Error Correction Level",
                "description": "Error correction level allows the QR code to be restored even if it is partially damaged.",
                "enum": [
                  "L",
                  "M",
                  "Q",
                  "H"
                ],
                "default": "M"
              }
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}