{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apex-new/json-schema/apex-new-get-api-leads-response-schema.json",
  "title": "GetApiLeadsResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/apex-new-openapi-generated.yml#/components/schemas/GetApiLeadsResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Lead record ID (UUID)"
    },
    "name": {
      "type": "string",
      "description": "Full name"
    },
    "title": {
      "type": "string",
      "description": "LinkedIn headline / job title"
    },
    "linkedin_url": {
      "type": "string",
      "description": "LinkedIn profile URL"
    },
    "source": {
      "type": "string",
      "description": "Automation or source name"
    },
    "created_at": {
      "type": "string",
      "description": "When the lead was captured (ISO 8601)"
    },
    "updated_at": {
      "type": "string",
      "description": "Last update time (ISO 8601)"
    },
    "commenter_id": {
      "type": "string",
      "description": "LinkedIn member URN"
    },
    "post_id": {
      "type": "string",
      "description": "LinkedIn post ID if from a post"
    },
    "linkedin_username": {
      "type": "string",
      "description": "LinkedIn username"
    },
    "first_name": {
      "type": "string",
      "description": "First name (when available)"
    },
    "icp_headline_fit": {
      "type": "string",
      "description": "ICP Fit label: fit | maybe | not"
    },
    "icp_headline_pct": {
      "type": "number",
      "description": "ICP Fit match, 0–100"
    },
    "icp_headline_confidence": {
      "type": "number",
      "description": "How readable the headline was, 0–100"
    },
    "icp_headline_at": {
      "type": "string",
      "description": "ISO timestamp of the headline read"
    },
    "icp_score": {
      "type": "number",
      "description": "Compatibility mirror of icp_headline_pct / 100"
    },
    "lead_type": {
      "type": "string",
      "description": "automation | post_engagement | connection_requests"
    },
    "engagements": {
      "type": "array",
      "description": "Engagement events (e.g. comments)"
    },
    "icp_fit": {
      "type": "string",
      "description": "Quiz outcome: fit | maybe | not"
    },
    "archived": {
      "type": "boolean",
      "description": "Whether the lead is archived"
    },
    "enriched_profile": {
      "type": "object",
      "description": "Full profile JSON from on-demand enrichment"
    },
    "enriched_at": {
      "type": "string",
      "description": "When the lead was last enriched (ISO 8601)"
    },
    "email": {
      "type": "string",
      "description": "Work email (if enriched)"
    }
  }
}