{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usertold-ai/json-schema/usertold-ai-api-intake-create-response-schema.json",
  "title": "ApiIntakeCreateResponse",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usertold-ai-openapi.json#/components/schemas/ApiIntakeCreateResponse",
  "type": "object",
  "properties": {
    "intake": {
      "type": "object",
      "properties": {
        "ref": {
          "type": "string"
        },
        "project_ref": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "handle": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "auto_managed": {
          "type": "number"
        },
        "max_participants": {
          "type": [
            "number",
            "null"
          ]
        },
        "logo_r2_key": {
          "type": [
            "string",
            "null"
          ]
        },
        "brand_color": {
          "type": "string"
        },
        "welcome_message": {
          "type": [
            "string",
            "null"
          ]
        },
        "thank_you_message": {
          "type": "string"
        },
        "disqualified_message": {
          "type": "string"
        },
        "consent_text": {
          "type": "string"
        },
        "complete_count": {
          "type": "number"
        },
        "qualified_count": {
          "type": "number"
        },
        "disqualified_count": {
          "type": "number"
        },
        "created_at": {
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        }
      },
      "required": [
        "ref",
        "project_ref",
        "title",
        "description",
        "handle",
        "status",
        "auto_managed",
        "max_participants",
        "logo_r2_key",
        "brand_color",
        "welcome_message",
        "thank_you_message",
        "disqualified_message",
        "consent_text",
        "complete_count",
        "qualified_count",
        "disqualified_count",
        "created_at",
        "updated_at"
      ]
    },
    "questions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "question_text": {
            "type": "string"
          },
          "question_type": {
            "type": "string"
          },
          "required": {
            "type": "number"
          },
          "sort_order": {
            "type": "number"
          },
          "options_json": {
            "type": [
              "string",
              "null"
            ]
          },
          "min_value": {
            "type": [
              "number",
              "null"
            ]
          },
          "max_value": {
            "type": [
              "number",
              "null"
            ]
          },
          "qualification_rules_json": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "question_text",
          "question_type",
          "required",
          "sort_order",
          "options_json",
          "min_value",
          "max_value",
          "qualification_rules_json",
          "created_at"
        ]
      }
    }
  },
  "required": [
    "intake",
    "questions"
  ]
}