/api/v1/leads/upsert
Request bodyrequired
| identitiesrequired | object
| ||||
| timezonerequired | string | ||||
| firstNameoptional | string | ||||
| lastNameoptional | string | ||||
| companyNameoptional | string | ||||
| companyDomainoptional | string | ||||
| jobTitleoptional | string | ||||
| emailoptional | string | ||||
| imageUrloptional | string | ||||
| propertiesoptional | object |
Response
200The created or matched lead.
| status | "created" | "matched" created: a new lead. matched: an identity already belonged to this lead, so the fields sent were patched onto it. | ||||||||||||||||||||||||||||||||||||
| lead | object
| ||||||||||||||||||||||||||||||||||||
| requestId | string · uuid Id of this request, for support and troubleshooting |
Errors
- 400: Bad request
- 401: Unauthorized: missing or invalid API key
- 403: Forbidden
- 404: Not found
- 422: Invalid request payload