LeadForm

A resource for creating/modifying a lead form.

Field nameTypeConditionsDescription
idstringreadabledefault_fieldForm identifier
namestringreadablewritablerequiredmax_length=255Form name
statusintegerreadablewritable
choices =
  • 1 - Active
  • 2 - Archived
Form status. Moving an active form to the archive and back is performed only via special requests. Forms in the archive cannot be updated.
createddatetimereadableCreation time
updateddatetimereadableLast update time
leads_countintegerreadableNumber of leads collected by the form
ad_plans_countintegerreadableNumber of ad campaigns where the form is used
ad_plan_idslist of uint32readableIDs of ad campaigns where the form is used
ad_group_idslist of uint32readableIDs of ad groups where the form is used
banner_idslist of uint32readableIDs of ads where the form is used
active_ad_plan_idslist of uint32readableIDs of active ad campaigns where the form is used
first_screen_typestringreadablewritablerequired
choices =
  • compact - compact
  • long_text - long description
  • award - information about the reward for completing the form
Type of the welcome section that the user sees immediately when opening the form
titlestringreadablewritablerequiredmax_length=50Form title
descriptionstringreadablewritablemax_length=35Form description. Displayed (and required) only when first_screen_type=compact
long_descriptionstringreadablewritablemax_length=350Long form description. Displayed (and required) only when first_screen_type=long_text. Maximum number of consecutive line breaks is 2.
company_titlestringreadablewritablerequiredmax_length=30Company name
logo_idstringwriteablerequiredCompany logo identifier, returned when uploading the logo
logoobjectreadableCompany logo
awardAwardreadablewriteableReward for completing the form. Displayed (and required) only when first_screen_type=award
gradientintegerreadablewritable
choices =
  • 0 - #FF7583 0%, #E62E40 100%
  • 1 - #FF80D5 0%, #E645B1 100%
  • 2 - #FFD54F 0%, #E7A902 100%
  • 3 - #6CD97E 0%, #12B312 100%
  • 4 - #8AE6E6 0%, #12B3B3 100%
  • 5 - #73D0FF 0%, #3885E1 100%
  • 6 - #FF4D87 0%, #9F40FF 100%
  • 100 - default color
  • 101 - color is taken from main_color
Form background color. Values from 0 to 6 are gradients.
contact_fieldslist of stringreadablewritablerequired
choices =
  • first_name - First name
  • email - Email address
  • phone - Phone number
  • birth_date - Date of birth
  • city - City
  • social_media_profile - Link to a social media profile
Contact details collected after answering the form questions
result_infoResultInforeadablewriteablerequiredInformation for the form’s final screen
agreementAgreementreadablewriteablerequiredForm user agreement
notificationslist of NotificationreadablewriteableForm notification settings
pageslist of Pagereadablewriteablemax_items=1List of form pages. If no pages are specified, the user will proceed directly to entering contact details when filling out the form.
required_answersbooleanreadablewritableFlag indicating whether questions are required
main_colorstringreadablewritableForm primary color in HEX format (example: #FFFAAA)
main_image_idstringwriteableForm cover identifier, returned when uploading the cover
main_imageobjectreadableForm cover