{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/Lead", "title": "Lead", "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "name": { "type": "string" }, "prefix": { "type": "string", "nullable": true }, "first_name": { "type": "string" }, "last_name": { "type": "string" }, "title": { "type": "string" }, "company_name": { "type": "string" }, "email": { "type": "object", "properties": { "email": { "type": "string", "format": "email" }, "category": { "type": "string" } } }, "phone_numbers": { "type": "array", "items": { "type": "object" } }, "status": { "type": "string" }, "status_id": { "type": "integer" }, "source_id": { "type": "integer", "nullable": true }, "monetary_value": { "type": "number", "nullable": true }, "details": { "type": "string", "nullable": true }, "tags": { "type": "array", "items": { "type": "string" } }, "custom_fields": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldValue" } } } }