Overview
The Permissions API provides endpoints to verify user roles and access levels within the Pump.fun platform. These endpoints help enforce role-based access control (RBAC) for administrative and privileged operations.Admin Check
Check if the authenticated user has administrator privileges.Authentication
Requires JWT authentication viaAuthorization: Bearer <token> header.
Headers
Bearer token for authentication
Response content type
Request origin
Response
Admin status check result
Response Schema
true if the user has admin privileges, false otherwiseExample Usage
Super Admin Check
Check if the authenticated user has super administrator privileges. Super admins have elevated permissions beyond regular administrators.Authentication
Requires JWT authentication viaAuthorization: Bearer <token> header.
Headers
Bearer token for authentication
Response content type
Request origin
Response
Super admin status check result
Response Schema
true if the user has super admin privileges, false otherwiseExample Usage
Jurisdiction Check
Verify if the authenticated user’s jurisdiction (geographic location) is valid for accessing the Pump.fun platform. This endpoint enforces geographic restrictions and compliance requirements.Authentication
Requires JWT authentication viaAuthorization: Bearer <token> header.
Headers
Bearer token for authentication
Response content type
Request origin
Response
Jurisdiction validity check result
Response Schema
true if the user’s jurisdiction is allowed, false if blocked or restrictedThe detected jurisdiction/country code
Explanation if jurisdiction is invalid (only present when
isValidJurisdiction is false)Example Usage
Use Cases
- Enforce geographic access restrictions
- Comply with regional regulations
- Display location-specific content or features
- Block access from sanctioned countries
- Implement KYC/compliance workflows
Permission Hierarchy
The Pump.fun platform uses a hierarchical permission system:- Regular User: Basic platform access
- Admin: Elevated privileges for moderation and management
- Super Admin: Full system access and configuration capabilities
Best Practices
Client-Side Checks
- Use permission checks to show/hide UI elements
- Check permissions on page load and route changes
- Cache permission results for better performance
- Revalidate permissions periodically
Server-Side Enforcement
- Never rely solely on client-side permission checks
- Always validate permissions on the backend
- Log all permission check failures for security monitoring
- Implement rate limiting on permission endpoints
Security Considerations
- Permissions may change during a user session
- Re-check permissions before critical operations
- Handle permission denials gracefully
- Provide clear error messages when access is denied
Related Endpoints
- GET /auth/my-profile - Get current user profile with role information
- POST /auth/login - Authenticate and obtain JWT token
- POST /auth/logout - End user session