GraphQL CRM API
Welcome to the GraphQL CRM API documentation. This section provides detailed information about all available queries and mutations in the GraphQL CRM API, which powers our internal CRM and administrative systems.
Overview​
The GraphQL CRM API is designed for backoffice and administrative operations. It provides specialized endpoints for user management, content moderation, reporting, and administrative functions.
Endpoint​
All GraphQL CRM API requests should be made to:
https://gql-crm.blockbet.gg/graphql
Authentication​
Authentication is handled automatically via HTTP cookies, just like in the GraphQL Main API. The system manages both accessToken and refreshToken cookies, so there's no need to manually set the Authorization header.
When you successfully authenticate, the tokens will be set in cookies and automatically included in subsequent requests. The system handles token refreshing and session management without requiring manual header setup.
Available Modules​
The GraphQL CRM API provides access to the following modules:
- Authentication: Admin login flows, session management, and MFA with cookie-based authentication
- CRM User Management: CRM user administration and access control
- User Management: End-user monitoring, moderation, and administrative actions
- File Upload: Media and document upload management for CRM operations
- Token Statistics: Token-related reporting and analytics
- Generated Signed Download URL: Secure URL generation for file downloads
- CRM Hooks: Custom hooks and integrations for CRM operations
Schema Exploration​
You can explore the full CRM GraphQL schema using tools like:
- GraphQL Playground: Access it at
https://crm-api.blockbet.com/graphql
- Apollo Studio: Connect to our endpoint for enhanced exploration
Security Notice​
The CRM API contains sensitive administrative endpoints. Always ensure:
- Proper role-based access control is implemented
- Strong authentication practices are followed
- All access is properly audited and logged