Gateway REST API v1
Base endpoints for object ingestion, snapshot verification, and state synchronization.
Endpoints
| Method | Path | Cache Policy | Description |
|---|---|---|---|
| GET | /dist/snapshots/manifest.json | max-age=60 | Returns active snapshot registry & shard checksums. |
| GET | /dist/snapshots/node-state.dat | no-store | Binary replication stream for authenticated edge peers. |
| GET | /v1/buckets/{bucket}/objects | private | Lists object keys and ETag metadata inside a bucket. |
| PUT | /v1/buckets/{bucket}/{key} | no-store | Uploads an encrypted object chunk with SHA-256 verification. |
Required Request Headers
X-Node-Nonce — Random 24–144 byte base62/hex token used for anti-replay request framing.
Cache-Control — Use no-store when polling dynamic node state blocks.
Error Codes
| HTTP Code | Error Identifier | Resolution |
|---|---|---|
| 400 | InvalidNonceLength | Ensure X-Node-Nonce matches 24–144 characters. |
| 403 | OriginHostMismatch | Connect via SNI-enabled domain rather than raw IP. |
| 429 | EdgeBurstExceeded | Apply exponential backoff starting at 250ms. |