Creates a lead from an outside system, such as a website form, using names instead of crmSeries IDs.
Values are matched to crmSeries records where possible: * OwnerEmail: the active user with this email becomes the owner. When it is empty or matches no active user, an owner is assigned by your lead assignment rules. * Branch: matched by branch name or branch number. When not matched and OwnerEmail matched a user, that user's default branch is used. * Source: matched to a lead source by name, ignoring case. The text is kept on the lead either way. * Country: matched by country name or 2- or 3-letter code; defaults to United States when empty or not matched. * Name: split into first name (first word) and last name (the rest). The lead gets your default new-lead status. `LeadId` in the body is ignored.
/api/v2/leads/externalAuthentication
Choose one supported method for this request.
Request body
The lead to create.
leadIdinteger · int32companyNamestringnullablenamestringnullablephonestringnullableemailstringnullabledescriptionstringnullableaddress1stringnullableaddress2stringnullablecitystringnullablestatestringnullablezipstringnullablecountystringnullablecountrystringnullablecellstringnullablecommentsstringnullablecompanyPhonestringnullablewebstringnullablefaxstringnullabletitlestringnullablepositionstringnullabledepartmentstringnullableownerEmailstringnullablesourcestringnullablemakestringnullablemodelstringnullableequipmentTypestringnullablebranchstringnullablesourceUrlstringnullablesourcePagestringnullable
Responses
Lead created.
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors