Endpoint
GET /api/v1/team-members
Authentication
Every request must include a business access token in one of the following headers. If both headers are sent, Authorization is used.
- Tokens are scoped to the business, so the response includes only members belonging to that business.
- A missing, invalid, or expired token returns
401 Unauthorized. - Keep the token secret. Do not expose it in client-side code or public repositories. Rotate it immediately if it may have been leaked.
Request
Headers
Path and query parameters
None. The endpoint does not require path or query parameters.
Body
No request body is required.
GET /api/v1/team-members HTTP/1.1
Host: client-api.e-so.in
Authorization: Bearer YOUR_TOKEN
Responses
Success — 200 OK
Returns the team members for the authenticated business. The payload is an empty array when no members are found.
{
"status": 200,
"success": true,
"message": "success",
"payload": [
{
"id": 42,
"name": "Example Member",
"email": "member@example.com",
"role_id": "Admin"
}
]
}
Team member fields
Error responses
Behavior
Code examples
Replace YOUR_TOKEN with the business access token.
cURL
curl -X GET "https://client-api.e-so.in/api/v1/team-members" \
-H "Authorization: Bearer YOUR_TOKEN"
# Alternative header
curl -X GET "https://client-api.e-so.in/api/v1/team-members" \
-H "auth-key: YOUR_TOKEN"
JavaScript — fetch
const response = await fetch(
"https://client-api.e-so.in/api/v1/team-members",
{
method: "GET",
headers: { Authorization: "Bearer YOUR_TOKEN" },
},
);
const body = await response.json();
if (!response.ok) {
console.error(`Error ${body.status}: ${body.message}`);
} else {
body.payload.forEach((member) => {
console.log(`${member.id} — ${member.name} (${member.role_id})`);
});
}
Python — requests
import requests
url = "https://client-api.e-so.in/api/v1/team-members"
headers = {"Authorization": "Bearer YOUR_TOKEN"}
response = requests.get(url, headers=headers)
if response.status_code == 200:
for member in response.json()["payload"]:
print(member["id"], member["name"], member["role_id"])
elif response.status_code == 401:
print("Authentication failed — check your token.")
else:
print(f"Unexpected error {response.status_code}: {response.text}")
Support
If an integration issue continues, contact EasySocial Support and include the full request URL, the status and message from the response, and the request timestamp in UTC. Never include the access-token value.