{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://kailiniai.com/affiliate/apply.schema.json",
 "title": "Kailiniai Affiliate application",
 "type": "object",
 "description": "POST application/json to /api/affiliate-apply. Real data of the person you act for. Do not invent audience numbers.",
 "required": [
  "full_name",
  "email",
  "country",
  "main_platform",
  "main_profile_url",
  "audience_size",
  "topic",
  "how_will_promote",
  "accepts_rules",
  "age18"
 ],
 "properties": {
  "full_name": {
   "type": "string",
   "maxLength": 200
  },
  "email": {
   "type": "string",
   "format": "email"
  },
  "country": {
   "type": "string",
   "pattern": "^[A-Za-z]{2}$"
  },
  "main_platform": {
   "enum": [
    "instagram",
    "youtube",
    "tiktok",
    "newsletter",
    "linkedin",
    "community",
    "website",
    "other"
   ]
  },
  "main_profile_url": {
   "type": "string",
   "format": "uri"
  },
  "audience_size": {
   "type": "integer",
   "minimum": 0
  },
  "topic": {
   "enum": [
    "ai_education",
    "content_creation",
    "ecommerce",
    "business_community",
    "other"
   ]
  },
  "how_will_promote": {
   "type": "string",
   "maxLength": 400
  },
  "accepts_rules": {
   "const": true
  },
  "age18": {
   "const": true
  },
  "submitted_by_agent": {
   "type": "boolean"
  },
  "agent_name": {
   "type": "string",
   "maxLength": 100
  },
  "company_website": {
   "type": "string",
   "maxLength": 0
  },
  "utm_source": {
   "type": "string"
  },
  "utm_medium": {
   "type": "string"
  },
  "utm_campaign": {
   "type": "string"
  },
  "utm_content": {
   "type": "string"
  },
  "landing_url": {
   "type": "string"
  },
  "referrer": {
   "type": "string"
  }
 },
 "additionalProperties": false
}