{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropcontact/json-schema/dropcontact-enrich-request-schema.json",
  "title": "EnrichRequest",
  "description": "Body of POST /v1/enrich/all.",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropcontact-openapi.json#/components/schemas/EnrichRequest",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/InputRecord"
      },
      "type": "array",
      "description": "List of contacts to enrich, 250 max per request."
    },
    "siren": {
      "type": "boolean",
      "description": "Adds the company's SIREN and SIRET numbers to the result.",
      "default": false
    },
    "language": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Language of the email qualification label: `fr` or `en`. Any other value gives `en`.",
      "default": "fr"
    },
    "custom_callback_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2083,
          "minLength": 1,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "description": "Webhook URL for this request only, called when the result is ready. Replaces the default webhook URL for this request."
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "InputRecord": {
      "properties": {
        "first_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact first name."
        },
        "last_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact last name."
        },
        "full_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact full name. Use this when first and last name are not provided separately."
        },
        "civility": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact civility / title (e.g. Mr, Mrs)."
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact email address. Verified and qualified during enrichment."
        },
        "linkedin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact LinkedIn profile URL."
        },
        "job": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact job title."
        },
        "job_function": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact job function (broad category of the role)."
        },
        "job_level": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact seniority level (e.g. manager, executive)."
        },
        "mobile_phone": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact mobile phone number."
        },
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Contact location (city, region or country)."
        },
        "company": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Company name."
        },
        "website": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Company website URL."
        },
        "siret_address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Company street address (from the French SIRET registry)."
        },
        "siret_zip": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Company postal code (from the French SIRET registry)."
        },
        "siret_city": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Company city (from the French SIRET registry)."
        },
        "country": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Company country."
        },
        "company_linkedin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Company LinkedIn URL."
        },
        "phone": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Company standard phone number."
        },
        "company_turnover": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Company annual revenue."
        },
        "company_results": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Company annual results."
        },
        "nb_employees": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Number of employees."
        },
        "num_siren": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "French SIREN code (emitted as `siren` on output)."
        },
        "siret": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "French SIRET code."
        },
        "naf5_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "NAF/APE code."
        },
        "naf5_des": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "NAF/APE code description."
        },
        "vat": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "VAT number."
        },
        "industry": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Industry (LinkedIn). Only available on the Free and Growth plans."
        },
        "employee_count": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Employee count (LinkedIn). Only available on the Free and Growth plans."
        },
        "custom_fields": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Arbitrary custom fields returned as-is in the enriched result."
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "InputRecord",
      "description": "A single record submitted to POST /enrich/all.\n\nA record needs at least one company identifier (company, website, company_linkedin, num_siren\nor siret), an email, or the person's LinkedIn profile. A record can hold up to 15 kB of data,\n``custom_fields`` included. Unrecognized keys are reported as ``unexpected_field``."
    }
  }
}