Adding leads via REST API with additional fields

I'm attempting to add leads via the REST API, currently via postman, with a view to integrating with a form on our site.

The problem I'm having is that the only fields mentioned in the documentation are first_name and last_name, whereas we have more fields, e.g. email, mobile, etc. which do not seem to pull through since I'm unaware of the field names to use for these fields. The only one I managed to get to pull through was title.

Is it possible to get these other fields to pull through via the /Leads/Register endpoint, and if so could I get the field names?

Parents Reply Children
  • That's got all but 3 things: the website field, the email field, and the custom field.

    Both the custom field and the website appear as strings in the export, I've no idea why they won't import.

    The email seems to be more complicated, it comes out as a load of json. When I try to import similar json, once again an empty field. I wish there was some logging per-field of what went wrong.

  • Turns out I needed to be posting to /Leads rather than /Leads/Register and using email1 instead of email.