{
  "openapi": "3.0.1",
  "info": {
    "title": "RFP & Bid Fit Checker",
    "version": "0.1",
    "x-build-id": "zaKPQ4Txacj41hQCF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/texxupport~rfp-bid-fit-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-texxupport-rfp-bid-fit-checker",
        "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/texxupport~rfp-bid-fit-checker/runs": {
      "post": {
        "operationId": "runs-sync-texxupport-rfp-bid-fit-checker",
        "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/texxupport~rfp-bid-fit-checker/run-sync": {
      "post": {
        "operationId": "run-sync-texxupport-rfp-bid-fit-checker",
        "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": {
          "documentUrls": {
            "title": "Bid document links",
            "type": "array",
            "description": "Direct links to PDF, Word (.docx) or HTML documents, for example the RFP PDF from SAM.gov or a city portal.",
            "items": {
              "type": "string"
            }
          },
          "documentTexts": {
            "title": "Or paste document text",
            "type": "array",
            "description": "One entry per document.",
            "items": {
              "type": "string"
            }
          },
          "capabilities": {
            "title": "Your capabilities",
            "type": "array",
            "description": "Words that describe what you do, for example website, WCAG, hosting, janitorial or HVAC. Used for the fit score.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "Your NAICS codes",
            "type": "array",
            "description": "2 to 6 digits. 5415 matches every code that starts with 5415.",
            "items": {
              "type": "string"
            }
          },
          "certifications": {
            "title": "Your certifications and status",
            "type": "array",
            "description": "For example small business, 8(a), WOSB, HUBZone, SDVOSB, HUB.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Where you work",
            "type": "array",
            "description": "States, counties or cities.",
            "items": {
              "type": "string"
            }
          },
          "minContractValue": {
            "title": "Smallest contract you want (USD, optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Contracts estimated below this value in US dollars score lower for fit. Leave empty for no minimum."
          },
          "maxContractValue": {
            "title": "Largest contract you can take (USD, optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Contracts estimated above this value in US dollars score lower for fit. Leave empty for no maximum."
          },
          "excludeKeywords": {
            "title": "Red-flag words (optional)",
            "type": "array",
            "description": "For example security clearance or bonding.",
            "items": {
              "type": "string"
            }
          },
          "includeRequirements": {
            "title": "List every requirement",
            "type": "boolean",
            "description": "List every requirement found in each document (the must and shall statements).",
            "default": true
          },
          "maxRequirements": {
            "title": "Maximum requirements per document",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Stop after this many requirements for each document.",
            "default": 150
          },
          "saveText": {
            "title": "Save the extracted text",
            "type": "boolean",
            "description": "Stores each document's full text in the key-value store, with a link in the result.",
            "default": false
          },
          "aiSummary": {
            "title": "Add an AI summary",
            "type": "boolean",
            "description": "Summary, scope of work, must-haves, risks, questions to ask and a bid or no-bid view. Uses your own Anthropic API key and is billed by Anthropic.",
            "default": false
          },
          "anthropicApiKey": {
            "title": "Anthropic API key",
            "type": "string",
            "description": "From console.anthropic.com. Stored as a secret and sent only to the Anthropic API."
          },
          "aiModel": {
            "title": "AI model",
            "type": "string",
            "description": "Which Anthropic model writes the optional AI summary. Only used when an AI summary is requested and your own Anthropic API key is supplied.",
            "default": "claude-sonnet-5-5"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}