{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-components-schema-lead-gen-form-schema.json",
  "title": "Lead Gen Form",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reddit-lead-generation-forms-api-openapi.yml#/components/schemas/components_schema_lead_gen_form",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "ad_account_id": {
      "$ref": "#/$defs/id-2",
      "description": "The ad account ID."
    },
    "id": {
      "description": "The form's ID.",
      "type": "string",
      "readOnly": true
    },
    "name": {
      "description": "The form's name. Shown only in the Ads Manager.",
      "type": "string"
    },
    "privacy_link": {
      "description": "The privacy policy URL. Must start with `https`.",
      "type": "string"
    },
    "prompt": {
      "description": "The text shown at the top of your form and beside your ad's CTA.",
      "type": "string"
    },
    "questions": {
      "description": "A list of questions the user can fill out. At least one question must be required.\n> **Note:** Company emails and names aren't validated by Reddit. Set up the [Reddit Leads Ads Zapier integration](https://business.reddithelp.com/s/article/set-up-the-reddit-lead-ads-zapier-integration) for validation.\n",
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/components_schema_lead_gen_form_question"
      }
    },
    "created_at": {
      "$ref": "#/$defs/components_schema_created_at"
    },
    "modified_at": {
      "$ref": "#/$defs/components_schema_modified_at"
    }
  },
  "$defs": {
    "components_schema_created_at": {
      "description": "When this entity was created ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "components_schema_lead_gen_form_question": {
      "title": "Lead Gen Form Question",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "description": "The question type to show on the form.",
          "enum": [
            "EMAIL",
            "FIRST_NAME",
            "LAST_NAME",
            "PHONE_NUMBER",
            "POSTAL_CODE",
            "JOB_TITLE",
            "COMPANY",
            "COMPANY_EMAIL"
          ]
        },
        "required": {
          "description": "Whether this question must be answered.",
          "type": [
            "boolean"
          ]
        }
      }
    },
    "components_schema_modified_at": {
      "title": "Modified At",
      "description": "When this entity was last changed ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "id-2": {
      "description": "The ad account ID.",
      "type": "string",
      "pattern": "^(t2|a2)_.*",
      "readOnly": true
    }
  }
}