{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Certificate & Diploma PDF Generator",
    "description": "Turn a list of names (Google Sheet, CSV or JSON) into print-ready PDF certificates and diplomas. 3 designs or your own HTML, QR verification codes, ZIP and merged PDF output. Full Unicode: Latin, diacritics, Cyrillic.",
    "version": "1.0",
    "x-build-id": "cVZlwMe1Ku1ImMR0c"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/egra_van~bulk-certificate-pdf-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-egra_van-bulk-certificate-pdf-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/egra_van~bulk-certificate-pdf-generator/runs": {
      "post": {
        "operationId": "runs-sync-egra_van-bulk-certificate-pdf-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/egra_van~bulk-certificate-pdf-generator/run-sync": {
      "post": {
        "operationId": "run-sync-egra_van-bulk-certificate-pdf-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",
        "properties": {
          "csvUrl": {
            "title": "Google Sheet or CSV link",
            "type": "string",
            "description": "Link to a Google Sheet (sharing: 'Anyone with the link can view') or to a CSV file. The first row must contain column names, e.g. name, course, date."
          },
          "csvText": {
            "title": "…or paste CSV",
            "type": "string",
            "description": "Paste rows directly. First row = column names."
          },
          "records": {
            "title": "…or JSON records",
            "type": "array",
            "description": "Array of objects, e.g. [{\"name\": \"Anna\", \"course\": \"Robotics\"}]. Used before CSV if both are given."
          },
          "datasetId": {
            "title": "…or Apify dataset ID",
            "type": "string",
            "description": "Use items from an existing Apify dataset (e.g. output of another Actor)."
          },
          "nameField": {
            "title": "Name column",
            "type": "string",
            "description": "Column that holds the person's name. Rows where it is empty are skipped.",
            "default": "name"
          },
          "template": {
            "title": "Design",
            "enum": [
              "certificate-classic",
              "certificate-modern",
              "diploma-kids",
              "custom"
            ],
            "type": "string",
            "description": "Design.",
            "default": "certificate-classic"
          },
          "title": {
            "title": "Title",
            "type": "string",
            "description": "Supports {{column}} placeholders.",
            "default": "Certificate"
          },
          "subtitle": {
            "title": "Subtitle",
            "type": "string",
            "description": "Subtitle.",
            "default": "of completion"
          },
          "body": {
            "title": "Main text",
            "type": "string",
            "description": "Use {{column}} to insert any column from your list, e.g. {{course}}, {{hours}}, {{grade}}.",
            "default": "This certificate is awarded for successfully completing {{course}}."
          },
          "date": {
            "title": "Date line",
            "type": "string",
            "description": "Fixed text or {{date}} to take it from your list."
          },
          "issuer": {
            "title": "Organization",
            "type": "string",
            "description": "Organization."
          },
          "logoUrl": {
            "title": "Logo URL",
            "type": "string",
            "description": "Public link to a PNG/JPG/SVG logo."
          },
          "accentColor": {
            "title": "Accent color",
            "type": "string",
            "description": "Hex color, e.g. #1f4e8c.",
            "default": "#1f4e8c"
          },
          "signature1Name": {
            "title": "Signature 1 — name",
            "type": "string",
            "description": "Signature 1 — name."
          },
          "signature1Title": {
            "title": "Signature 1 — role",
            "type": "string",
            "description": "Signature 1 — role."
          },
          "signature2Name": {
            "title": "Signature 2 — name",
            "type": "string",
            "description": "Signature 2 — name."
          },
          "signature2Title": {
            "title": "Signature 2 — role",
            "type": "string",
            "description": "Signature 2 — role."
          },
          "pageSize": {
            "title": "Paper size",
            "enum": [
              "A4",
              "Letter"
            ],
            "type": "string",
            "description": "Paper size.",
            "default": "A4"
          },
          "orientation": {
            "title": "Orientation",
            "enum": [
              "landscape",
              "portrait"
            ],
            "type": "string",
            "description": "Orientation.",
            "default": "landscape"
          },
          "addQrCode": {
            "title": "Add QR verification code",
            "type": "boolean",
            "description": "Adds a QR code and certificate ID in the corner.",
            "default": false
          },
          "verifyUrlTemplate": {
            "title": "QR link",
            "type": "string",
            "description": "Where the QR code points, e.g. https://yourschool.com/verify?id={{certificateId}}"
          },
          "certificateIdPrefix": {
            "title": "Certificate ID prefix",
            "type": "string",
            "description": "IDs become PREFIX0001, PREFIX0002… A 'certificateId' column in your list overrides this."
          },
          "fileNameTemplate": {
            "title": "File name",
            "type": "string",
            "description": "Supports {{column}} placeholders.",
            "default": "{{name}}"
          },
          "outputZip": {
            "title": "Create ZIP of all PDFs",
            "type": "boolean",
            "description": "Create ZIP of all PDFs.",
            "default": true
          },
          "mergeIntoOnePdf": {
            "title": "Also create one merged PDF (for printing)",
            "type": "boolean",
            "description": "Also create one merged PDF (for printing).",
            "default": false
          },
          "maxDocuments": {
            "title": "Max documents",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Max documents.",
            "default": 1000
          },
          "customHtml": {
            "title": "Custom HTML (design = Custom)",
            "type": "string",
            "description": "Your own page HTML with {{column}} placeholders. {{qrDataUrl}} gives the QR image. Wrap content in <div class=\"page\">…</div>."
          },
          "customCss": {
            "title": "Custom CSS",
            "type": "string",
            "description": "Extra CSS. Fonts available: Montserrat, Playfair Display, Great Vibes, Lora."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}