{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Tender Search & Matching — TenderQualify AI",
    "description": "Search UK public tender notices from Find a Tender using supplier services, exact phrases, aliases and CPV hints. Export source-linked preliminary matches and evidence briefs for human review. Not an eligibility assessment or open-bid confirmation.",
    "version": "0.0",
    "x-build-id": "2vJsQr12eabTJUmEe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tenderqualifyai~tenderqualify-ai/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tenderqualifyai-tenderqualify-ai",
        "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/tenderqualifyai~tenderqualify-ai/runs": {
      "post": {
        "operationId": "runs-sync-tenderqualifyai-tenderqualify-ai",
        "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/tenderqualifyai~tenderqualify-ai/run-sync": {
      "post": {
        "operationId": "run-sync-tenderqualifyai-tenderqualify-ai",
        "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": [
          "profile"
        ],
        "properties": {
          "profile": {
            "title": "Supplier profile",
            "type": "object",
            "description": "Supplier-declared service capabilities. Optional capabilityRules specify explicit aliases and exact CPV codes. Codes only provide hints, not eligibility."
          },
          "triageMode": {
            "title": "Record lookup strategy",
            "enum": [
              "targeted",
              "legacy"
            ],
            "type": "string",
            "description": "Targeted (recommended) checks detailed process records only when a sampled notice has a declared phrase/alias or CPV hint. Missing evidence never proves irrelevance. Legacy preserves v0.9 behavior; older JSON inputs without this field remain legacy.",
            "default": "targeted"
          },
          "updatedFrom": {
            "title": "Updated since (UTC)",
            "type": "string",
            "description": "Optional ISO 8601 timestamp with timezone, for example 2026-11-10T00:00:00Z"
          },
          "updatedTo": {
            "title": "Updated until (UTC)",
            "type": "string",
            "description": "Optional ISO 8601 timestamp with timezone"
          },
          "pageSize": {
            "title": "Results per source page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of notices requested per API page during this run (1–100).",
            "default": 10
          },
          "maxPages": {
            "title": "Maximum source pages",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum number of pages collected from the official notices feed (1–3).",
            "default": 1
          },
          "maxRecords": {
            "title": "Maximum process record lookups",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of procurement records checked in detail (1–50).",
            "default": 2
          },
          "maxResults": {
            "title": "Maximum output rows",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of result rows returned in the dataset (1–50).",
            "default": 10
          },
          "maxReleases": {
            "title": "Maximum releases to analyze (not detailed lookups)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of collected notices retained for analysis (1–500).",
            "default": 10
          },
          "targetOcid": {
            "title": "Selected procurement OCID (optional)",
            "maxLength": 100,
            "type": "string",
            "description": "Only if you want a detailed brief for one OCID in this run. Must begin ocds-h6vhtk-."
          },
          "documentText": {
            "title": "Document excerpt pasted by customer (optional)",
            "maxLength": 12000,
            "type": "string",
            "description": "Optional, UTF-8 pasted text for the selected OCID. Not authenticated; do not paste confidential data. Max 12000 characters."
          },
          "documentUpload": {
            "title": "User-supplied PDF/DOCX/TXT (advanced, optional)",
            "type": "object",
            "description": "Advanced: {\"name\":\"file.pdf\",\"base64\":\"...\"}. At most one 1 MiB document. No remote URLs, credentials or automatic downloads. Requires targetOcid. Input persists in your Apify run storage."
          },
          "portalStatus": {
            "title": "Observed document access status",
            "enum": [
              "NOT_CHECKED",
              "PUBLIC_LISTING_NO_ATTACHMENTS_SEEN",
              "DOCUMENTS_USER_SUPPLIED"
            ],
            "type": "string",
            "description": "Manual observation, not evidence that an attachment requires login.",
            "default": "NOT_CHECKED"
          },
          "portalUrl": {
            "title": "Proactis portal URL (optional)",
            "type": "string",
            "description": "Only the exact supplierlive.proactisp2p.com/Account/Login page is allowed. Never fetched."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}