Skip to main content

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

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
New in v1.0: Server-authoritative skill unlock data for the Skill Guide Panel.
Response Fields:
  • level (number) - Required skill level
  • description (string) - What is unlocked
  • type (string) - Unlock category: item, ability, area, quest, or activity
Usage:
  • Fetched by Skills Panel on mount
  • Cached in client state
  • Used by Skill Guide Panel to display unlocks
  • No authentication required (public data)
Implementation:

WebSocket Events

Connect to the game server via WebSocket for real-time updates:

Client → Server Events

Server → Client Events

Trading Protocol

Rate Limits

API rate limits apply to prevent abuse. Exceeding limits will result in temporary blocks.

Error Codes

Invalid request parameters or malformed JSON
Missing or invalid authentication token
Insufficient permissions for the requested action
Resource does not exist
Rate limit exceeded
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