{
  "openapi": "3.0.1",
  "info": {
    "title": "Career Page → Job Board Sync (Greenhouse + Ashby)",
    "description": "Turn selected Greenhouse and Ashby career pages into current jobs plus add/update/expire change records. Includes an n8n → Airtable example.",
    "version": "0.1",
    "x-build-id": "n3SaKeGSgTGr1RH1e"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/royal_niche~career-page-job-board-sync/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-royal_niche-career-page-job-board-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/royal_niche~career-page-job-board-sync/runs": {
      "post": {
        "operationId": "runs-sync-royal_niche-career-page-job-board-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/royal_niche~career-page-job-board-sync/run-sync": {
      "post": {
        "operationId": "run-sync-royal_niche-career-page-job-board-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": [
          "syncId",
          "boards"
        ],
        "properties": {
          "syncId": {
            "title": "Sync ID",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
            "type": "string",
            "description": "Name for one independent collection, e.g. \"energy-board\". State is stored separately for every Sync ID, so two boards with the same name cannot overwrite each other."
          },
          "boards": {
            "title": "Career boards",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Greenhouse or Ashby board URLs. Supported: https://job-boards.greenhouse.io/{board}, https://boards.greenhouse.io/{board}, https://jobs.ashbyhq.com/{board}. Custom domains are not supported.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Board URL",
                  "type": "string",
                  "description": "Public career-page URL for the employer.",
                  "editor": "textfield"
                },
                "companyLabel": {
                  "title": "Company label (optional)",
                  "type": "string",
                  "description": "Used only when the provider does not publish an employer name (Ashby never does). Does not override a name published by Greenhouse.",
                  "editor": "textfield"
                }
              },
              "required": [
                "url"
              ]
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "sync",
              "snapshot"
            ],
            "type": "string",
            "description": "sync keeps a baseline and emits change records. snapshot returns the current jobs and keeps no state.",
            "default": "sync"
          },
          "filters": {
            "title": "Filters",
            "type": "object",
            "description": "Simple substring filters. They are applied before the comparison, and the filter set is part of the stored configuration fingerprint.",
            "properties": {
              "titleKeywords": {
                "title": "Title keywords",
                "type": "array",
                "description": "Case-insensitive substring match. A job matches when its title contains any of these terms. Empty means no title filter.",
                "editor": "stringList",
                "items": {
                  "type": "string"
                }
              },
              "locationText": {
                "title": "Location text",
                "type": "array",
                "description": "Case-insensitive substring match against the published location strings. Empty means no location filter. Remote eligibility is not inferred.",
                "editor": "stringList",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "limits": {
            "title": "Limits",
            "type": "object",
            "description": "Hard bounds for cost control. Boards beyond a limit are reported as skipped and never expire jobs.",
            "properties": {
              "maxBoards": {
                "title": "Max boards per run",
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 25,
                "description": "Maximum number of boards read in this run."
              },
              "maxJobsPerBoard": {
                "title": "Max jobs per board",
                "type": "integer",
                "minimum": 1,
                "maximum": 20000,
                "default": 5000,
                "description": "A board above this size is truncated and cannot expire jobs."
              },
              "maxRunSeconds": {
                "title": "Max run seconds",
                "type": "integer",
                "minimum": 30,
                "maximum": 3600,
                "default": 300,
                "description": "Wall-clock budget for reading boards. Boards not reached are reported as skipped."
              }
            }
          },
          "expiry": {
            "title": "Expiry",
            "type": "object",
            "description": "Rules for deciding when a job is no longer on the board.",
            "properties": {
              "confirmations": {
                "title": "Required consecutive absences",
                "type": "integer",
                "minimum": 2,
                "maximum": 10,
                "default": 2,
                "description": "A job expires only after this many consecutive complete observations in which it was absent. Values below 2 are refused."
              }
            }
          },
          "resetState": {
            "title": "Reconcile stored state",
            "type": "boolean",
            "description": "Required before this Actor will accept a changed filter set for a stored board. Emits an expire with reason \"config_reset\" for jobs that no longer match, then stores the new baseline.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}