curl --location 'http://fssportal.com/api/v1/user/get_company_user' \
--header 'X-API-Token: YOUR_API_TOKEN' \
--header 'Content-Type: application/json'
const response = await fetch('http://fssportal.com/api/v1/user/get_company_user', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
{
"message": "Success.",
"data": [
{
"id": 717,
"name": "Nathan Eldridge iPhone",
"phone_no": null,
"profile_image": "http://localhost/fss/public/uploads/profile_image/",
"email": "netest26@test.com"
},
{
"id": 718,
"name": "Nathan Eldridge iPad",
"phone_no": null,
"profile_image": "http://localhost/fss/public/uploads/profile_image/",
"email": "ipadtest26@test.com"
},
{
"id": 719,
"name": "Kelly Eldridge iPhone",
"phone_no": null,
"profile_image": "http://localhost/fss/public/uploads/profile_image/",
"email": "ketest26@test.com"
}
]
}
User Management
Get Company Users
Get all users in your company
POST
/
api
/
v1
/
user
/
get_company_user
curl --location 'http://fssportal.com/api/v1/user/get_company_user' \
--header 'X-API-Token: YOUR_API_TOKEN' \
--header 'Content-Type: application/json'
const response = await fetch('http://fssportal.com/api/v1/user/get_company_user', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
{
"message": "Success.",
"data": [
{
"id": 717,
"name": "Nathan Eldridge iPhone",
"phone_no": null,
"profile_image": "http://localhost/fss/public/uploads/profile_image/",
"email": "netest26@test.com"
},
{
"id": 718,
"name": "Nathan Eldridge iPad",
"phone_no": null,
"profile_image": "http://localhost/fss/public/uploads/profile_image/",
"email": "ipadtest26@test.com"
},
{
"id": 719,
"name": "Kelly Eldridge iPhone",
"phone_no": null,
"profile_image": "http://localhost/fss/public/uploads/profile_image/",
"email": "ketest26@test.com"
}
]
}
Endpoint
POST /api/v1/user/get_company_user
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
curl --location 'http://fssportal.com/api/v1/user/get_company_user' \
--header 'X-API-Token: YOUR_API_TOKEN' \
--header 'Content-Type: application/json'
const response = await fetch('http://fssportal.com/api/v1/user/get_company_user', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
{
"message": "Success.",
"data": [
{
"id": 717,
"name": "Nathan Eldridge iPhone",
"phone_no": null,
"profile_image": "http://localhost/fss/public/uploads/profile_image/",
"email": "netest26@test.com"
},
{
"id": 718,
"name": "Nathan Eldridge iPad",
"phone_no": null,
"profile_image": "http://localhost/fss/public/uploads/profile_image/",
"email": "ipadtest26@test.com"
},
{
"id": 719,
"name": "Kelly Eldridge iPhone",
"phone_no": null,
"profile_image": "http://localhost/fss/public/uploads/profile_image/",
"email": "ketest26@test.com"
}
]
}
Notes
- Authentication is required
⌘I
