{
  "openapi": "3.0.1",
  "info": {
    "title": "ATS Job Board Feed Sync - Greenhouse, Lever, Ashby",
    "description": "One actor for every major ATS: Greenhouse, Lever, Ashby, Workday. Auto-detect the job board behind a company, pull all open roles as a jobs JSON feed with one normalized schema. Incremental mode bills only NEW, UPDATED and REMOVED jobs - unchanged are tracked but never billed.",
    "version": "0.1",
    "x-build-id": "Pw33LtIxX0nvjnlBZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/smiling_jubilance~ats-job-feed-sync/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-smiling_jubilance-ats-job-feed-sync",
        "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/smiling_jubilance~ats-job-feed-sync/runs": {
      "post": {
        "operationId": "runs-sync-smiling_jubilance-ats-job-feed-sync",
        "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/smiling_jubilance~ats-job-feed-sync/run-sync": {
      "post": {
        "operationId": "run-sync-smiling_jubilance-ats-job-feed-sync",
        "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": [
          "companies"
        ],
        "properties": {
          "companies": {
            "title": "Companies to scan",
            "type": "array",
            "description": "List of company board slugs. A slug is the ATS board identifier, e.g. 'gitlab' for boards.greenhouse.io/gitlab. Leave 'ats' empty to auto-detect across Greenhouse / Lever / Ashby / SmartRecruiters / Workday. Demo/QA-safe defaults: airtable (Greenhouse, 16 jobs) + matchgroup (Lever, 72 jobs); a full run with these takes ~60s vs ~407s for a large board like stripe (665 jobs).",
            "default": [
              {
                "slug": "airtable",
                "ats": "greenhouse"
              },
              {
                "slug": "matchgroup",
                "ats": "lever"
              }
            ]
          },
          "detectAts": {
            "title": "Auto-detect ATS when not specified",
            "type": "boolean",
            "description": "Try Greenhouse -> Lever -> Ashby -> SmartRecruiters and use the first board that returns jobs. Workday is only probed when 'includeWorkday' is on (it is slow to probe and rarely the answer).",
            "default": true
          },
          "includeWorkday": {
            "title": "Also probe Workday during auto-detect",
            "type": "boolean",
            "description": "Workday has no universal endpoint: the actor must try 3 host variants per tenant, which costs up to 50s per company that is NOT on Workday. Leave off unless you know your targets use Workday.",
            "default": false
          },
          "mode": {
            "title": "Output mode",
            "enum": [
              "full",
              "incremental"
            ],
            "type": "string",
            "description": "'full' = output every job found and bill for all of them. 'incremental' = compare against the previous run and bill ONLY new / updated / removed jobs; unchanged jobs are stored but never billed. The change index lives in a NAMED key-value store ('ats-feed-index'), which Apify retains indefinitely - unnamed/default storages are not guaranteed to survive between runs. If no index exists yet (first run), every job counts as new and is billed; the run log says 'cold start' when that happens.",
            "default": "full"
          },
          "includeDescription": {
            "title": "Include job description text",
            "type": "boolean",
            "description": "Include the full plaintext job description where the ATS exposes it. Note: salary data is NOT available from any of the supported public endpoints.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Parallel companies to fetch. Measured: coverage at 8 and at 4 is identical (94% median over 18 supported companies, 3 rounds each) - misses come from slow single responses, not from parallelism, so lowering this does not help.",
            "default": 8
          },
          "requestTimeoutMs": {
            "title": "Request timeout",
            "minimum": 3000,
            "maximum": 60000,
            "type": "integer",
            "description": "Per-request timeout when calling an ATS endpoint. Ashby endpoints were measured at up to 14s, so values below 25s cause false \"not found\" results.",
            "default": 25000
          },
          "retries": {
            "title": "Retries per company",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "How many times to retry a timed-out or 5xx request for the same company before marking it unavailable. One retry measurably improves coverage.",
            "default": 1
          },
          "emitRemoved": {
            "title": "Emit removed (closed) jobs",
            "type": "boolean",
            "description": "In incremental mode, also output and bill jobs that disappeared from a board since the previous run (a hiring signal). Turn off if you only want new + updated jobs. Jobs of companies you did NOT request in this run are never judged as removed - shrinking your company list can never generate phantom 'removed' charges.",
            "default": true
          },
          "resetIndex": {
            "title": "Rebuild the change index from scratch",
            "type": "boolean",
            "description": "Discard the stored index and treat this run as a cold start (every job is new and billed). Useful after a long gap or if you suspect the index drifted. Leave off for normal daily monitoring.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}