Playcast API Reference
Comprehensive documentation for Playcast's streaming, messaging, WebRTC, and game capture APIs. Build powerful interactive experiences with our developer-friendly APIs.
Messaging API
Real-time messaging system with WebSocket support for game events, input handling, and peer communication.
- PlaycastMessage Type
- WebSocket Messages WS
- Message Validators Function
- Message Generators Function
WebRTC API
Peer-to-peer communication, video streaming, and real-time data channels for interactive gaming experiences.
- PeerConnection Class
- Quality Management Function
- Media Tracks Function
- Statistics Function
Authentication API
Secure authentication with JWT tokens, session management, and Clerk integration for user management.
- Login Token POST
- Validate Token POST
- Refresh Session POST
- Session Management Function
Playjector API
Game capture and control bridge for communicating with the native C++ Playjector application via TCP sockets.
- Connection Management Function
- Process Spawning Function
- Message Handling Function
- Auto-Reconnect Function
Type Definitions
Comprehensive TypeScript type definitions for all Playcast APIs, ensuring type safety across your application.
- Core Types Type
- Message Types Type
- Peer Types Type
- User Types Type
Quick Start
Get started with Playcast APIs in minutes. Choose your integration path:
User Authentication
Secure your application with JWT tokens and session management.
Authenticate Users →