SpaceCorps Hangar REST API Reference

Complete programmatic interface specification for game distribution, binary checksum verification, Model Context Protocol (MCP), and automated AI agent integration.

1. Authentication & Instant Credentials

SpaceCorps Hangar enables automated, zero-friction agent access with pre-provisioned tokens and self-serve key endpoints:

Dynamic keys can also be provisioned without sign-up at /api/keys:

curl -sS https://hangar.sliplane.app/api/keys

2. REST Endpoints

GET /api/v1/health

Verify cluster operational readiness and active storage provider.

curl -sS https://hangar.sliplane.app/api/v1/health

Response (200 OK):

{
  "status": "ok",
  "version": "1.0.0",
  "storage": "fs"
}

GET /api/v1/products

List all published software and game applications across release channels.

curl -sS -H "Authorization: Bearer sc_live_instant_agent_key_2027" \
  https://hangar.sliplane.app/api/v1/products

Response (200 OK):

{
  "items": [
    {
      "id": "spacecorps-2027",
      "slug": "spacecorps-2027",
      "title": "SpaceCorps 2027",
      "kind": "game",
      "platforms": ["darwin-arm64", "darwin-x86_64", "win-x86_64", "linux-x86_64"]
    },
    {
      "id": "swindle",
      "slug": "swindle",
      "title": "Swindle",
      "kind": "game",
      "platforms": ["darwin-arm64"]
    }
  ],
  "next_cursor": null
}

GET /api/v1/products/{id}/releases

Retrieve releases, binary platforms, file sizes, and SHA-256 verification hashes.

curl -sS https://hangar.sliplane.app/api/v1/products/spacecorps-2027/releases

POST /ask

NLWeb conversational query endpoint returning Schema.org compliant structured data.

curl -sS -X POST -H "Content-Type: application/json" \
  -d '{"query": "What are the ship hulls in SpaceCorps 2027?"}' \
  https://hangar.sliplane.app/ask

3. Rate Limits & Deprecation Policy

Header Default Value Description
RateLimit-Limit 1000 Maximum requests per 60-second window
RateLimit-Remaining 999 Available quota remaining in active window
RateLimit-Reset 60 Seconds until quota refresh
Deprecation @0 Deprecation notice Unix timestamp or @0 for current
Sunset Wed, 31 Dec 2031 23:59:59 GMT End of life date for active API version

4. Model Context Protocol (MCP)

Connect AI agents directly to Hangar at https://hangar.sliplane.app/mcp using Streamable HTTP / SSE transport with full behavioral annotations.

curl -sS -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' \
  https://hangar.sliplane.app/mcp

5. Open Source Repository & Agent Platform Rules

Hangar is fully open source. Coding agents, SDK generators, and platform bots can inspect the public repository and machine configurations: