Authorizations
Token-based authentication with required prefix "Token"
Body
Response
Lead created successfully.
The response is of type object
.
curl --request POST \
--url https://api.trysela.com/api/leads/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"phone_number": "<string>",
"metadata": "<any>",
"status": "UNKNOWN",
"status_reason": "UNKNOWN",
"lead_type": 123,
"external_id": "<string>",
"us_state": "AL",
"lead_source": "<string>",
"reengagement_count": 1073741823,
"reengagement_time": "2023-11-07T05:31:56Z",
"call_schedule_start_time": "2023-11-07T05:31:56Z"
}'
{
"id": 28013,
"email": "first_name@trysela.com",
"phone_number": "+15101234567",
"metadata": {
"phone_number": "+15101234567",
"email": "first_name@trysela.com",
"first_name": "First",
"last_name": "Name",
"timezone": "America/Los_Angeles",
"created_at": "02/28/2025 15:09",
"property_address": "123 Main St",
"property_city": "San Francisco",
"property_state": "California",
"property_zip": "94101",
"address": "456 2nd St",
"city": "Los Angeles",
"us_state": "California",
"zip": "90001",
"lead_source": "USDALoans.com",
"external_id": "id_in_your_crm_123"
},
"modified_time": "2025-02-28T15:09:03.139554-08:00",
"created_time": "2025-02-28T15:09:03.122515-08:00",
"status_reason": null,
"lead_source": "USDALoans.com",
"lead_type": 123,
"next_call_time": null,
"external_id": "id_in_your_crm_123",
"us_state": "CA",
"reengagement_count": 0,
"reengagement_time": null
}
Creates a lead. Will also initiate the call schedule, if outbound calling is configured.
curl --request POST \
--url https://api.trysela.com/api/leads/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"phone_number": "<string>",
"metadata": "<any>",
"status": "UNKNOWN",
"status_reason": "UNKNOWN",
"lead_type": 123,
"external_id": "<string>",
"us_state": "AL",
"lead_source": "<string>",
"reengagement_count": 1073741823,
"reengagement_time": "2023-11-07T05:31:56Z",
"call_schedule_start_time": "2023-11-07T05:31:56Z"
}'
{
"id": 28013,
"email": "first_name@trysela.com",
"phone_number": "+15101234567",
"metadata": {
"phone_number": "+15101234567",
"email": "first_name@trysela.com",
"first_name": "First",
"last_name": "Name",
"timezone": "America/Los_Angeles",
"created_at": "02/28/2025 15:09",
"property_address": "123 Main St",
"property_city": "San Francisco",
"property_state": "California",
"property_zip": "94101",
"address": "456 2nd St",
"city": "Los Angeles",
"us_state": "California",
"zip": "90001",
"lead_source": "USDALoans.com",
"external_id": "id_in_your_crm_123"
},
"modified_time": "2025-02-28T15:09:03.139554-08:00",
"created_time": "2025-02-28T15:09:03.122515-08:00",
"status_reason": null,
"lead_source": "USDALoans.com",
"lead_type": 123,
"next_call_time": null,
"external_id": "id_in_your_crm_123",
"us_state": "CA",
"reengagement_count": 0,
"reengagement_time": null
}
Token-based authentication with required prefix "Token"
Lead created successfully.
The response is of type object
.