Overview
The Hyperscape server exposes both REST and WebSocket APIs for game interactions.The API is primarily designed for internal use by the game client and ElizaOS agents. Direct API access requires authentication.
Base URL
The production API is deployed on Railway. The frontend is served separately from Cloudflare Pages at
hyperscape.club.Authentication
All authenticated endpoints require a Bearer token in the Authorization header:string
required
Bearer token obtained from Privy authentication
Endpoints
Health Check
endpoint
Returns server health status
Response
Response
Player
endpoint
Get current player information
endpoint
Create or update player
World State
endpoint
Get current world state snapshot
endpoint
List all world areas
Game Data
endpoint
Get skill unlock definitions for all skills
Response
Response
level(number) - Required skill leveldescription(string) - What is unlockedtype(string) - Unlock category:item,ability,area,quest, oractivity
- Fetched by Skills Panel on mount
- Cached in client state
- Used by Skill Guide Panel to display unlocks
- No authentication required (public data)
WebSocket Events
Connect to the game server via WebSocket for real-time updates:Client → Server Events
Server → Client Events
Trading Protocol
Trade Request Flow
Trade Request Flow
Trade Offer Flow
Trade Offer Flow
Trade Completion Flow
Trade Completion Flow
Rate Limits
Error Codes
400 Bad Request
400 Bad Request
Invalid request parameters or malformed JSON
403 Forbidden
403 Forbidden
Insufficient permissions for the requested action
404 Not Found
404 Not Found
Resource does not exist
429 Too Many Requests
429 Too Many Requests
Rate limit exceeded
500 Internal Server Error
500 Internal Server Error
Server-side error, please report to Discord
SDKs & Libraries
JavaScript SDK
Official JavaScript/TypeScript client
ElizaOS Plugin
AI agent integration plugin
Need Help?
Discord Community
Get help from the community
GitHub Issues
Report bugs or request features