{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tender Supplier Fit & Requirements Review",
    "description": "Review procurement lots against your company profile with source quotes, deadline checks, unknowns and optional Anthropic analysis.",
    "version": "1.0",
    "x-build-id": "X5Fip6uwiHOLmaOPU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/prixodik~tender-supplier-fit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-prixodik-tender-supplier-fit",
        "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/prixodik~tender-supplier-fit/runs": {
      "post": {
        "operationId": "runs-sync-prixodik-tender-supplier-fit",
        "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/prixodik~tender-supplier-fit/run-sync": {
      "post": {
        "operationId": "run-sync-prixodik-tender-supplier-fit",
        "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": [
          "companyProfile"
        ],
        "properties": {
          "sourceMode": {
            "title": "Source mode",
            "enum": [
              "ted-search",
              "provided-notices"
            ],
            "type": "string",
            "description": "Read the official TED API or process explicit lots supplied by you. Never fetches arbitrary provided URLs.",
            "default": "ted-search"
          },
          "companyProfile": {
            "title": "Company profile",
            "type": "object",
            "description": "Name, services, eight-digit CPV codes, optional three-letter place-of-performance countries, and facts with unique id and text. Company facts are self-reported, not verified certificates."
          },
          "notices": {
            "title": "Provided notices",
            "type": "array",
            "description": "Array with id, sourceUrl, noticeType, and explicit lots. Each lot has id, titleOriginal, cpvCodes, countryCodes, deadlineDateOriginal, deadlineTimeOriginal and requirements with id/textOriginal. Used only in provided-notices mode.",
            "default": []
          },
          "noticeIds": {
            "title": "TED publication numbers",
            "type": "array",
            "description": "Optional exact publication numbers, such as 675040-2026. Replaces date and category search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "Search CPV codes",
            "type": "array",
            "description": "Eight-digit exact categories used to discover TED notices. Separate from profile relevance codes.",
            "default": [
              "35120000",
              "32323500"
            ],
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD. Empty uses the last thirty days.",
            "default": ""
          },
          "maxNotices": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum source notices examined; one notice may contain several lots.",
            "default": 10
          },
          "pageSize": {
            "title": "Page size",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "TED notices per request.",
            "default": 10
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Bounded source search pages.",
            "default": 2
          },
          "maxLots": {
            "title": "Maximum lots",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum assessed lot records, including exclusions and unknown cases.",
            "default": 30
          },
          "maxXmlDocuments": {
            "title": "Maximum XML downloads",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Bounded official XML downloads. Missing XML produces an unverified-scope record, not a positive eligibility decision.",
            "default": 5
          },
          "mode": {
            "title": "Output mode",
            "enum": [
              "snapshot",
              "changes"
            ],
            "type": "string",
            "description": "Snapshot or new/changed results only. Shared state must not be used by overlapping runs.",
            "default": "snapshot"
          },
          "stateStoreId": {
            "title": "Dedicated state store",
            "type": "string",
            "description": "Required for changes mode. One workflow per store, serialized runs only. Failed or incomplete reviews do not advance the baseline.",
            "default": ""
          },
          "analysisMode": {
            "title": "Analysis mode",
            "enum": [
              "rules",
              "anthropic"
            ],
            "type": "string",
            "description": "Rules extract source conditions and relevance. Anthropic optionally compares multilingual requirements with supplied company facts.",
            "default": "rules"
          },
          "anthropicApiKey": {
            "title": "Anthropic API key",
            "type": "string",
            "description": "Your own key, encrypted by Apify. External Anthropic charges are paid directly by you and are separate from Actor charges."
          },
          "anthropicModel": {
            "title": "Anthropic model",
            "type": "string",
            "description": "Your model must support JSON schema structured outputs.",
            "default": "claude-sonnet-5-5"
          },
          "maxAiLots": {
            "title": "Maximum AI calls",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "At most one call per reviewed lot; up to ten source conditions and 2500 characters per condition per call.",
            "default": 3
          },
          "maxAiBudgetUsd": {
            "title": "AI cost estimate limit (USD)",
            "minimum": 0.00001,
            "maximum": 100,
            "type": "number",
            "description": "Pre-request estimate using your configured token prices. Unknown usage reserves the full estimated allowance. This is not an Anthropic account spending cap.",
            "default": 0.25
          },
          "inputUsdPerMillion": {
            "title": "Input price per million tokens",
            "minimum": 0.00001,
            "maximum": 100,
            "type": "number",
            "description": "Set your actual Anthropic input-token price; used only for estimated budget control.",
            "default": 2
          },
          "outputUsdPerMillion": {
            "title": "Output price per million tokens",
            "minimum": 0.00001,
            "maximum": 100,
            "type": "number",
            "description": "Set your actual Anthropic output-token price; used only for estimated budget control.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}