Skip to main content
GET
/
api
/
v3
/
communities
/
{communityId}
/
permissions
/
me
Get self permission in community
curl --request GET \
  --url https://apix.us.amity.co/api/v3/communities/{communityId}/permissions/me \
  --header 'Authorization: Bearer <token>'
{
  "isCreator": false,
  "permissions": [
    "MUTE_CHANNEL"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

communityId
string
required
Required string length: 1 - 900

Response

Communities permission information for this user

isCreator
boolean

Is this person create this community?

Example:

false

permissions
enum<string>[]
Available options:
MUTE_CHANNEL,
CLOSE_CHANNEL,
EDIT_CHANNEL,
EDIT_CHANNEL_RATELIMIT,
EDIT_MESSAGE,
DELETE_MESSAGE,
BAN_USER_FROM_CHANNEL,
MUTE_USER_INSIDE_CHANNEL,
ADD_CHANNEL_USER,
REMOVE_CHANNEL_USER,
EDIT_CHANNEL_USER,
ASSIGN_CHANNEL_USER_ROLE,
BAN_USER,
EDIT_USER,
ASSIGN_USER_ROLE,
EDIT_USER_FEED_POST,
DELETE_USER_FEED_POST,
EDIT_USER_FEED_COMMENT,
DELETE_USER_FEED_COMMENT,
ADD_COMMUNITY_USER,
REMOVE_COMMUNITY_USER,
EDIT_COMMUNITY_USER,
BAN_COMMUNITY_USER,
MUTE_COMMUNITY_USER,
EDIT_COMMUNITY,
DELETE_COMMUNITY,
EDIT_COMMUNITY_POST,
DELETE_COMMUNITY_POST,
PIN_COMMUNITY_POST,
EDIT_COMMUNITY_COMMENT,
DELETE_COMMUNITY_COMMENT,
ASSIGN_COMMUNITY_USER_ROLE,
CREATE_COMMUNITY_CATEGORY,
EDIT_COMMUNITY_CATEGORY,
DELETE_COMMUNITY_CATEGORY,
CREATE_ROLE,
EDIT_ROLE,
DELETE_ROLE,
MANAGE_COMMUNITY_STORY