{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tender Bid/No-Bid Analyzer",
    "description": "Analyze EU tender PDFs against your company profile. Get an evidence-backed BID, REVIEW, or NO_BID recommendation, fit score, mandatory requirements, risks, deadlines, missing capabilities, clarification questions, and a compliance matrix. Supports URL, text, and Base64 PDF input.",
    "version": "0.0",
    "x-build-id": "usTYXZAv8w1RYpKsK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/highbrow_qualification_z7w~eu-tender-bid-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-highbrow_qualification_z7w-eu-tender-bid-analyzer",
        "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/highbrow_qualification_z7w~eu-tender-bid-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-highbrow_qualification_z7w-eu-tender-bid-analyzer",
        "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/highbrow_qualification_z7w~eu-tender-bid-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-highbrow_qualification_z7w-eu-tender-bid-analyzer",
        "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": [
          "authorizedToProcess"
        ],
        "properties": {
          "mode": {
            "title": "Processing mode",
            "enum": [
              "extract",
              "analyze"
            ],
            "type": "string",
            "description": "Extract returns document text and metadata without AI. Analyze performs a Bid/No-Bid assessment using AI.",
            "default": "analyze"
          },
          "documentUrl": {
            "title": "PDF URL",
            "type": "string",
            "description": "Direct HTTPS URL to an authorized PDF. Do not provide this together with document text or Base64."
          },
          "documentText": {
            "title": "Document text",
            "type": "string",
            "description": "Tender text already extracted by the caller. Do not provide this together with a URL or Base64."
          },
          "documentBase64": {
            "title": "Base64 PDF",
            "type": "string",
            "description": "Base64-encoded PDF for small documents only."
          },
          "fileName": {
            "title": "File name",
            "type": "string",
            "description": "Optional display name for text input; required for Base64 input."
          },
          "companyProfile": {
            "title": "Company profile",
            "required": [
              "name",
              "capabilities"
            ],
            "type": "object",
            "description": "Facts used to compare the company with tender requirements. Required in Analyze mode only.",
            "properties": {
              "name": {
                "title": "Company name",
                "description": "Legal or trading name of the bidding company.",
                "type": "string"
              },
              "countries": {
                "title": "Countries",
                "description": "Confirmed countries where the company can perform the contract. Missing entries are treated as unknown, not unsupported.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "legalEstablishmentCountry": {
                "title": "Legal establishment country",
                "description": "Country where the bidding legal entity is registered. This is separate from countries where the company can perform services.",
                "type": "string"
              },
              "executiveManagementCountry": {
                "title": "Executive management country",
                "description": "Country where the bidding entity's executive management is located, when this fact is confirmed.",
                "type": "string"
              },
              "capabilities": {
                "title": "Capabilities",
                "description": "Confirmed products, services, and technical capabilities relevant to the tender.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "industries": {
                "title": "Industries",
                "description": "Confirmed industries and business domains in which the company has experience. Missing entries are treated as unknown.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "certifications": {
                "title": "Certifications",
                "description": "Confirmed current certifications and formal qualifications. An empty list is treated as missing evidence, not proof that no certifications exist.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "languages": {
                "title": "Languages",
                "description": "Languages supported by the delivery and bid teams.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "yearsInBusiness": {
                "title": "Years in business",
                "description": "Number of full years the company has operated.",
                "type": "integer",
                "minimum": 0
              },
              "employeeCount": {
                "title": "Employee count",
                "description": "Approximate total employee count. This does not by itself prove that a particular project team is available.",
                "type": "integer",
                "minimum": 0
              },
              "relevantExperienceYears": {
                "title": "Relevant experience years",
                "description": "Confirmed years of experience delivering services relevant to this tender.",
                "type": "integer",
                "minimum": 0
              },
              "availableProjectTeamSize": {
                "title": "Available project team size",
                "description": "Confirmed number of specialists available for this specific contract.",
                "type": "integer",
                "minimum": 0
              },
              "annualRevenue": {
                "title": "Annual revenue",
                "description": "Latest annual revenue amount in the profile's working currency.",
                "type": "number",
                "minimum": 0
              },
              "referenceProjects": {
                "title": "Reference projects",
                "description": "Confirmed relevant delivered projects, customers, values, dates, and outcomes. The list is evidence supplied for this analysis, not necessarily the company's complete project history.",
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "confirmedLimitations": {
                "title": "Confirmed limitations",
                "description": "Explicitly confirmed gaps, exclusions, unavailable qualifications, or constraints. Only facts stated here should be treated as proven non-compliance.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "minimumContractValue": {
                "title": "Minimum contract value",
                "description": "Smallest contract value the company normally considers viable.",
                "type": "number",
                "minimum": 0
              },
              "maximumContractValue": {
                "title": "Maximum contract value",
                "description": "Largest contract value the company is prepared to deliver.",
                "type": "number",
                "minimum": 0
              }
            }
          },
          "outputLanguage": {
            "title": "Output language",
            "enum": [
              "en",
              "de"
            ],
            "type": "string",
            "description": "Language used for the analysis.",
            "default": "en"
          },
          "includeComplianceMatrix": {
            "title": "Include compliance matrix",
            "type": "boolean",
            "description": "Include a requirement-by-requirement comparison in Analyze mode.",
            "default": true
          },
          "authorizedToProcess": {
            "title": "I am authorized to process this document",
            "type": "boolean",
            "description": "Required. You confirm that you have the necessary rights to submit and analyze the document.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}