How to Add a Lead Record by API

Before adding a Lead record by API command, you have to generate the HTML for a Web-to-Lead form (Steps 89-98) because you use some that HTML to build the API command. If you never created the form or need to redo that part too, you can do Steps 89-98 to regenerate the form properly & then continue with Steps 99-103 to do the API Lead record add. But if all you need to do is to add the Lead record using the API command and you don't care about getting the entire form HTML generated correctly, then just follow the steps below:

  1. Go to Setup > PLATFORM TOOLS > Feature Settings > Marketing > Web-to-Lead

  2. Under the Web-to-Lead Settings, click the Create Web-to-Lead Form button

  3. Uncheck Include reCAPTCHA in HTML  & then click Generate

  4. Do Steps 99-103

  5. When you're ready, e-grade by using the App Launcher to open the Grader App and follow instructions to run the scoring routine again and then be sure to reload the page to see the updated error list & grade certificate