curl --location 'http://fssportal.com/api/v1/client/user_client' \
--header 'X-API-Token: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"company_name": "630311275"
}'
const response = await fetch('http://fssportal.com/api/v1/client/user_client', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"company_name": "630311275"
})
});
const data = await response.json();
{
"message": "Clients get successfully.",
"data": {
"current_page": 1,
"data": [
{
"id": 1653,
"user_id": 73,
"lead_source_id": null,
"end_client_known": 1,
"quote_no": "Ha",
"project_name": null,
"name": "Solatech Testing",
"surname": "Wow",
"email": "testss@gmail.com",
"phone_no": "84600 08773",
"location": "Rajkot",
"address": "403 Apple Avenue, 40 Ft Road, Om Nagar Circle Rajkot, Rajkot 360005",
"state": "Arizona",
"city": "Rajkot",
"zip_code": "360005",
"billing_address": "403 Apple Avenue, 40 Ft Road, Om Nagar Circle Rajkot, Rajkot 360005",
"billing_city": "Rajkot",
"billing_state": "Arizona",
"billing_zip_code": "360005",
"created_at": "2026-03-01T08:00:39.000000Z",
"lead_source_name": null,
"lead_source_email": null
},
{
"id": 1585,
"user_id": 73,
"lead_source_id": null,
"end_client_known": 1,
"quote_no": "",
"project_name": null,
"name": "Avni",
"surname": "Thakarar",
"email": "avni@test.com",
"phone_no": "",
"location": "Rajkot",
"address": "",
"state": "",
"city": "",
"zip_code": "",
"billing_address": "",
"billing_city": "",
"billing_state": "",
"billing_zip_code": "",
"created_at": "2026-01-28T12:24:21.000000Z",
"lead_source_name": null,
"lead_source_email": null
},
{
"id": 1469,
"user_id": 73,
"lead_source_id": null,
"end_client_known": 0,
"quote_no": "",
"project_name": "Test",
"name": "QuickQuote",
"surname": "QuickQuote",
"email": "fss@gmail.com",
"phone_no": "",
"location": "QuickQuoteLocation",
"address": "",
"state": "",
"city": "",
"zip_code": "",
"billing_address": "",
"billing_city": "",
"billing_state": "",
"billing_zip_code": "",
"created_at": "2025-12-12T11:57:35.000000Z",
"lead_source_name": null,
"lead_source_email": null
},
{
"id": 1235,
"user_id": 73,
"lead_source_id": 63,
"end_client_known": 0,
"quote_no": "",
"project_name": "Priyanka Project",
"name": "Unknown",
"surname": "Nagvadia",
"email": "pooja_20250513163813@gmail.com",
"phone_no": "",
"location": null,
"address": "Aaa",
"state": "CA",
"city": "Rerere",
"zip_code": "",
"billing_address": "Aa",
"billing_city": "Erere",
"billing_state": "CO",
"billing_zip_code": "65656",
"created_at": "2025-05-13T11:08:29.000000Z",
"lead_source_name": "Pooja Nagvadia",
"lead_source_email": "pooja@gmail.com"
},
{
"id": 1210,
"user_id": 73,
"lead_source_id": 35,
"end_client_known": 1,
"quote_no": "Wiwa",
"project_name": null,
"name": "Test",
"surname": "Fss",
"email": "test@gmail.com",
"phone_no": "12345678",
"location": "Rajkot",
"address": "Er",
"state": "Alabama",
"city": "Rajkot",
"zip_code": "360004",
"billing_address": "Er",
"billing_city": "Rajkot",
"billing_state": "Alabama",
"billing_zip_code": "360004",
"created_at": "2025-04-13T04:52:12.000000Z",
"lead_source_name": "Hetal Prajapati",
"lead_source_email": "lol566@gmail.com"
}
],
"first_page_url": "http://localhost/fss/public/api/v1/client/user_client?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost/fss/public/api/v1/client/user_client?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost/fss/public/api/v1/client/user_client?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost/fss/public/api/v1/client/user_client",
"per_page": 20,
"prev_page_url": null,
"to": 5,
"total": 5
}
}
Client Management
Get User Client
Get clients shared by company members
POST
/
api
/
v1
/
client
/
user_client
curl --location 'http://fssportal.com/api/v1/client/user_client' \
--header 'X-API-Token: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"company_name": "630311275"
}'
const response = await fetch('http://fssportal.com/api/v1/client/user_client', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"company_name": "630311275"
})
});
const data = await response.json();
{
"message": "Clients get successfully.",
"data": {
"current_page": 1,
"data": [
{
"id": 1653,
"user_id": 73,
"lead_source_id": null,
"end_client_known": 1,
"quote_no": "Ha",
"project_name": null,
"name": "Solatech Testing",
"surname": "Wow",
"email": "testss@gmail.com",
"phone_no": "84600 08773",
"location": "Rajkot",
"address": "403 Apple Avenue, 40 Ft Road, Om Nagar Circle Rajkot, Rajkot 360005",
"state": "Arizona",
"city": "Rajkot",
"zip_code": "360005",
"billing_address": "403 Apple Avenue, 40 Ft Road, Om Nagar Circle Rajkot, Rajkot 360005",
"billing_city": "Rajkot",
"billing_state": "Arizona",
"billing_zip_code": "360005",
"created_at": "2026-03-01T08:00:39.000000Z",
"lead_source_name": null,
"lead_source_email": null
},
{
"id": 1585,
"user_id": 73,
"lead_source_id": null,
"end_client_known": 1,
"quote_no": "",
"project_name": null,
"name": "Avni",
"surname": "Thakarar",
"email": "avni@test.com",
"phone_no": "",
"location": "Rajkot",
"address": "",
"state": "",
"city": "",
"zip_code": "",
"billing_address": "",
"billing_city": "",
"billing_state": "",
"billing_zip_code": "",
"created_at": "2026-01-28T12:24:21.000000Z",
"lead_source_name": null,
"lead_source_email": null
},
{
"id": 1469,
"user_id": 73,
"lead_source_id": null,
"end_client_known": 0,
"quote_no": "",
"project_name": "Test",
"name": "QuickQuote",
"surname": "QuickQuote",
"email": "fss@gmail.com",
"phone_no": "",
"location": "QuickQuoteLocation",
"address": "",
"state": "",
"city": "",
"zip_code": "",
"billing_address": "",
"billing_city": "",
"billing_state": "",
"billing_zip_code": "",
"created_at": "2025-12-12T11:57:35.000000Z",
"lead_source_name": null,
"lead_source_email": null
},
{
"id": 1235,
"user_id": 73,
"lead_source_id": 63,
"end_client_known": 0,
"quote_no": "",
"project_name": "Priyanka Project",
"name": "Unknown",
"surname": "Nagvadia",
"email": "pooja_20250513163813@gmail.com",
"phone_no": "",
"location": null,
"address": "Aaa",
"state": "CA",
"city": "Rerere",
"zip_code": "",
"billing_address": "Aa",
"billing_city": "Erere",
"billing_state": "CO",
"billing_zip_code": "65656",
"created_at": "2025-05-13T11:08:29.000000Z",
"lead_source_name": "Pooja Nagvadia",
"lead_source_email": "pooja@gmail.com"
},
{
"id": 1210,
"user_id": 73,
"lead_source_id": 35,
"end_client_known": 1,
"quote_no": "Wiwa",
"project_name": null,
"name": "Test",
"surname": "Fss",
"email": "test@gmail.com",
"phone_no": "12345678",
"location": "Rajkot",
"address": "Er",
"state": "Alabama",
"city": "Rajkot",
"zip_code": "360004",
"billing_address": "Er",
"billing_city": "Rajkot",
"billing_state": "Alabama",
"billing_zip_code": "360004",
"created_at": "2025-04-13T04:52:12.000000Z",
"lead_source_name": "Hetal Prajapati",
"lead_source_email": "lol566@gmail.com"
}
],
"first_page_url": "http://localhost/fss/public/api/v1/client/user_client?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost/fss/public/api/v1/client/user_client?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost/fss/public/api/v1/client/user_client?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost/fss/public/api/v1/client/user_client",
"per_page": 20,
"prev_page_url": null,
"to": 5,
"total": 5
}
}
Endpoint
POST /api/v1/client/user_client
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
string
required
Name of the company to fetch clients for.
Response
string
message
object
data
Show data
Show data
integer
current page
array
data
Show data item
Show data item
integer
id
integer
user id
object
lead source id
integer
end client known
string
quote no
object
project name
string
name
string
surname
string
email
string
phone no
string
location
string
address
string
state
string
city
string
zip code
string
billing address
string
billing city
string
billing state
string
billing zip code
string
created at
object
lead source name
object
lead source email
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/client/user_client' \
--header 'X-API-Token: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"company_name": "630311275"
}'
const response = await fetch('http://fssportal.com/api/v1/client/user_client', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"company_name": "630311275"
})
});
const data = await response.json();
{
"message": "Clients get successfully.",
"data": {
"current_page": 1,
"data": [
{
"id": 1653,
"user_id": 73,
"lead_source_id": null,
"end_client_known": 1,
"quote_no": "Ha",
"project_name": null,
"name": "Solatech Testing",
"surname": "Wow",
"email": "testss@gmail.com",
"phone_no": "84600 08773",
"location": "Rajkot",
"address": "403 Apple Avenue, 40 Ft Road, Om Nagar Circle Rajkot, Rajkot 360005",
"state": "Arizona",
"city": "Rajkot",
"zip_code": "360005",
"billing_address": "403 Apple Avenue, 40 Ft Road, Om Nagar Circle Rajkot, Rajkot 360005",
"billing_city": "Rajkot",
"billing_state": "Arizona",
"billing_zip_code": "360005",
"created_at": "2026-03-01T08:00:39.000000Z",
"lead_source_name": null,
"lead_source_email": null
},
{
"id": 1585,
"user_id": 73,
"lead_source_id": null,
"end_client_known": 1,
"quote_no": "",
"project_name": null,
"name": "Avni",
"surname": "Thakarar",
"email": "avni@test.com",
"phone_no": "",
"location": "Rajkot",
"address": "",
"state": "",
"city": "",
"zip_code": "",
"billing_address": "",
"billing_city": "",
"billing_state": "",
"billing_zip_code": "",
"created_at": "2026-01-28T12:24:21.000000Z",
"lead_source_name": null,
"lead_source_email": null
},
{
"id": 1469,
"user_id": 73,
"lead_source_id": null,
"end_client_known": 0,
"quote_no": "",
"project_name": "Test",
"name": "QuickQuote",
"surname": "QuickQuote",
"email": "fss@gmail.com",
"phone_no": "",
"location": "QuickQuoteLocation",
"address": "",
"state": "",
"city": "",
"zip_code": "",
"billing_address": "",
"billing_city": "",
"billing_state": "",
"billing_zip_code": "",
"created_at": "2025-12-12T11:57:35.000000Z",
"lead_source_name": null,
"lead_source_email": null
},
{
"id": 1235,
"user_id": 73,
"lead_source_id": 63,
"end_client_known": 0,
"quote_no": "",
"project_name": "Priyanka Project",
"name": "Unknown",
"surname": "Nagvadia",
"email": "pooja_20250513163813@gmail.com",
"phone_no": "",
"location": null,
"address": "Aaa",
"state": "CA",
"city": "Rerere",
"zip_code": "",
"billing_address": "Aa",
"billing_city": "Erere",
"billing_state": "CO",
"billing_zip_code": "65656",
"created_at": "2025-05-13T11:08:29.000000Z",
"lead_source_name": "Pooja Nagvadia",
"lead_source_email": "pooja@gmail.com"
},
{
"id": 1210,
"user_id": 73,
"lead_source_id": 35,
"end_client_known": 1,
"quote_no": "Wiwa",
"project_name": null,
"name": "Test",
"surname": "Fss",
"email": "test@gmail.com",
"phone_no": "12345678",
"location": "Rajkot",
"address": "Er",
"state": "Alabama",
"city": "Rajkot",
"zip_code": "360004",
"billing_address": "Er",
"billing_city": "Rajkot",
"billing_state": "Alabama",
"billing_zip_code": "360004",
"created_at": "2025-04-13T04:52:12.000000Z",
"lead_source_name": "Hetal Prajapati",
"lead_source_email": "lol566@gmail.com"
}
],
"first_page_url": "http://localhost/fss/public/api/v1/client/user_client?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost/fss/public/api/v1/client/user_client?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost/fss/public/api/v1/client/user_client?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost/fss/public/api/v1/client/user_client",
"per_page": 20,
"prev_page_url": null,
"to": 5,
"total": 5
}
}
Notes
- Authentication is required
⌘I
