Leads API
POST
https://{{subscriber_name}}.masi-leap.com/v1/x-lead-external-api/new-lead
API that provides ability to create leads in MASI for external suppliers#
1.
2.
3.
Request
Header Params
Authorization
string
required
Example:
{{LEADS_EXTERNAL_API_KEY}}
Content-Type
string
required
Example:
application/json
Accept
string
required
Example:
application/json
Body Params application/json
source
string
required
moveType
enum<string>
optional
Allowed values:
INT_HOUSEHOLDINT_COMMERCIALDOM_HOUSEHOLDDOM_COMMERCIALLOCAL_HOUSEHOLDLOCAL_COMMERCIALLD_HOUSEHOLDLD_COMMERCIAL
volumeImperial
number
optional
volumeMetric
number
optional
weightImperial
number
optional
weightMetric
number
optional
moveDate
string
optional
customerDetails
object
optional
name
string
optional
emails
array [object {2}]
optional
phones
array [object {2}]
optional
movingFrom
object
optional
fullAddress
string
optional
<= 200 characters
apartment
string
optional
<= 10 characters
unitNo
string
optional
<= 10 characters
buzzersCode
string
optional
<= 10 characters
floor
string
optional
<= 10 characters
movingTo
object
optional
fullAddress
string
optional
<= 200 characters
apartment
string
optional
<= 10 characters
unitNo
string
optional
<= 10 characters
buzzersCode
string
optional
<= 10 characters
floor
string
optional
<= 10 characters
notes
string
optional
Example
{
"source": "string",
"moveType": "INT_HOUSEHOLD",
"volumeImperial": 0,
"volumeMetric": 0,
"weightImperial": 0,
"weightMetric": 0,
"moveDate": "string",
"customerDetails": {
"name": "string",
"emails": [
{
"value": "string",
"type": "string"
}
],
"phones": [
{
"value": "string",
"type": "string"
}
]
},
"movingFrom": {
"fullAddress": "string",
"apartment": "string",
"unitNo": "string",
"buzzersCode": "string",
"floor": "string"
},
"movingTo": {
"fullAddress": "string",
"apartment": "string",
"unitNo": "string",
"buzzersCode": "string",
"floor": "string"
},
"notes": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://{{subscriber_name}}.masi-leap.com/v1/x-lead-external-api/new-lead' \
--header 'Authorization: {{LEADS_EXTERNAL_API_KEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"source": "string",
"moveType": "INT_HOUSEHOLD",
"volumeImperial": 0,
"volumeMetric": 0,
"weightImperial": 0,
"weightMetric": 0,
"moveDate": "string",
"customerDetails": {
"name": "string",
"emails": [
{
"value": "string",
"type": "string"
}
],
"phones": [
{
"value": "string",
"type": "string"
}
]
},
"movingFrom": {
"fullAddress": "string",
"apartment": "string",
"unitNo": "string",
"buzzersCode": "string",
"floor": "string"
},
"movingTo": {
"fullAddress": "string",
"apartment": "string",
"unitNo": "string",
"buzzersCode": "string",
"floor": "string"
},
"notes": "string"
}'
Responses
🟢200Success
application/json
Body
message
string
required
lead
object
required
Example
{
"message": "Success!",
"lead": {
"_id": "673f75bede30c05d9eafad5d",
"leadId": "MLD-1",
"source": "Website",
"moveType": "LD_HOUSEHOLD",
"volumeImperial": 23,
"volumeMetric": 7,
"weightImperial": 100,
"weightMetric": 20,
"moveDate": "2025/03/27",
"customerDetails": {
"name": "John Wick",
"emails": [
{
"value": "jv@test.com",
"type": "Primary"
}
],
"phones": [
{
"value": "+1-555-3451235",
"type": "Primary"
}
]
},
"movingFrom": {
"fullAddress": "Amphoe Mueang Krabi, Chang Wat Krabi 81000, Thailand",
"apartment": "240",
"unitNo": "11",
"buzzersCode": "*2435#",
"floor": "23"
},
"movingTo": {
"fullAddress": "Sheikh Zayed Rd - Al Sufouh 2 - Dubai - United Arab Emirates",
"apartment": "89",
"unitNo": "43",
"buzzersCode": "*9999#",
"floor": "11"
},
"notes": "Customer requires special services"
}
}
🟠406Bad Request
🔴500Server Error
Modified at 2025-03-22 22:09:06