Version: 1.1.0
Last Updated: January 1, 2026
Purpose: Quick reference guide for AI agents
http://localhost:1317/structshttp://localhost:26657http://localhost:8080/apinats://localhost:4222ws://localhost:1443Get Player (Consensus):
GET /structs/player/{id}
Get Player (Webapp):
GET /api/player/{player_id}
Get Player Ore Stats:
GET /api/player/{player_id}/ore/stats
Get Player’s Planets:
GET /structs/planet_by_player/{playerId}
Get Planet (Consensus):
GET /structs/planet/{id}
Get Planet (Webapp):
GET /api/planet/{planet_id}
Get Planet Shield Health:
GET /api/planet/{planet_id}/shield/health
Get Guild (Consensus):
GET /structs/guild/{id}
Get Guild (Webapp):
GET /api/guild/{guild_id}
Get Guild Member Count:
GET /api/guild/{guild_id}/members/count
Get Guild Power Stats:
GET /api/guild/{guild_id}/power/stats
Get Struct (Consensus):
GET /structs/struct/{id}
Get Struct (Webapp):
GET /api/struct/{struct_id}
Get Struct Type (Consensus):
GET /structs/struct_type/{id}
Get Struct Type with Cosmetics (Webapp):
GET /api/struct-type/{structTypeId}/full?language=en&guildId={guildId}
List Sets:
GET /api/cosmetic-sets?active=true&guildId={guildId}
Get Set Details:
GET /api/cosmetic-sets/{setHash}
Get Cosmetic by Class:
GET /api/cosmetic/class/{class}?language=en&guildId={guildId}
Install Mod (converts to Sets/Skins):
POST /api/cosmetic-mods/install
Content-Type: multipart/form-data
file: [ZIP file or directory path]
Validate Mod (mod file format):
POST /api/cosmetic-mods/validate
Content-Type: multipart/form-data
file: [ZIP file or directory path]
Delete Set:
DELETE /api/cosmetic-sets/{setHash}
Activate/Deactivate Set:
POST /api/cosmetic-sets/{setHash}/activate
POST /api/cosmetic-sets/{setHash}/deactivate
Note: setHash and skinHash are SHA-256 hashes (64-character hexadecimal). Cosmetics are linked to struct types via the class field (e.g., “Miner”, “Reactor”).
Get Structs by Planet:
GET /api/struct/planet/{planet_id}
Submit Transaction:
POST /cosmos/tx/v1beta1/txs
Get Transaction:
GET /cosmos/tx/v1beta1/txs/{hash}
{
"success": true,
"data": {...}
}
{
"success": false,
"data": null,
"errors": ["Error message"]
}
{
"Player": {...}
}
{
"code": 2,
"message": "codespace structs code 1900: object not found",
"details": []
}
Default Limits:
Headers:
X-RateLimit-Limit - Maximum requestsX-RateLimit-Remaining - Remaining requestsX-RateLimit-Reset - Reset timestampRetry-After - Seconds to wait (when rate limited)See: api/rate-limits.md for complete details
500 - Internal Server Error503 - Service Unavailable429 - Rate Limit (with delay)400 - Bad Request404 - Not Found401 - Unauthorized (re-authenticate)403 - ForbiddenSee: api/error-codes.md for complete error catalog
Player Events: structs.player.*
Guild Events: structs.guild.*
Planet Events: structs.planet.*
Struct Events: structs.struct.*
Fleet Events: structs.fleet.*
Global Events: structs.global
blockguild_consensus, guild_meta, guild_membershipraid_status, planet_activity (includes struct_health details), fleet_arrive, fleet_advance, fleet_departstruct_status, struct_move, struct_attack, struct_block_build_startplayer_consensus, player_metaSee: protocols/streaming.md for complete documentation
Login:
POST /api/auth/login
Body: {"username": "...", "password": "..."}
Response: Set-Cookie header with session
Authenticated Request:
GET /api/guild/this
Headers: {"Cookie": "PHPSESSID=..."}
Process:
See: protocols/authentication.md for complete documentation
Consensus Network:
GET /structs/player?pagination.limit=10&pagination.offset=0
Response:
{
"Player": [...],
"pagination": {
"next_key": "...",
"total": "100"
}
}
GET /api/player/{player_id}GET /structs/planet_by_player/{playerId}Pattern: Linear Chain
See: examples/workflows/get-player-and-planets.md
GET /api/guild/{guild_id}GET /api/guild/{guild_id}/members/count (parallel)GET /api/guild/{guild_id}/power/stats (parallel)Pattern: Parallel with Dependency
See: examples/workflows/query-guild-stats.md
GET /api/planet/{planet_id} (initial load)structs.planet.{id} (streaming)Pattern: Hybrid (Query + Streaming)
See: examples/workflows/monitor-planet-shield.md
See: examples/workflows/README.md for complete workflow examples
POST /api/cosmetic-mods/validate - Validate mod (Phase 1 format)POST /api/cosmetic-mods/install - Install mod (converts to Sets/Skins)GET /api/cosmetic-sets/{setHash} - Verify set installation (if type is ‘set’)GET /api/cosmetic/class/{class} - Get cosmetic skin data by classGET /api/struct-type/{id}/full?class={class} - Get merged data (alternative)See: examples/workflows/install-and-use-cosmetic-mod.md for complete workflow
Note: Mods (Phase 1) are converted to Sets/Skins (Phases 2-4) during ingestion. Use setHash/skinHash for management and class for cosmetic queries.
Request Schemas: schemas/requests.md
Response Schemas: schemas/responses.md
Entity Schemas: schemas/entities.md
Error Schemas: schemas/errors.md
Protocols:
protocols/query-protocol.md - Query API protocolprotocols/action-protocol.md - Transaction protocolprotocols/webapp-api-protocol.md - Webapp API protocolprotocols/streaming.md - GRASS/NATS streamingprotocols/authentication.md - Authenticationprotocols/error-handling.md - Error handlingprotocols/testing-protocol.md - Testingprotocols/cosmetic-mod-integration.md - Cosmetic Sets/Skins integrationAPI Documentation:
api/endpoints.md - Complete endpoint catalogapi/endpoints-by-entity.md - Entity-based organizationapi/error-codes.md - Error code catalogapi/rate-limits.md - Rate limitingapi/streaming/ - Streaming documentationapi/cosmetic-mods.md - Cosmetic Sets/Skins APIExamples:
examples/workflows/ - Workflow examplesexamples/errors/ - Error examplesexamples/auth/ - Authentication examplesReference:
reference/endpoint-index.md - Endpoint indexreference/action-index.md - Action indexreference/action-quick-reference.md - Action quick referencereference/api-quick-reference.md - This filepatterns/pagination.md - Handle paginated responsespatterns/caching.md - Cache API responsespatterns/polling-vs-streaming.md - Choose data access methodpatterns/rate-limiting.md - Handle rate limitspatterns/retry-strategies.md - Retry failed requestspatterns/workflow-patterns.md - Multi-step operationsexamples/workflows/README.md - Complete examplespatterns/security.md - Security best practicesSee: patterns/README.md for complete pattern catalog
API Documentation Specialist - December 7, 2025