curl --location 'http://fssportal.com/api/v1/lead_source/user_leadsource' \
--header 'X-API-Token: YOUR_API_TOKEN' \
--header 'Content-Type: application/json'
const response = await fetch('http://fssportal.com/api/v1/lead_source/user_leadsource', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
{
"message": "Lead Source get successfully.",
"data": {
"current_page": 1,
"data": [
{
"id": 148,
"company_name": "630311275",
"name": "Harshit3",
"surname": "Chauhan",
"email": "harshitchauhan5922+lc2@gmail.com",
"phone_no": "7203927561",
"address": "",
"state": "",
"city": "",
"zip_code": ""
},
{
"id": 147,
"company_name": "Hap Tech",
"name": "Harshit2",
"surname": "Chauhan",
"email": "harshitchauhan5922+le2@gmail.com",
"phone_no": "7203927561",
"address": "A-901 Ami Heights, Arihant nagar-1, b/h F.C.I Godaun, Jamnag",
"state": "Gujarat",
"city": "Rakot",
"zip_code": "110001"
},
{
"id": 146,
"company_name": "Hap Tech",
"name": "Harshit",
"surname": "Chauhan",
"email": "harshitchauhan5922+lead2@gmail.com",
"phone_no": "7203927561",
"address": "A-901 Ami Heights, Arihant nagar-1, b/h F.C.I Godaun, Jamnag",
"state": "Gujarat",
"city": "Rakot",
"zip_code": "110001"
},
{
"id": 76,
"company_name": "",
"name": "Sn",
"surname": "Aa",
"email": "ae@gmail.cm",
"phone_no": "12345678",
"address": "",
"state": "Not Found",
"city": "",
"zip_code": ""
},
{
"id": 75,
"company_name": "",
"name": "Snv",
"surname": "Rtr",
"email": "ddddnv@gmail.com",
"phone_no": "",
"address": "",
"state": "Not Found",
"city": "",
"zip_code": ""
},
{
"id": 60,
"company_name": "Smith Construction",
"name": "John",
"surname": "Smith",
"email": "j.smith@smith.con",
"phone_no": "3692572580",
"address": "123 Street Rd.",
"state": "Arkansas",
"city": "Boren",
"zip_code": "75286"
},
{
"id": 59,
"company_name": "Deutsch Interiors",
"name": "Sally",
"surname": "Smith",
"email": "sally@di.com",
"phone_no": "",
"address": "",
"state": "Not Found",
"city": "",
"zip_code": ""
},
{
"id": 51,
"company_name": "Techavtra",
"name": "Priyanka",
"surname": "Nagvadia",
"email": "priyanka@gmail.com",
"phone_no": "",
"address": "KKv hall",
"state": "CT",
"city": "Rajkot",
"zip_code": "361001"
},
{
"id": 50,
"company_name": "TEch",
"name": "Dhyara",
"surname": "Nagvadia",
"email": "dh@gmail.com",
"phone_no": "",
"address": "Kalavad raod",
"state": "DE",
"city": "Rajkot",
"zip_code": "361001"
},
{
"id": 20,
"company_name": "lead",
"name": "Ski",
"surname": "Ms",
"email": "lea@gmail.com",
"phone_no": "8460008773",
"address": "F",
"state": "California",
"city": "S",
"zip_code": "350004"
},
{
"id": 5,
"company_name": "Test1",
"name": "Harshit009",
"surname": "Chauhan",
"email": "harshitchauhan@gmail.com",
"phone_no": "",
"address": "Test Address",
"state": "Not Found",
"city": "Rajkot",
"zip_code": "360006"
},
{
"id": 3,
"company_name": "Pyjkkajkadfasdf",
"name": "AVNI 12345",
"surname": "TECHAVTRA",
"email": "Avni.thakrar@gmail.com",
"phone_no": "",
"address": "Rajkot",
"state": "Not Found",
"city": "Rajkot",
"zip_code": "3611002"
}
],
"first_page_url": "http://localhost/fss/public/api/v1/lead_source/user_leadsource?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost/fss/public/api/v1/lead_source/user_leadsource?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost/fss/public/api/v1/lead_source/user_leadsource?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost/fss/public/api/v1/lead_source/user_leadsource",
"per_page": 20,
"prev_page_url": null,
"to": 12,
"total": 12
}
}
Lead Sources
Get User Lead Sources
Get lead sources created by the user
POST
/
api
/
v1
/
lead_source
/
user_leadsource
curl --location 'http://fssportal.com/api/v1/lead_source/user_leadsource' \
--header 'X-API-Token: YOUR_API_TOKEN' \
--header 'Content-Type: application/json'
const response = await fetch('http://fssportal.com/api/v1/lead_source/user_leadsource', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
{
"message": "Lead Source get successfully.",
"data": {
"current_page": 1,
"data": [
{
"id": 148,
"company_name": "630311275",
"name": "Harshit3",
"surname": "Chauhan",
"email": "harshitchauhan5922+lc2@gmail.com",
"phone_no": "7203927561",
"address": "",
"state": "",
"city": "",
"zip_code": ""
},
{
"id": 147,
"company_name": "Hap Tech",
"name": "Harshit2",
"surname": "Chauhan",
"email": "harshitchauhan5922+le2@gmail.com",
"phone_no": "7203927561",
"address": "A-901 Ami Heights, Arihant nagar-1, b/h F.C.I Godaun, Jamnag",
"state": "Gujarat",
"city": "Rakot",
"zip_code": "110001"
},
{
"id": 146,
"company_name": "Hap Tech",
"name": "Harshit",
"surname": "Chauhan",
"email": "harshitchauhan5922+lead2@gmail.com",
"phone_no": "7203927561",
"address": "A-901 Ami Heights, Arihant nagar-1, b/h F.C.I Godaun, Jamnag",
"state": "Gujarat",
"city": "Rakot",
"zip_code": "110001"
},
{
"id": 76,
"company_name": "",
"name": "Sn",
"surname": "Aa",
"email": "ae@gmail.cm",
"phone_no": "12345678",
"address": "",
"state": "Not Found",
"city": "",
"zip_code": ""
},
{
"id": 75,
"company_name": "",
"name": "Snv",
"surname": "Rtr",
"email": "ddddnv@gmail.com",
"phone_no": "",
"address": "",
"state": "Not Found",
"city": "",
"zip_code": ""
},
{
"id": 60,
"company_name": "Smith Construction",
"name": "John",
"surname": "Smith",
"email": "j.smith@smith.con",
"phone_no": "3692572580",
"address": "123 Street Rd.",
"state": "Arkansas",
"city": "Boren",
"zip_code": "75286"
},
{
"id": 59,
"company_name": "Deutsch Interiors",
"name": "Sally",
"surname": "Smith",
"email": "sally@di.com",
"phone_no": "",
"address": "",
"state": "Not Found",
"city": "",
"zip_code": ""
},
{
"id": 51,
"company_name": "Techavtra",
"name": "Priyanka",
"surname": "Nagvadia",
"email": "priyanka@gmail.com",
"phone_no": "",
"address": "KKv hall",
"state": "CT",
"city": "Rajkot",
"zip_code": "361001"
},
{
"id": 50,
"company_name": "TEch",
"name": "Dhyara",
"surname": "Nagvadia",
"email": "dh@gmail.com",
"phone_no": "",
"address": "Kalavad raod",
"state": "DE",
"city": "Rajkot",
"zip_code": "361001"
},
{
"id": 20,
"company_name": "lead",
"name": "Ski",
"surname": "Ms",
"email": "lea@gmail.com",
"phone_no": "8460008773",
"address": "F",
"state": "California",
"city": "S",
"zip_code": "350004"
},
{
"id": 5,
"company_name": "Test1",
"name": "Harshit009",
"surname": "Chauhan",
"email": "harshitchauhan@gmail.com",
"phone_no": "",
"address": "Test Address",
"state": "Not Found",
"city": "Rajkot",
"zip_code": "360006"
},
{
"id": 3,
"company_name": "Pyjkkajkadfasdf",
"name": "AVNI 12345",
"surname": "TECHAVTRA",
"email": "Avni.thakrar@gmail.com",
"phone_no": "",
"address": "Rajkot",
"state": "Not Found",
"city": "Rajkot",
"zip_code": "3611002"
}
],
"first_page_url": "http://localhost/fss/public/api/v1/lead_source/user_leadsource?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost/fss/public/api/v1/lead_source/user_leadsource?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost/fss/public/api/v1/lead_source/user_leadsource?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost/fss/public/api/v1/lead_source/user_leadsource",
"per_page": 20,
"prev_page_url": null,
"to": 12,
"total": 12
}
}
Endpoint
POST /api/v1/lead_source/user_leadsource
This endpoint requires authentication
Headers
string
required
Your API access token. You can also set this globally in the API playground.
string
required
The platform making the request:
WEB, IOS, or ANDROID.Request Body
No request body required.Response
string
message
object
data
Show data
Show data
integer
current page
array
string
first page url
integer
from
integer
last page
string
last page url
object
next page url
string
path
integer
per page
object
prev page url
integer
to
integer
total
curl --location 'http://fssportal.com/api/v1/lead_source/user_leadsource' \
--header 'X-API-Token: YOUR_API_TOKEN' \
--header 'Content-Type: application/json'
const response = await fetch('http://fssportal.com/api/v1/lead_source/user_leadsource', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
{
"message": "Lead Source get successfully.",
"data": {
"current_page": 1,
"data": [
{
"id": 148,
"company_name": "630311275",
"name": "Harshit3",
"surname": "Chauhan",
"email": "harshitchauhan5922+lc2@gmail.com",
"phone_no": "7203927561",
"address": "",
"state": "",
"city": "",
"zip_code": ""
},
{
"id": 147,
"company_name": "Hap Tech",
"name": "Harshit2",
"surname": "Chauhan",
"email": "harshitchauhan5922+le2@gmail.com",
"phone_no": "7203927561",
"address": "A-901 Ami Heights, Arihant nagar-1, b/h F.C.I Godaun, Jamnag",
"state": "Gujarat",
"city": "Rakot",
"zip_code": "110001"
},
{
"id": 146,
"company_name": "Hap Tech",
"name": "Harshit",
"surname": "Chauhan",
"email": "harshitchauhan5922+lead2@gmail.com",
"phone_no": "7203927561",
"address": "A-901 Ami Heights, Arihant nagar-1, b/h F.C.I Godaun, Jamnag",
"state": "Gujarat",
"city": "Rakot",
"zip_code": "110001"
},
{
"id": 76,
"company_name": "",
"name": "Sn",
"surname": "Aa",
"email": "ae@gmail.cm",
"phone_no": "12345678",
"address": "",
"state": "Not Found",
"city": "",
"zip_code": ""
},
{
"id": 75,
"company_name": "",
"name": "Snv",
"surname": "Rtr",
"email": "ddddnv@gmail.com",
"phone_no": "",
"address": "",
"state": "Not Found",
"city": "",
"zip_code": ""
},
{
"id": 60,
"company_name": "Smith Construction",
"name": "John",
"surname": "Smith",
"email": "j.smith@smith.con",
"phone_no": "3692572580",
"address": "123 Street Rd.",
"state": "Arkansas",
"city": "Boren",
"zip_code": "75286"
},
{
"id": 59,
"company_name": "Deutsch Interiors",
"name": "Sally",
"surname": "Smith",
"email": "sally@di.com",
"phone_no": "",
"address": "",
"state": "Not Found",
"city": "",
"zip_code": ""
},
{
"id": 51,
"company_name": "Techavtra",
"name": "Priyanka",
"surname": "Nagvadia",
"email": "priyanka@gmail.com",
"phone_no": "",
"address": "KKv hall",
"state": "CT",
"city": "Rajkot",
"zip_code": "361001"
},
{
"id": 50,
"company_name": "TEch",
"name": "Dhyara",
"surname": "Nagvadia",
"email": "dh@gmail.com",
"phone_no": "",
"address": "Kalavad raod",
"state": "DE",
"city": "Rajkot",
"zip_code": "361001"
},
{
"id": 20,
"company_name": "lead",
"name": "Ski",
"surname": "Ms",
"email": "lea@gmail.com",
"phone_no": "8460008773",
"address": "F",
"state": "California",
"city": "S",
"zip_code": "350004"
},
{
"id": 5,
"company_name": "Test1",
"name": "Harshit009",
"surname": "Chauhan",
"email": "harshitchauhan@gmail.com",
"phone_no": "",
"address": "Test Address",
"state": "Not Found",
"city": "Rajkot",
"zip_code": "360006"
},
{
"id": 3,
"company_name": "Pyjkkajkadfasdf",
"name": "AVNI 12345",
"surname": "TECHAVTRA",
"email": "Avni.thakrar@gmail.com",
"phone_no": "",
"address": "Rajkot",
"state": "Not Found",
"city": "Rajkot",
"zip_code": "3611002"
}
],
"first_page_url": "http://localhost/fss/public/api/v1/lead_source/user_leadsource?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost/fss/public/api/v1/lead_source/user_leadsource?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost/fss/public/api/v1/lead_source/user_leadsource?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost/fss/public/api/v1/lead_source/user_leadsource",
"per_page": 20,
"prev_page_url": null,
"to": 12,
"total": 12
}
}
Notes
- Authentication is required
⌘I
