{
  "openapi": "3.0.1",
  "info": {
    "title": "Favicon & PWA Generator — Icons from Text/Image",
    "description": "Generate favicons and PWA asset packages from uploaded images or text. Output multi-size ICO, PNG icons, SVG vector, and complete manifest.json + icon set.",
    "version": "1.0",
    "x-build-id": "UMnHjiJlQmerDr6WM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/perryay~favicon-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-perryay-favicon-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/perryay~favicon-generator/runs": {
      "post": {
        "operationId": "runs-sync-perryay-favicon-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/perryay~favicon-generator/run-sync": {
      "post": {
        "operationId": "run-sync-perryay-favicon-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "generate-from-image",
              "generate-from-text",
              "generate-pwa",
              "batch-generate"
            ],
            "type": "string",
            "description": "Operation mode for the actor.",
            "default": "generate-from-image"
          },
          "imageData": {
            "title": "Image data (base64)",
            "type": "string",
            "description": "Base64-encoded image data. Used in 'generate-from-image' and 'generate-pwa' modes. Provide this OR imageUrl."
          },
          "imageUrl": {
            "title": "Image URL",
            "type": "string",
            "description": "URL to download the source image from. Alternative to imageData. Used in 'generate-from-image' and 'generate-pwa' modes."
          },
          "text": {
            "title": "Text to render",
            "type": "string",
            "description": "Text or letter to render on the favicon background. Used in 'generate-from-text' mode (and as fallback for batch). First letter is used for SVG generation.",
            "default": "F"
          },
          "backgroundColor": {
            "title": "Background color",
            "type": "string",
            "description": "Hex color for the favicon background (e.g. #333333). Used in 'generate-from-text' and batch modes.",
            "default": "#333333"
          },
          "foregroundColor": {
            "title": "Foreground/text color",
            "type": "string",
            "description": "Hex color for the text (e.g. #FFFFFF). Used in 'generate-from-text' and batch modes.",
            "default": "#FFFFFF"
          },
          "borderRadius": {
            "title": "Border radius (px)",
            "minimum": 0,
            "maximum": 256,
            "type": "integer",
            "description": "Rounded corner radius for favicon edges. 0 = square. Used in image and text modes.",
            "default": 16
          },
          "outputFormats": {
            "title": "Output formats",
            "type": "array",
            "description": "Which favicon formats to generate. PNG produces multiple sizes (16–128px). ICO bundles 16/32/48. SVG is a vector wrapper.",
            "default": [
              "png",
              "ico"
            ],
            "items": {
              "type": "string"
            }
          },
          "filePrefix": {
            "title": "File name prefix",
            "type": "string",
            "description": "Prefix for generated file names. Files will be named like '{prefix}-16x16.png'.",
            "default": "favicon"
          },
          "appName": {
            "title": "PWA — App name",
            "type": "string",
            "description": "Full application name for manifest.json. Used in 'generate-pwa' mode.",
            "default": "My PWA App"
          },
          "shortName": {
            "title": "PWA — Short name",
            "type": "string",
            "description": "Short application name (max 12 chars recommended). Falls back to app name.",
            "default": ""
          },
          "description": {
            "title": "PWA — Description",
            "type": "string",
            "description": "Description for the web app manifest.",
            "default": ""
          },
          "themeColor": {
            "title": "PWA — Theme color",
            "type": "string",
            "description": "Theme color hex for manifest.json and browser UI chrome.",
            "default": "#FFFFFF"
          },
          "display": {
            "title": "PWA — Display mode",
            "enum": [
              "standalone",
              "fullscreen",
              "minimal-ui",
              "browser"
            ],
            "type": "string",
            "description": "Display mode for the PWA manifest.",
            "default": "standalone"
          },
          "scope": {
            "title": "PWA — Scope path",
            "type": "string",
            "description": "Navigation scope for the PWA manifest. Defaults to '/'.",
            "default": "/"
          },
          "startUrl": {
            "title": "PWA — Start URL",
            "type": "string",
            "description": "Start URL for the PWA manifest. Defaults to '/'.",
            "default": "/"
          },
          "batch": {
            "title": "Batch items",
            "type": "array",
            "description": "Array of items for batch generation. Each item can have: text, backgroundColor, foregroundColor, borderRadius, format (png/ico/svg), filePrefix. Also accepts CSV or JSON string."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}