Skip to content

Groups v2

Reference for the Groups v2 endpoints on Roblox.

Base URL: https://groups.roblox.com

MethodPathName
GET/v2/groupsgetGroups
GET/v2/groups/:groupId/experiencesgetGroupsGroupidExperiences
GET/v2/groups/:groupId/relationships/:groupRelationshipTypegetGroupsGroupidRelationshipsGrouprelationshiptype
GET/v2/groups/:groupId/relationships/:groupRelationshipType/requestsgetGroupsGroupidRelationshipsGrouprelationshiptypeRequests
GET/v2/groups/:groupId/wall/postsgetGroupsGroupidWallPosts
POST/v2/groups/:groupId/wall/postspostGroupsGroupidWallPosts
GET/v2/users/:userId/groups/rolesgetUsersUseridGroupsRoles

GET /v2/groups

Multi-get groups information by Ids.

Usage
import { fetchApi } from 'rozod';
import { getGroups } from 'rozod/lib/endpoints/groupsv2';
const data = await fetchApi(getGroups, {
groupIds: /* number */
});
NameTypeRequiredDescription
groupIdsnumberYesThe group Ids.
FieldTypeDescription
dataobject[]See below

data[] item fields:

FieldTypeDescription
idnumber
namestring
descriptionstring
ownerobjectSee below
memberCountnumber
createdstring
hasVerifiedBadgeboolean

owner fields:

FieldTypeDescription
idnumber
type'User'
namestring
StatusDescription
4002: Too many ids in request.
3: Ids could not be parsed from request.

GET /v2/groups/:groupId/experiences

Gets experiences created by the specified group id.

Usage
import { fetchApi } from 'rozod';
import { getGroupsGroupidExperiences } from 'rozod/lib/endpoints/groupsv2';
const data = await fetchApi(getGroupsGroupidExperiences, {
groupId: /* integer */,
cursor: /* string? */,
sortOrder: /* enum */
});
NameTypeRequiredDescription
groupIdintegerYesThe group Id
cursorstring?NoThe paging cursor for the previous or next page.
sortOrderenumYesThe order the results are sorted in.
FieldTypeDescription
previousPageCursorstring
nextPageCursorstring
dataobject[]See below

data[] item fields:

FieldTypeDescription
idnumber
namestring
descriptionstring
creatorobjectSee below
rootPlaceobjectSee below
createdstring
updatedstring
placeVisitsnumber

creator fields:

FieldTypeDescription
idnumber
type`“User""Group”`
namestring

rootPlace fields:

FieldTypeDescription
idnumber
type`“Image""TShirt"
namestring
StatusDescription
50147: Code path is not implemented.

getGroupsGroupidRelationshipsGrouprelationshiptype

Section titled “getGroupsGroupidRelationshipsGrouprelationshiptype”

GET /v2/groups/:groupId/relationships/:groupRelationshipType

Gets a group’s relationships with cursor-based pagination.

Usage
import { fetchApi } from 'rozod';
import { getGroupsGroupidRelationshipsGrouprelationshiptype } from 'rozod/lib/endpoints/groupsv2';
const data = await fetchApi(getGroupsGroupidRelationshipsGrouprelationshiptype, {
groupId: /* integer */,
groupRelationshipType: /* string */,
cursor: /* string? */,
sortOrder: /* enum */
});
NameTypeRequiredDescription
groupIdintegerYesThe group Id.
groupRelationshipTypestringYesThe group relationship type, enemies or allies.
cursorstring?NoThe paging cursor for the previous or next page.
sortOrderenumYesThe order the results are sorted in.
FieldTypeDescription
groupIdnumber
relationshipType`“Allies""Enemies”`
groupResponsesobjectSee below

groupResponses fields:

FieldTypeDescription
previousPageCursorstring
nextPageCursorstring
dataobject[]See below

data[] item fields:

FieldTypeDescription
idnumber
namestring
descriptionstring
ownerobjectSee below
shoutobjectSee below
memberCountnumber
isBuildersClubOnlyboolean
publicEntryAllowedboolean
isLockedboolean
hasVerifiedBadgeboolean
hasSocialModulesboolean

owner fields:

FieldTypeDescription
buildersClubMembershipType`01
hasVerifiedBadgeboolean
userIdnumber
usernamestring
displayNamestring

shout fields:

FieldTypeDescription
bodystring
posterobjectSee below
createdstring
updatedstring

poster fields:

FieldTypeDescription
buildersClubMembershipTypeobject
hasVerifiedBadgeobject
userIdobject
usernameobject
displayNameobject
StatusDescription
4001: Group is invalid or does not exist.
4: Group relationship type or request type is invalid.
8: Invalid or missing pagination parameters

getGroupsGroupidRelationshipsGrouprelationshiptypeRequests

Section titled “getGroupsGroupidRelationshipsGrouprelationshiptypeRequests”

GET /v2/groups/:groupId/relationships/:groupRelationshipType/requests

Gets a group’s relationship requests with cursor-based pagination.

Usage
import { fetchApi } from 'rozod';
import { getGroupsGroupidRelationshipsGrouprelationshiptypeRequests } from 'rozod/lib/endpoints/groupsv2';
const data = await fetchApi(getGroupsGroupidRelationshipsGrouprelationshiptypeRequests, {
groupId: /* integer */,
groupRelationshipType: /* string */,
cursor: /* string? */,
sortOrder: /* enum */
});
NameTypeRequiredDescription
groupIdintegerYesThe group Id.
groupRelationshipTypestringYesThe group relationship type of the request, only allies are supported.
cursorstring?NoThe paging cursor for the previous or next page.
sortOrderenumYesThe order the results are sorted in.
FieldTypeDescription
groupIdnumber
relationshipType`“Allies""Enemies”`
groupResponsesobjectSee below

groupResponses fields:

FieldTypeDescription
previousPageCursorstring
nextPageCursorstring
dataobject[]See below

data[] item fields:

FieldTypeDescription
idnumber
namestring
descriptionstring
ownerobjectSee below
shoutobjectSee below
memberCountnumber
isBuildersClubOnlyboolean
publicEntryAllowedboolean
isLockedboolean
hasVerifiedBadgeboolean
hasSocialModulesboolean

owner fields:

FieldTypeDescription
buildersClubMembershipType`01
hasVerifiedBadgeboolean
userIdnumber
usernamestring
displayNamestring

shout fields:

FieldTypeDescription
bodystring
posterobjectSee below
createdstring
updatedstring

poster fields:

FieldTypeDescription
buildersClubMembershipTypeobject
hasVerifiedBadgeobject
userIdobject
usernameobject
displayNameobject
StatusDescription
4001: Group is invalid or does not exist.
4: Group relationship type or request type is invalid.
8: Invalid or missing pagination parameters
4010: Authorization has been denied for this request.
4035: You don’t have permission to manage this group’s relationships.

GET /v2/groups/:groupId/wall/posts

Gets a list of group wall posts.

Usage
import { fetchApi } from 'rozod';
import { getGroupsGroupidWallPosts } from 'rozod/lib/endpoints/groupsv2';
const data = await fetchApi(getGroupsGroupidWallPosts, {
groupId: /* integer */,
cursor: /* string? */,
sortOrder: /* enum */
});
NameTypeRequiredDescription
groupIdintegerYesThe group id.
cursorstring?NoThe paging cursor for the previous or next page.
sortOrderenumYesSorted by group wall post Id
FieldTypeDescription
previousPageCursorstring
nextPageCursorstring
dataobject[]See below

data[] item fields:

FieldTypeDescription
idnumber
posterobjectSee below
bodystring
createdstring
updatedstring

poster fields:

FieldTypeDescription
userobjectSee below
roleobjectSee below

user fields:

FieldTypeDescription
buildersClubMembershipType`01
hasVerifiedBadgeboolean
userIdnumber
usernamestring
displayNamestring

role fields:

FieldTypeDescription
idnumber
namestring
descriptionstring
ranknumber
memberCountnumber
isBaseboolean
StatusDescription
4001: The group is invalid or does not exist.
4032: You do not have permission to access this group wall.

POST /v2/groups/:groupId/wall/posts

Creates a post on a group wall

Usage
import { fetchApi } from 'rozod';
import { postGroupsGroupidWallPosts } from 'rozod/lib/endpoints/groupsv2';
const data = await fetchApi(postGroupsGroupidWallPosts, {
groupId: /* integer */,
body: { /* ... */ }
});
NameTypeRequiredDescription
groupIdintegerYesThe group id.
FieldTypeDescription
bodystring
captchaIdstring
captchaTokenstring
captchaProviderstring
challengeIdstring
FieldTypeDescription
idnumber
posterobjectSee below
bodystring
createdstring
updatedstring

poster fields:

FieldTypeDescription
userobjectSee below
roleobjectSee below

user fields:

FieldTypeDescription
buildersClubMembershipType`01
hasVerifiedBadgeboolean
userIdnumber
usernamestring
displayNamestring

role fields:

FieldTypeDescription
idnumber
namestring
descriptionstring
ranknumber
memberCountnumber
isBaseboolean
StatusDescription
4001: The group is invalid or does not exist.
5: Your post was empty, white space, or more than 500 characters.
9: The provided content was moderated.
4010: Authorization has been denied for this request.
4030: Token Validation Failed
2: You do not have permission to access this group wall.
4294: You are posting too fast, please try again in a few minutes.

GET /v2/users/:userId/groups/roles

Gets a list of all group roles for groups the specified user is in.

Usage
import { fetchApi } from 'rozod';
import { getUsersUseridGroupsRoles } from 'rozod/lib/endpoints/groupsv2';
const data = await fetchApi(getUsersUseridGroupsRoles, {
userId: /* integer */,
includeLocked: /* boolean */,
includeNotificationPreferences: /* boolean */,
discoveryType: /* unknown */
});
NameTypeRequiredDescription
userIdintegerYesThe user id.
includeLockedbooleanYes
includeNotificationPreferencesbooleanYes
discoveryTypeunknownYes
FieldTypeDescription
dataobject[]See below

data[] item fields:

FieldTypeDescription
groupobjectSee below
roleobjectSee below
isNotificationsEnabledboolean
notificationPreferencesobject[]See below

group fields:

FieldTypeDescription
idnumber
namestring
memberCountnumber
hasVerifiedBadgeboolean

role fields:

FieldTypeDescription
idnumber
namestring
ranknumber

notificationPreferences[] item fields:

FieldTypeDescription
type`“AnnouncementCreatedNotification""ForumPostCreatedNotification"
enabledboolean
namestring
descriptionstring
StatusDescription
4003: The user is invalid or does not exist.