| Param name | Description |
|---|---|
|
prospect
required |
Prospect attributes Validations:
|
|
prospect[name]
required |
First name Validations:
|
|
prospect[lastname]
required |
Last name Validations:
|
|
prospect[matriname]
optional |
Second last name Validations:
|
|
prospect[company]
optional |
Whether the prospect is a company Validations:
|
|
prospect[company_name]
optional |
Company name (required when company is true) Validations:
|
|
prospect[email]
optional |
Email address Validations:
|
|
prospect[phone_number]
optional |
Phone number Validations:
|
|
prospect[phone_number_extension]
optional |
Phone extension Validations:
|
|
prospect[mobile_number]
optional |
Mobile number Validations:
|
|
prospect[gender]
optional |
Gender Validations:
|
|
prospect[dob]
optional |
Date of birth (YYYY-MM-DD) Validations:
|
|
prospect[contact_date]
optional |
Contact date (YYYY-MM-DD) Validations:
|
|
prospect[nationality]
optional |
Nationality key (e.g. mexican) Validations:
|
|
prospect[promoter_id]
optional |
Associated promoter UUID Validations:
|
|
prospect[street]
optional |
Street name Validations:
|
|
prospect[street_number]
optional |
Street number Validations:
|
|
prospect[street_number_internal]
optional |
Interior number Validations:
|
|
prospect[postal_code]
optional |
Postal code Validations:
|
|
prospect[city]
optional |
City Validations:
|
|
prospect[state]
optional |
State Validations:
|
|
prospect[country]
optional |
Country code Validations:
|
|
prospect[suburb]
optional |
Suburb / colony Validations:
|
|
prospect[commentary]
optional |
Additional notes Validations:
|
# Request body:
{
'prospect': {
'name': 'Test',
'lastname': 'Prospect',
'email': 'test.prospect@example.com',
'phone_number': '5512345678',
'gender': 'male',
'dob': '1990-06-15',
'contact_date': '2026-05-07',
'nationality': 'mexican',
'promoter_id': 'promoter-uuid',
'commentary': 'First contact via referral'
}
}
# Response (201 Created): same structure as GET /prospects/:id
| Code | Description |
|---|---|
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Internal Server Error |