Contacts
Map excess fields for contact payload
Re-runs the AI lead-mapper on a contact's misc (excess) data to promote previously-unmapped values to first-class fields. Never overwrites an existing firstName/lastName/email; persists the remaining excess fields back to misc.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/contact/map-excess-data" \ -H "Content-Type: application/json" \ -d '{ "sourceText": "Jane Doe, +1-416-555-0100, jane@example.com, lead from referral", "existingSchema": { "firstName": { "type": "string" }, "email": { "type": "string" }, "phoneNumber": { "type": "string" } }, "mappedData": { "firstName": "Jane", "email": "jane@example.com", "phoneNumber": "+14165550100" }, "excessData": { "note": "lead from referral" } }'{ "success": true, "message": "Excess data mapped successfully"}