BulkCreateLeads
curl --request POST \
--url https://api.trysela.com/api/leads/bulk-create/ \
--header 'Authorization: Token <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"leads": [
{
"email": "first_name@trysela.com",
"phone_number": "+18042221111",
"metadata": {
"first_name": "First",
"last_name": "Name",
"timezone": "America/Los_Angeles",
"property_address": "123 Main St",
"property_city": "San Francisco",
"property_state": "California",
"property_zip": "94101",
"address": "456 2nd St",
"city": "Los Angeles",
"state": "California",
"zip": "90001"
},
"external_id": "id_in_your_crm_123",
"lead_source": "USDALoans.com",
"lead_type": 123,
"representative": 456,
"us_state": "CA"
},
{
"email": "first_name@trysela.com",
"phone_number": "+18042221111",
"metadata": {
"first_name": "First",
"last_name": "Name",
"timezone": "America/Los_Angeles",
"property_address": "123 Main St",
"property_city": "San Francisco",
"property_state": "California",
"property_zip": "94101",
"address": "456 2nd St",
"city": "Los Angeles",
"state": "California",
"zip": "90001",
"property_value": 725000,
"property_type": "single_family",
"occupancy_type": "primary_residence",
"funded_date": "2021-06-15",
"loan_type": "conventional",
"loan_program": "30-year fixed",
"loan_rate": 7.1,
"ltv": 62,
"va_indicator": false,
"fha_indicator": false,
"loan_amount": 450000,
"loan_purpose": "refinance",
"loan_close_timeframe": "30-45 days",
"preferred_loan_product": "30-year fixed"
},
"external_id": "id_in_your_crm_123",
"lead_source": "USDALoans.com",
"lead_type": 123,
"representative": 456,
"us_state": "CA"
}
]
}'{
"results": [
{
"id": 123,
"action": "created"
},
{
"id": 456,
"action": "reengaged"
},
{
"id": null,
"action": "error",
"error": "Each lead must be a JSON object."
}
]
}Leads
Bulk Create Leads
Creates or reengages multiple leads in one request. Each item accepts the same fields as POST /api/leads/. Results preserve request order and report whether each item was created, reengaged, or failed validation.
POST
/
api
/
leads
/
bulk-create
BulkCreateLeads
curl --request POST \
--url https://api.trysela.com/api/leads/bulk-create/ \
--header 'Authorization: Token <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"leads": [
{
"email": "first_name@trysela.com",
"phone_number": "+18042221111",
"metadata": {
"first_name": "First",
"last_name": "Name",
"timezone": "America/Los_Angeles",
"property_address": "123 Main St",
"property_city": "San Francisco",
"property_state": "California",
"property_zip": "94101",
"address": "456 2nd St",
"city": "Los Angeles",
"state": "California",
"zip": "90001"
},
"external_id": "id_in_your_crm_123",
"lead_source": "USDALoans.com",
"lead_type": 123,
"representative": 456,
"us_state": "CA"
},
{
"email": "first_name@trysela.com",
"phone_number": "+18042221111",
"metadata": {
"first_name": "First",
"last_name": "Name",
"timezone": "America/Los_Angeles",
"property_address": "123 Main St",
"property_city": "San Francisco",
"property_state": "California",
"property_zip": "94101",
"address": "456 2nd St",
"city": "Los Angeles",
"state": "California",
"zip": "90001",
"property_value": 725000,
"property_type": "single_family",
"occupancy_type": "primary_residence",
"funded_date": "2021-06-15",
"loan_type": "conventional",
"loan_program": "30-year fixed",
"loan_rate": 7.1,
"ltv": 62,
"va_indicator": false,
"fha_indicator": false,
"loan_amount": 450000,
"loan_purpose": "refinance",
"loan_close_timeframe": "30-45 days",
"preferred_loan_product": "30-year fixed"
},
"external_id": "id_in_your_crm_123",
"lead_source": "USDALoans.com",
"lead_type": 123,
"representative": 456,
"us_state": "CA"
}
]
}'{
"results": [
{
"id": 123,
"action": "created"
},
{
"id": 456,
"action": "reengaged"
},
{
"id": null,
"action": "error",
"error": "Each lead must be a JSON object."
}
]
}Authorizations
Token-based authentication with required prefix "Token"
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Show child attributes
Show child attributes
Response
Per-lead bulk create results.
Show child attributes
Show child attributes
⌘I