{
  "openapi": "3.0.1",
  "info": {
    "title": "Labeloo Label PDF Renderer",
    "description": "Generate print-ready Avery 5160-compatible PDF sheets from address, name, email, and custom label data.",
    "version": "1.2",
    "x-build-id": "eOe2Y68dSprGwmtSf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/monolithdread~labeloo-label-renderer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-monolithdread-labeloo-label-renderer",
        "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/monolithdread~labeloo-label-renderer/runs": {
      "post": {
        "operationId": "runs-sync-monolithdread-labeloo-label-renderer",
        "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/monolithdread~labeloo-label-renderer/run-sync": {
      "post": {
        "operationId": "run-sync-monolithdread-labeloo-label-renderer",
        "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": [
          "labels"
        ],
        "properties": {
          "template": {
            "title": "Label stock",
            "enum": [
              "avery-5160-30",
              "avery-5161-20",
              "avery-5162-14",
              "avery-5163-10",
              "avery-5164-6",
              "avery-5167-80",
              "avery-5195-60",
              "avery-5168-4",
              "avery-5126-2",
              "avery-5165-1",
              "avery-5395-8",
              "avery-5390-8",
              "avery-5392-6"
            ],
            "type": "string",
            "description": "Choose the physical sheet layout used by the generated PDF.",
            "default": "avery-5160-30"
          },
          "labels": {
            "title": "Labels",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "Each item can be an address, name, email, or custom label. Use the type field to select its layout.",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "title": "Label type",
                  "description": "Choose the fields and layout used for this label.",
                  "type": "string",
                  "enum": [
                    "address",
                    "name",
                    "email",
                    "custom"
                  ]
                },
                "name": {
                  "title": "Name",
                  "description": "Recipient, person, or organization name.",
                  "type": "string"
                },
                "subtitle": {
                  "title": "Subtitle",
                  "description": "Role, team, department, or organization.",
                  "type": "string"
                },
                "email": {
                  "title": "Email address",
                  "description": "Email shown on an email label.",
                  "type": "string"
                },
                "customText": {
                  "title": "Custom text",
                  "description": "Up to five newline-separated lines.",
                  "type": "string"
                },
                "address1": {
                  "title": "Address line 1",
                  "description": "Street or delivery address.",
                  "type": "string"
                },
                "address2": {
                  "title": "Address line 2",
                  "description": "Suite, unit, or secondary address.",
                  "type": "string"
                },
                "city": {
                  "title": "City",
                  "description": "Destination city.",
                  "type": "string"
                },
                "state": {
                  "title": "State or region",
                  "description": "State, province, or region.",
                  "type": "string"
                },
                "postal": {
                  "title": "Postal code",
                  "description": "ZIP or postal code.",
                  "type": "string"
                },
                "country": {
                  "title": "Country",
                  "description": "Destination country when needed.",
                  "type": "string"
                },
                "align": {
                  "title": "Alignment",
                  "description": "Align the printed label text left or center.",
                  "type": "string",
                  "enum": [
                    "left",
                    "center"
                  ]
                },
                "fontSize": {
                  "title": "Font size",
                  "description": "Starting font size in points.",
                  "type": "number",
                  "minimum": 7,
                  "maximum": 14
                },
                "lineHeight": {
                  "title": "Line height",
                  "description": "Spacing multiplier between lines.",
                  "type": "number",
                  "minimum": 1,
                  "maximum": 1.6
                }
              }
            },
            "default": [
              {
                "type": "address",
                "name": "Alex Rivera",
                "address1": "123 Splash Lane",
                "city": "Fort Worth",
                "state": "TX",
                "postal": "76102"
              }
            ]
          },
          "startSlot": {
            "title": "Start at label position",
            "minimum": 1,
            "maximum": 80,
            "type": "integer",
            "description": "Skip used labels on the first sheet. Position 1 starts at the top-left label.",
            "default": 1
          },
          "proofGrid": {
            "title": "Show proof grid",
            "type": "boolean",
            "description": "Draw label boundaries for a plain-paper alignment test.",
            "default": false
          },
          "xOffsetInches": {
            "title": "Horizontal printer offset",
            "minimum": -0.25,
            "maximum": 0.25,
            "type": "number",
            "description": "Fine-tune horizontal placement in inches.",
            "default": 0
          },
          "yOffsetInches": {
            "title": "Vertical printer offset",
            "minimum": -0.25,
            "maximum": 0.25,
            "type": "number",
            "description": "Fine-tune vertical placement in inches.",
            "default": 0
          },
          "filename": {
            "title": "PDF filename",
            "type": "string",
            "description": "Name used for the downloadable PDF.",
            "default": "labeloo-labels.pdf"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}