API reference
All operations
LEADS

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.

POST/api/v2/leads/external

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentialsAPI key

Request body

application/jsonrequired

The lead to create.

CreateLeadExternalRequest
  • leadIdinteger · int32
  • companyNamestringnullable
  • namestringnullable
  • phonestringnullable
  • emailstringnullable
  • descriptionstringnullable
  • address1stringnullable
  • address2stringnullable
  • citystringnullable
  • statestringnullable
  • zipstringnullable
  • countystringnullable
  • countrystringnullable
  • cellstringnullable
  • commentsstringnullable
  • companyPhonestringnullable
  • webstringnullable
  • faxstringnullable
  • titlestringnullable
  • positionstringnullable
  • departmentstringnullable
  • ownerEmailstringnullable
  • sourcestringnullable
  • makestringnullable
  • modelstringnullable
  • equipmentTypestringnullable
  • branchstringnullable
  • sourceUrlstringnullable
  • sourcePagestringnullable

Responses

Lead created.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

datainteger
integer · int32