{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talktohumans-app/json-schema/talktohumans-app-enrich-profile-request-schema.json",
  "title": "EnrichProfileRequest",
  "description": "Provide exactly one target: `contact_id`, `provider_participant_id`, `linkedin_url`, or `public_identifier`.\n",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talktohumans-app-openapi.yml#/components/schemas/EnrichProfileRequest",
  "type": "object",
  "additionalProperties": false,
  "oneOf": [
    {
      "required": [
        "contact_id"
      ]
    },
    {
      "required": [
        "provider_participant_id"
      ]
    },
    {
      "required": [
        "linkedin_url"
      ]
    },
    {
      "required": [
        "public_identifier"
      ]
    }
  ],
  "properties": {
    "account_id": {
      "type": "string",
      "description": "LinkedIn account ID returned by `GET /v1/accounts`. Required when the organization has multiple LinkedIn accounts.",
      "pattern": "^[1-9][0-9]*$"
    },
    "contact_id": {
      "type": "string",
      "description": "Contact ID returned by `GET /v1/contacts`.",
      "pattern": "^[1-9][0-9]*$"
    },
    "provider_participant_id": {
      "type": "string",
      "description": "LinkedIn participant ID, such as `urn:li:fsd_profile:abc`."
    },
    "linkedin_url": {
      "type": "string",
      "format": "uri",
      "description": "LinkedIn profile URL."
    },
    "public_identifier": {
      "type": "string",
      "description": "LinkedIn public identifier from a profile URL."
    },
    "force": {
      "type": "boolean",
      "description": "Refresh cached enrichment data even when fresh data is already available.",
      "default": false
    }
  }
}