{
  "openapi": "3.0.1",
  "info": {
    "title": "Applicant Authenticity Analyzer",
    "description": "Upload resumes, cover letters, or job application text to detect potential fraud. The actor extracts text from PDF/DOCX/TXT files, evaluates authenticity with OpenAI, and returns a verdict, score, and justification.",
    "version": "0.1",
    "x-build-id": "ZbQue4d5hnXPpVJrD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~applicant-authenticity-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-applicant-authenticity-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/parseforge~applicant-authenticity-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-applicant-authenticity-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/parseforge~applicant-authenticity-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-applicant-authenticity-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",
        "properties": {
          "startUrl": {
            "title": "Job posting URL",
            "type": "string",
            "description": "Public URL to a JSON or CSV feed containing candidate objects. When provided, inline candidate fields are ignored."
          },
          "startUrlOptions": {
            "title": "Start URL options",
            "type": "object",
            "description": "Optional tweaks applied when loading candidates from startUrl.",
            "properties": {
              "format": {
                "title": "Format override",
                "type": "string",
                "editor": "select",
                "enum": [
                  "auto",
                  "json",
                  "csv"
                ],
                "enumTitles": [
                  "Auto detect",
                  "JSON",
                  "CSV"
                ],
                "default": "auto",
                "description": "Force a specific format if auto-detection fails."
              }
            }
          },
          "candidates": {
            "title": "Candidates",
            "type": "array",
            "description": "Inline candidate objects with resume text, URLs, or application data.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "title": "Candidate ID",
                  "description": "Internal identifier for the candidate."
                },
                "fullName": {
                  "type": "string",
                  "title": "Full name",
                  "description": "Candidate full legal name."
                },
                "email": {
                  "type": "string",
                  "title": "Email",
                  "description": "Primary contact email address."
                },
                "phone": {
                  "type": "string",
                  "title": "Phone",
                  "description": "Telephone number with country/area code."
                },
                "location": {
                  "type": "string",
                  "title": "Location",
                  "description": "City, region, or country for the candidate."
                },
                "resumeUrl": {
                  "type": "string",
                  "title": "Resume URL",
                  "description": "Link to resume file (PDF, DOCX, TXT)."
                },
                "resumeText": {
                  "type": "string",
                  "title": "Resume text",
                  "editor": "textarea",
                  "description": "Inline resume text payload."
                },
                "coverLetter": {
                  "type": "string",
                  "title": "Cover letter",
                  "editor": "textarea",
                  "description": "Inline cover letter content."
                },
                "skills": {
                  "type": "array",
                  "title": "Skills",
                  "description": "List of skills or keywords associated with the candidate.",
                  "items": {
                    "type": "string"
                  }
                },
                "workHistory": {
                  "type": "array",
                  "title": "Work history",
                  "description": "Chronological list of previous roles.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string",
                        "title": "Role title",
                        "description": "Job title or role held."
                      },
                      "company": {
                        "type": "string",
                        "title": "Company",
                        "description": "Employer or organization name."
                      },
                      "startDate": {
                        "type": "string",
                        "title": "Start date",
                        "description": "Employment start date (any format)."
                      },
                      "endDate": {
                        "type": "string",
                        "title": "End date",
                        "description": "Employment end date (leave blank if current)."
                      },
                      "description": {
                        "type": "string",
                        "title": "Role summary",
                        "description": "Summary of responsibilities or achievements."
                      },
                      "location": {
                        "type": "string",
                        "title": "Role location",
                        "description": "Location of the role."
                      }
                    }
                  }
                },
                "education": {
                  "type": "array",
                  "title": "Education",
                  "description": "Educational background and qualifications.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "institution": {
                        "type": "string",
                        "title": "Institution",
                        "description": "Name of the school or university."
                      },
                      "degree": {
                        "type": "string",
                        "title": "Degree",
                        "description": "Degree or certification earned."
                      },
                      "startDate": {
                        "type": "string",
                        "title": "Start date",
                        "description": "Program start date."
                      },
                      "endDate": {
                        "type": "string",
                        "title": "End date",
                        "description": "Program end date or expected completion."
                      },
                      "fieldOfStudy": {
                        "type": "string",
                        "title": "Field of study",
                        "description": "Major, specialization, or field of study."
                      }
                    }
                  }
                }
              }
            }
          },
          "resumeUrls": {
            "title": "Resume URLs",
            "type": "array",
            "description": "List of resume URLs (PDF, DOCX, TXT). Each URL is treated as a separate candidate.",
            "items": {
              "type": "string"
            }
          },
          "resumeTexts": {
            "title": "Resume texts",
            "type": "array",
            "description": "Plain-text resumes (one string per candidate).",
            "items": {
              "type": "string"
            }
          },
          "applicationNotes": {
            "title": "Application notes",
            "type": "array",
            "description": "Short-form application answers or recruiter notes to evaluate.",
            "items": {
              "type": "string"
            }
          },
          "jobContext": {
            "title": "Job context",
            "type": "object",
            "description": "Optional context describing the role you are screening for.",
            "properties": {
              "jobId": {
                "type": "string",
                "title": "Job ID",
                "description": "Job ID"
              },
              "jobTitle": {
                "type": "string",
                "title": "Job title",
                "description": "Job title"
              },
              "companyName": {
                "type": "string",
                "title": "Company",
                "description": "Company"
              },
              "location": {
                "type": "string",
                "title": "Location",
                "description": "Location"
              },
              "hiringManager": {
                "type": "string",
                "title": "Hiring manager",
                "description": "Hiring manager"
              },
              "department": {
                "type": "string",
                "title": "Department",
                "description": "Department"
              }
            }
          },
          "suspiciousSignals": {
            "title": "Known suspicious signals",
            "type": "array",
            "description": "Custom red flags (e.g., \"Resume identical to previous applicant\"). Each string adds weight to the risk score.",
            "items": {
              "type": "string"
            }
          },
          "riskThreshold": {
            "title": "Risk threshold (1-10)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Scores ≥ threshold are labelled as suspicious. Default: 6.",
            "default": 6
          },
          "maxItems": {
            "title": "Max candidates",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Limit number of candidates to process. Free users must set ≤100."
          },
          "allowNetworkRetrieval": {
            "title": "Download resumes",
            "type": "boolean",
            "description": "Allow the actor to download resumes/attachments (PDF, DOCX, TXT) referenced by URL.",
            "default": true
          },
          "openAIApiKey": {
            "title": "OpenAI API key",
            "type": "string",
            "description": "Only required if not configured via environment variable. Used to run authenticity analysis."
          },
          "aiModel": {
            "title": "OpenAI model",
            "type": "string",
            "description": "Override the OpenAI model used for authenticity evaluation.",
            "default": "gpt-4o-mini"
          },
          "notes": {
            "title": "Reviewer notes",
            "type": "string",
            "description": "Optional instructions or notes stored with every result."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}