Community Members
Get community member identities and roles.
Request
- Method:
GET - URL:
https://chattz.net/api/v1/communities/members?id=COMMUNITY_ID - Auth: Required (the community API key)
Query Parameters
id(required, numeric): Community ID
Success Fields
community_idmembers(array)members[].idmembers[].usernamemembers[].role(memberorowner)
Example Request
curl "https://chattz.net/api/v1/communities/members?id=123" \
-H "X-Chattz-Api-Key: YOUR_KEY"
Example Success Response
{
"success": true,
"code": "community_members_fetched",
"community_id": 123,
"members": [
{
"id": 42,
"username": "alice",
"role": "owner"
},
{
"id": 84,
"username": "bob",
"role": "member"
}
]
}