id to change a member's role.x-workspace-key; workspace gives the workspace name.totalSearchedCount is counted for the workspace selected by x-workspace-key (the primary workspace by default), so it can be lower than the number of members returned across workspaces.curl --location 'https://api.zapmail.ai/api/v3/workspaces/members' \
--header 'x-auth-zapmail;'{
"status": 200,
"message": "Members fetched successfully",
"data": {
"totalSearchedCount": 1,
"currentPage": 1,
"nextPage": 2,
"totalPages": 1,
"members": [
{
"id": "e7a1b2c3-4d5e-4f60-8a9b-0c1d2e3f4a5b",
"role": "EDITOR",
"user": {
"id": "2b9c7d10-5e4f-4a3b-9c8d-7e6f5a4b3c2d",
"email": "sam@acme.com",
"firstName": "Sam",
"lastName": "Lee"
},
"createdAt": "2026-09-14T08:21:37.000Z",
"workspace": "Acme Outreach"
}
]
}
}