{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropcontact/json-schema/dropcontact-enrich-result-response-schema.json",
  "title": "EnrichResultResponse",
  "description": "Response of GET /enrich/all/{request_id}.",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropcontact-openapi.json#/components/schemas/EnrichResultResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/EnrichedRecord"
      },
      "type": "array",
      "description": "The enriched records, ordered by input index."
    },
    "credits_left": {
      "type": "integer",
      "description": "Credits remaining on the account."
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Global batch status (`ready`/`in_progress`), only when forceResults=true."
    },
    "error": {
      "type": "boolean",
      "default": false
    },
    "success": {
      "type": "boolean",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "data",
    "credits_left"
  ],
  "$defs": {
    "EmailResult": {
      "properties": {
        "email": {
          "type": "string",
          "description": "The email address."
        },
        "qualification": {
          "type": "string",
          "description": "Composite `localpart@domain` qualification, localized via the request language. Localpart: nominatif/nominative, catch-all, generique/generic, Ne_Pas_Contacter/Do_Not_Contact, non_validé/non_validated, invalide/invalid. Domain: pro, perso, school, jetable/disposable, domaine invalide/invalid domain. Example: `nominatif@pro`."
        }
      },
      "type": "object",
      "required": [
        "email",
        "qualification"
      ],
      "title": "EmailResult",
      "description": "A found email and its qualification."
    },
    "EnrichedRecord": {
      "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: `Monsieur` or `Madame` with `language: fr`, `Mr` or `Mrs` otherwise."
        },
        "email": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/EmailResult"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "Found emails with their qualification."
        },
        "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 of the company, as a range (e.g. `10-19`)."
        },
        "siren": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "French SIREN code (input field is `num_siren`)."
        },
        "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": "Number of LinkedIn profiles linked to the company. Only available on the Free and Growth plans."
        },
        "custom_fields": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Custom fields echoed from the input."
        },
        "company_change": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Previous company name when a company change is detected."
        },
        "errors": {
          "anyOf": [
            {
              "$ref": "#/$defs/enrich_api__handlers__api_models__RecordErrors"
            },
            {
              "type": "null"
            }
          ]
        },
        "warnings": {
          "anyOf": [
            {
              "$ref": "#/$defs/enrich_api__handlers__api_models__RecordWarnings"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "`ready` or `in_progress`, only when forceResults=true."
        }
      },
      "type": "object",
      "title": "EnrichedRecord",
      "description": "A single enriched record returned by GET /enrich/all/{request_id}.\n\nOnly populated attributes are present (nothing is forced to null). Note the input/output\nasymmetry: ``num_siren`` is returned as ``siren`` and ``email`` is a list of objects.\n\nDropcontact cleans the data it returns: first and last names get the right capital letters (a full\nname is split into first and last name), LinkedIn URLs become ``www.linkedin.com/in/...``, the\nwebsite is reduced to its domain with ``www.``, and the company name, SIREN, SIRET and NAF code\nare put in a standard format."
    },
    "enrich_api__handlers__api_models__RecordErrors": {
      "properties": {
        "unexpected_field": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "Submitted keys that are not recognized."
        },
        "only_contact_data": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "description": "True when the record has contact data but no usable organization data."
        }
      },
      "type": "object",
      "title": "RecordErrors",
      "description": "Blocking issues attached to a record."
    },
    "enrich_api__handlers__api_models__RecordWarnings": {
      "properties": {
        "empty_field": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "Submitted keys with an empty value."
        },
        "only_organization_data": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "description": "True when the record has organization data but no contact data."
        }
      },
      "type": "object",
      "title": "RecordWarnings",
      "description": "Non-blocking issues attached to a record."
    }
  }
}