Permissions

Get user permissions for a token

Returns the effective permissions for the authenticated user on a specific token. User address is inferred from the JWT token.

get/v1/permissions

Request

Query parameters

tokenNamestring required
Example:MYTOKEN

Token name to check permissions for

Response

User permissions retrieved successfully

isOverseerboolean required

Whether the user has a platform-wide overseer role

isOwnerboolean required

Whether the user is the token owner (owners have all permissions)

matchedPreset'MODERATOR' | 'TECHNICAL_PRODUCER' | 'MANAGER' nullable

If permissions match a role preset exactly, the preset name

permissionsstring[] required

Array of permission strings the user has for this token

source'owner' | 'moderator_invite' | 'api_key' | 'overseer' nullable required

Source of the permissions (how access was granted)

Example response

{
  "matchedPreset": "MODERATOR",
  "permissions": [
    "MANAGE_COMMUNITY",
    "VIEW_ANALYTICS"
  ],
  "source": "moderator_invite"
}

Changes

No recorded changes to this operation across all 1 revision of this API.