{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/100hires-com/json-schema/100hires-com-form-list-response-schema.json",
  "title": "FormListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/100hires-com-forms-api-openapi.yml#/components/schemas/FormListResponse",
  "type": "object",
  "required": [
    "forms",
    "pagination"
  ],
  "properties": {
    "forms": {
      "type": "array",
      "description": "Array of forms.",
      "items": {
        "$ref": "#/$defs/Form"
      }
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    }
  },
  "$defs": {
    "Form": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Form ID."
        },
        "name": {
          "type": "string",
          "description": "Form name."
        },
        "url_backoffice": {
          "type": "string",
          "format": "uri",
          "description": "Absolute backoffice URL to edit this questionnaire form in the 100Hires recruiter app. Use to render deep-links in agent UIs."
        },
        "job_ids": {
          "type": "array",
          "description": "IDs of live jobs whose active application form this is, ascending. A job with no form attached falls back to the company default form but is NOT listed here — read the job's `form_id` for the effective form. Present in both `view=full` and `view=summary`.",
          "items": {
            "type": "integer"
          }
        },
        "questions": {
          "type": "array",
          "description": "Array of questions on this form. Present only when `view=full` (default); omitted entirely when `view=summary` — forms can embed dozens of question definitions.",
          "items": {
            "$ref": "#/$defs/Question"
          }
        }
      }
    },
    "Pagination": {
      "type": "object",
      "required": [
        "page_size",
        "page_count",
        "page",
        "total_count"
      ],
      "properties": {
        "page_size": {
          "type": "integer",
          "description": "Items per page."
        },
        "page_count": {
          "type": "integer",
          "description": "Total number of pages."
        },
        "page": {
          "type": "integer",
          "description": "Current page number."
        },
        "total_count": {
          "type": "integer",
          "description": "Total number of items."
        }
      }
    },
    "Question": {
      "type": "object",
      "required": [
        "id",
        "text",
        "type"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Question ID."
        },
        "text": {
          "type": "string",
          "description": "Question text."
        },
        "type": {
          "type": "string",
          "description": "Question type."
        },
        "options": {
          "type": "array",
          "description": "Answer options for select/multiselect types.",
          "items": {
            "type": "string"
          }
        },
        "status": {
          "type": "string",
          "description": "Visibility status on the form.",
          "enum": [
            "required",
            "optional",
            "hidden"
          ]
        }
      }
    }
  }
}