Skip to content

Chat Members

The API type chat_member is a subset of the type user, specific to the needs of the chats feature. This means, for example, that the id value in a chat_member is a valid user ID too.

List of valid attributes:

AttributeDescriptionSpecifics
discarded_atNull or timestamp of removalCannot be set
emailEmail address of the userOptional, Unique on account if set
nameName of the user-

The following relationships can be included in requests:

RelationshipTypeDescription
roleshas_manyThe chat roles the user has in the specific chat

List

Example response:

{
"data": [
{
"id": "0e2eb81a-f952-4e8d-a6f8-9f757459a241",
"type": "chat_member",
"attributes": {
...
}
},
{
...
}
]
}

This endpoint returns all members of a chat.

HTTP Request

GET /api/v1/chats/:chat_id/members

URL Parameters

ParameterDescription
chat_idThe ID of the chat of which to return the members