When I try to submit a lead via API it returns cryptic response:
{"error":"Encountered form validation errors.","details"::{"field":".form_submission","error":"Expected key to be present"}]}
Since all required field are submitted and we don’t have “.form_submission” field in the form I suspect that this endpoint needs some specific format, but I can’t find any info about it.
How a lead creation POST request should look like?