Post Leads
Changed onCreate a new lead.
Adds a lead record to the CRM. Only name is required; all other fields are optional.
Request Body (LeadRequest):
- name (required): Full name of the lead.
- email (optional): Email address (stored as primary email).
- phone (optional): Phone number (stored as primary phone).
- source (default: "Unknown"): Marketing source. Values: Google, Facebook, Youtube, Reddit, Snapchat, Craigslist, Yelp, Linkedin, Incoming-Call, SMS, Referral, Bing, Yahoo, Nextdoor, Unknown, TikTok, Instagram, Billboard Ad.
- status (default: "assigned"): Lead status. Values: open, assigned, attempted, contacted, meeting-setup, disqualified, incorrect.
- comments (optional): Initial notes.
- tags (optional): Up to 10 tags.
- employer_name, profession, title, website (optional): Profile fields.
- ssn (optional): Encrypted at rest.
- birth_year, birth_month, birth_day (optional): Date of birth components.
- decision_date (optional): Unix epoch timestamp.
- business_need_description (optional): Free-text business need.
- social_dict_list (optional): Social profiles, e.g. [{"type": "linkedin", "url": "..."}].
Response: The created lead object.
Request
- Base URLhttps://fapi.ambivo.com (the document declares no server; this is the origin it was published from)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- breaking
removed the required property
from the response with the status - warning
the
/request property's maxLength was set to5000 - warning
the
/request property's maxLength was set to254 - warning
the
request property's maxLength was set to500 - warning
the
/request property's maxLength was set to20 - warning
the
/request property's maxLength was set to100 - warning
the
/request property's maxLength was set to50 - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
response property
email_listlist-of-types was narrowed by removing typesstringfrom media typeapplication/jsonof response200 - info
response property
phone_listlist-of-types was narrowed by removing typesstringfrom media typeapplication/jsonof response200 - info
added the required property
to the response with the status
- breaking