{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deepcure/json-schema/deepcure-post-leads-request-schema.json",
  "title": "PostLeadsRequest",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/deepcure-openapi-generated.yml#/components/schemas/PostLeadsRequest",
  "type": "object",
  "properties": {
    "position_uid": {
      "type": "string",
      "description": "Unique ID of the position in Recruit"
    },
    "partner_lead_id": {
      "type": "string",
      "description": "Unique ID of the lead on the partner's system"
    },
    "first_name": {
      "type": "string"
    },
    "middle_name": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "phone": {
      "type": "string"
    },
    "mobile_phone": {
      "type": "string"
    },
    "national_id": {
      "type": "string"
    },
    "linkedin_url": {
      "type": "string"
    },
    "salary_expectations": {
      "type": "string",
      "description": "Access to this field is restricted in Recruit"
    },
    "outreach_status": {
      "type": "string",
      "description": "One of the following: `Not Contacted`, `Contacted`, `Responded`"
    },
    "resume": {
      "type": "object",
      "description": "See restrictions below"
    },
    "picture": {
      "type": "object",
      "description": "Profile photo"
    },
    "links": {
      "type": "array"
    },
    "files": {
      "type": "array",
      "description": "See restrictions below"
    },
    "source_contact": {
      "type": "object",
      "description": "Include the source contact if your app aggregates multiple sources. Required for employee portals, otherwise optional."
    },
    "source_contact.full_name": {
      "type": "string",
      "description": "Required if the `source_contact` object is provided"
    },
    "source_contact.email": {
      "type": "string",
      "description": "Required if the `source_contact` object is provided"
    },
    "source_contact.phone": {
      "type": "string"
    },
    "address": {
      "type": "object"
    },
    "custom_fields": {
      "type": "object",
      "description": "Key-value pairs of custom lead fields"
    },
    "note": {
      "type": "string",
      "description": "Plain text, no formatting."
    }
  },
  "required": [
    "position_uid",
    "first_name",
    "last_name",
    "outreach_status",
    "source_contact.full_name",
    "source_contact.email"
  ]
}