Get user groups
Get all groups
- 200
- 403
- 404
- 422
- 500
Request has been handled successfully.
Schema
- Array [
- ]
- Array [
- ]
data object
pages object[]
List of user pages.
The id of the room.
The name of the room.
The description of the room.
Whether the group is public or not.
Whether the group is active or not.
Whether the group is verified or not. Will be true
if it's a page.
The subdomain of the page. Will be empty when it is a group.
Possible values: [page
, group
]
The type of the group
The group slug. Will be empty when it is a page.
The avatar of the group.
The link of the group/page. Will contain only the base domain when it is a page.
The number of members.
The number of posts.
Whether the current user is an admin or not.
groups object[]
List of user groups.
The id of the room.
The name of the room.
The description of the room.
Whether the group is public or not.
Whether the group is active or not.
Whether the group is verified or not. Will be true
if it's a page.
The subdomain of the page. Will be empty when it is a group.
Possible values: [page
, group
]
The type of the group
The group slug. Will be empty when it is a page.
The avatar of the group.
The link of the group/page. Will contain only the base domain when it is a page.
The number of members.
The number of posts.
Whether the current user is an admin or not.
{
"success": true,
"data": {
"pages": [
{
"id": 123,
"name": "My Halaqa",
"description": "This is our Halaqa's group.",
"public": false,
"active": true,
"verified": true,
"subdomain": "my-page",
"roomType": "page",
"group": "my-halaqa",
"avatar": "/avatars/original/missing.png",
"link": "https://quranreflect.com/groups/my-room123",
"membersCount": 5,
"postsCount": "",
"currentUserIsAdmin": true
}
],
"groups": [
{
"id": 123,
"name": "My Halaqa",
"description": "This is our Halaqa's group.",
"public": false,
"active": true,
"verified": true,
"subdomain": "my-page",
"roomType": "page",
"group": "my-halaqa",
"avatar": "/avatars/original/missing.png",
"link": "https://quranreflect.com/groups/my-room123",
"membersCount": 5,
"postsCount": "",
"currentUserIsAdmin": true
}
]
}
}
Forbidden error. Can either be due to access token not being passed, having been expired or the caller trying to access a resource without enough permissions.
Schema
error object
{
"success": false,
"error": {
"code": "ForbiddenError",
"message": "Token expired"
}
}
Not Found. The resource being accessed does not exist.
Schema
error object
{
"success": false,
"error": {
"code": "NotFoundError",
"message": "The resource you're looking for does not exist"
}
}
Validation Error. The request includes one or more invalid params. Please check the request params and try again.
Schema
error object
{
"success": false,
"error": {
"code": "ValidationError",
"message": "`id` is required"
}
}
Server Error. Something went wrong, try again later.
Schema
error object
{
"success": false,
"error": {
"code": "ServerError",
"message": "Something went wrong"
}
}