Welcome Contributors
This guide helps Sendsational team members write high-quality documentation for our game APIs. Our docs are built with Mintlify and use OpenAPI specifications for auto-generation.Documentation Structure
Adding a New Game
1
Create OpenAPI Specification
Create a new OpenAPI 3.0 spec in See
openapi/your-game.json:openapi/README.md for detailed guidance.2
Create Documentation Pages
Create a new directory in
games/your-game/ with:introduction.mdx- API overview, authentication, base URLquickstart.mdx- Getting started examples
games/wheel/ as templates.3
Update Navigation
Add your game to
docs.json navigation:4
Preview & Deploy
Preview locally:Then commit and push to deploy.
Writing Guidelines
Use Clear Language
✅ Good
“Create a new player profile with authentication credentials”
❌ Avoid
“Utilize the profile creation endpoint to instantiate user entities”
Include Code Examples
Always provide runnable code examples in multiple languages:Document Errors
Always document common error scenarios:401 Unauthorized
401 Unauthorized
404 Not Found
404 Not Found
Resource doesn’t exist
429 Rate Limited
429 Rate Limited
Too many requests
Mintlify Components
Callouts
Use Note for helpful information that supports the main content
Code Blocks
Use syntax highlighting and specify the language:Interactive Steps
Use Steps for sequential instructions:1
First Step
Do this first
2
Second Step
Then do this
Cards for Navigation
OpenAPI Best Practices
Complete Schemas
Always define complete request and response schemas:Use References
Reuse common components with$ref:
Document All Parameters
Every parameter needs a description and example:Testing Documentation
Preview Locally
Check Links
Verify all internal links work:- ✅
/games/wheel/introduction - ❌
/api-reference(old, removed)
Validate OpenAPI
Cursor Integration
We use Cursor rules for consistent documentation. The rules are automatically applied when editing.mdx files in the docs folder.
Location: .cursor/rules/mintlify-technical-writing.mdc
The rules provide:
- Technical writing best practices
- Mintlify component examples
- Content quality standards
- Accessibility requirements
Getting Help
Mintlify Docs
Official Mintlify documentation
Internal Support
Contact the internal support team
GitHub Issues
Report bugs or request features
OpenAPI Spec
OpenAPI 3.0 specification
Common Patterns
API Endpoint Documentation
Each endpoint should include:- Description
- Authentication requirements
- Request parameters
- Request body schema
- Success response examples
- Error response examples
- Rate limiting info
Quick Start Pages
Include:- Prerequisites
- Authentication setup
- First API call example
- Common operations
- Error handling
- Next steps
Introduction Pages
Cover:- Overview and purpose
- Base URL
- Authentication method
- Core resources
- API structure
- Response format
- Rate limiting
Style Guide
- Use second person (“you”) for instructions
- Use active voice over passive voice
- Keep sentences concise
- Use present tense
- Include code examples for all API calls
- Test all code before publishing
- Update docs when API changes
