{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prospectapis/json-schema/prospectapis-company-jobs-schema.json",
  "title": "CompanyJobs",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prospectapis-companies-api-openapi.yml#/components/schemas/CompanyJobs",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "domain": {
          "type": "string"
        },
        "company_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "no_openings",
            "no_board_found"
          ]
        },
        "ats": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "board_slug": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "resolution": {
                "type": "string",
                "enum": [
                  "site_link",
                  "domain_stem_confirmed"
                ]
              }
            }
          }
        },
        "openings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JobOpening"
          }
        },
        "count": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        },
        "complete": {
          "type": "boolean"
        },
        "retrieved_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "charged_usd": {
      "type": "number"
    }
  },
  "$defs": {
    "JobOpening": {
      "type": "object",
      "description": "One open posting. A field the board does not state is null.",
      "properties": {
        "id": {
          "type": "string",
          "description": "provider.board.posting id, stable across reads."
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "department": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "remote": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "The board's remote flag, else inferred from the location text."
        },
        "employment_type": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "full_time",
            "part_time",
            "contract",
            "internship",
            null
          ]
        },
        "seniority": {
          "type": [
            "string",
            "null"
          ],
          "description": "Inferred from the title."
        },
        "salary": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "min": {
              "type": [
                "number",
                "null"
              ]
            },
            "max": {
              "type": [
                "number",
                "null"
              ]
            },
            "currency": {
              "type": [
                "string",
                "null"
              ]
            },
            "period": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "posted_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "type": "object",
          "description": "The board API (or careers page) this posting was read from.",
          "properties": {
            "provider": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          }
        },
        "ats": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "provider": {
              "type": "string"
            },
            "board_slug": {
              "type": "string"
            }
          }
        },
        "fetched_at": {
          "type": "string",
          "format": "date-time"
        },
        "first_seen_at": {
          "type": "string",
          "format": "date-time"
        },
        "last_seen_at": {
          "type": "string",
          "format": "date-time"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Only with include_description=true."
        }
      }
    }
  }
}