Create Lead
POST {{protocol}}://{{instance_zuid}}.{{instances_api_url}}/{{instances_api_version}}/env/leads
Available request body property values.
name | description |
---|---|
form | [string] Required. Name of the form the lead was submitted from |
firstName | [string] |
lastName | [string] |
email | [string] |
formData | [object] An object of arbitrary data to be returned by the API |
Request Body
{"form"=>"Form Name", "firstName"=>"John", "lastName"=>"Smith", "email"=>"john@mail.com", "formData"=>{"phoneNumber"=>"+1234567890"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"_meta":{"timestamp":"2021-08-26T00:02:40.012701885Z","totalResults":1,"start":0,"offset":0,"limit":1},"data":{"ID":76,"zuid":"23-a4c39afca7-rhq4b5","form":"Form Name","firstName":null,"lastName":null,"email":null,"formData":{"email":"bobsmith@email.com","first_name":"Bob","last_name":"Smith"},"dateCreated":"0001-01-01T00:00:00Z","viewed":0,"template":1,"createdAt":"2021-08-26T00:02:40.00677152Z","updatedAt":"2021-08-26T00:02:40.006777654Z"}}