Complete API documentation and testing suite for Pterodactyl Panel v1.0+
Maintained by NETVPX and shared freely with the Pterodactyl community. This comprehensive documentation covers all API endpoints with multi-language examples, interactive testing, and detailed implementation guides.
π View Live Documentation β
This is the most comprehensive Pterodactyl API documentation available, featuring detailed coverage of all Pterodactyl Panel v1.0+ endpoints with production-ready examples.
- π₯ Client API (18 endpoints) - End-user server management, files, databases, backups, scheduling
- π§ Application API (15+ endpoints) - Administrative panel management, users, nodes, servers
- π WebSocket API (5 endpoints) - Real-time console access, server statistics, live monitoring
- π― Production-Tested: All 38 endpoints tested against live Pterodactyl installations
- π Multi-Language: Code examples in 8 programming languages for every endpoint
- π Always Updated: Continuously verified against Pterodactyl's latest development branch
- πͺ Open Source: Community-driven with easy contribution workflow
- Modern Stack: Built with Docusaurus 3 + TypeScript
- Version Switcher: Support for multiple API versions (v1.0+ current, v0.7 legacy)
- Responsive Design: Perfect experience on desktop, tablet, and mobile
- Instant Search: Fast local search with auto-complete
- Interactive Examples: Tabbed code samples with copy-to-clipboard
- Live Testing: Every endpoint verified against real Pterodactyl panels
8 Programming Languages for every API endpoint:
- π cURL - Command line HTTP client
- π‘ JavaScript - Node.js and browser examples
- π Python - Using requests library
- π PHP - cURL and Guzzle implementations
- π΅ Go - Native HTTP client
- β Java - OkHttp library
- π· C# - HttpClient implementation
- π΄ Ruby - Net::HTTP examples
- 38/38 Tests Passing: Complete endpoint coverage
- Live API Validation: Tests run against actual Pterodactyl installations
- Multiple Test Modes: Safe (read-only), partial, and full destructive testing
- Automated Cleanup: Test resources automatically cleaned up
- CI/CD Integration: GitHub Actions with comprehensive reporting
- Fork-First Workflow: Clear contribution guidelines
- Issue Templates: Bug reports and feature requests
- PR Templates: Structured review process
- Active Maintenance: Regular updates and community support
- π¬ Community Discussion: Integrated Giscus commenting system for documentation feedback
π View Online: pterodactyl-api-docs.netvpx.com
π Quick API Reference:
- Client API Overview - User server management
- Application API Overview - Admin panel management
- WebSocket API - Real-time console access
- Authentication Guide - API keys and security
Prerequisites:
- Node.js 20.0+ (recommended: use nvm)
- npm or yarn package manager
# 1. Fork the repository on GitHub first!
# 2. Clone your fork
git clone https://github.com/YOUR_USERNAME/pterodactyl-api-docs.git
cd pterodactyl-api-docs
# 3. Install dependencies
npm install
# 4. Start development server
npm start
# β Opens http://localhost:3000
# 5. Build for production
npm run build
# β Generates static files in build/ directory# 1. Copy test configuration
cp .env.test.example .env.test
# 2. Configure your Pterodactyl panel details
nano .env.test
# 3. Run comprehensive API tests
cd tests && npm test
# β Tests all 38 endpoints with detailed reporting38/38 endpoints tested against live Pterodactyl installations with detailed validation:
| API Type | Endpoints | Status | Coverage |
|---|---|---|---|
| Client API | 18 tests | β Passing | Account, servers, files, databases, backups, scheduling, network, users |
| Application API | 15 tests | β Passing | Users, servers, nodes, locations, nests/eggs, error handling |
| WebSocket API | 5 tests | β Passing | Authentication, connections, token management |
- π₯ Live API Validation: Tests against real Pterodactyl panels
- π‘οΈ Safe Mode: Read-only tests for production environments
- π Auto Cleanup: Test resources automatically cleaned up
- π Performance Metrics: Response time monitoring
- π Detailed Logging: Full request/response analysis
- π Schema Validation: Ensures API responses match documented formats
# Quick test run (safe mode - read only)
npm test -- --testNamePattern="list"
# Full destructive test suite
SAFE_MODE=false npm test
# Test specific endpoints
npm test -- --testNamePattern="servers"GitHub Actions automatically:
- β Build documentation on every commit
- π§ͺ Run test suite on pull requests
- π Generate coverage reports
- π‘οΈ Scan for security vulnerabilities
- π Deploy to production on main branch
βββ docs/ # Documentation content
β βββ intro.md # Introduction page
β βββ authentication.md # Authentication guide
β βββ rate-limiting.md # Rate limiting information
β βββ error-handling.md # Error handling guide
β βββ contributing.md # Contribution guidelines (within docs)
β βββ api/ # API documentation
β βββ client/ # Client API endpoints
β βββ application/ # Application API endpoints
β βββ websocket.md # WebSocket API documentation
βββ tests/ # Enhanced API testing suite
βββ static/ # Static assets (images, favicons, etc.)
βββ src/ # React components and styling
βββ .github/ # GitHub templates and workflows
β βββ ISSUE_TEMPLATE/ # Bug report and improvement templates
β βββ workflows/ # GitHub Actions (build.yml)
β βββ pull_request_template.md
βββ docusaurus.config.ts # Docusaurus configuration
βββ sidebars.ts # Sidebar configuration
βββ CONTRIBUTING.md # Contribution guidelines
βββ LICENSE # MIT License
βββ package.json # Dependencies and scripts
All API endpoints include examples in 8 programming languages:
- cURL - Command line HTTP client
- JavaScript - Node.js and browser examples
- Python - Using requests library
- PHP - Using cURL and Guzzle
- Go - Native HTTP client
- Java - Using OkHttp
- C# - Using HttpClient
- Ruby - Using Net::HTTP
Examples are presented in an interactive tabbed interface for easy language switching.
- Account management and authentication
- Server power controls and resource monitoring
- File management and operations
- Database creation and management
- Scheduled task automation
- Network allocation management
- User permissions and subuser management
- Backup management
- User administration
- Server creation and management
- Node and location management
- Nest and egg configuration
- System-wide settings
- Real-time server console access
- Live server statistics
- Event-based communication
We welcome contributions from the community! This project is open source and we encourage developers to help improve the documentation.
For small fixes:
- Click "Edit this page" on any documentation page
- Make your changes in GitHub
- Submit a pull request
For significant changes:
- Read our Contributing Guidelines
- Check out our documentation contribution guide
- Fork the repository
- Create a feature branch
- Make your changes and test locally
- Submit a pull request using our template
- All code examples must be tested and working
- Follow the established multi-language format
- Use CodeTabs component for code examples
- Maintain NETVPX branding and style consistency
- GitHub Actions automatically build and test documentation
- Pull Request Templates ensure quality contributions
- Issue Templates for bug reports and improvements
- Local Testing with comprehensive API test suite
For support with this documentation:
- GitHub Issues: Report bugs or request improvements
- GitHub Discussions: Ask questions and share ideas
- NETVPX Support: https://netvpx.com/support
- Pterodactyl Community: Discord
- Pterodactyl Panel: https://pterodactyl.io/
- Pterodactyl GitHub: https://github.com/pterodactyl/panel
- NETVPX: https://netvpx.com/
- Docusaurus: https://docusaurus.io/
Special thanks to all contributors who help make this documentation better for the Pterodactyl community!
This documentation is licensed under the MIT License. See the LICENSE file for details.
The Pterodactyl Panel software is licensed under the MIT License by the Pterodactyl Software team.
Maintained with β€οΈ by NETVPX and shared freely with the Pterodactyl community.