Skip to main content

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_id
  • members (array)
  • members[].id
  • members[].username
  • members[].role (member or owner)

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"
}
]
}