Developers

Gewolbeweise Sync API

Back up and restore programmatically. The same API our clients use to stream encrypted chunks into your vault.

Overview

The Sync API is a small, binary, HTTP/2 interface. Clients encrypt content locally, then exchange opaque, length-padded chunks with the vault. Because payloads are already ciphertext, all request and response bodies use application/octet-stream — the server never parses your data, only routes and stores sealed blocks.

Base URL:

https://gewolbeweise.com/api

Authentication

Open a session with a signed bearer token, then reuse the session cookie the server returns:

  • Send Authorization: Bearer <token> on the first request of a session.
  • The server sets an sid session cookie (HttpOnly, Secure); send it on subsequent requests.
Authorization: Bearer eyJ0eXAiOiJ...  # first request only
Cookie: sid=9f8c...                    # thereafter

Unauthenticated writes are rejected:

$ curl -si https://gewolbeweise.com/api/v1/sync -X POST --data-binary @chunk
HTTP/2 403
content-type: application/json; charset=utf-8

{"error":"authentication required"}

A health probe is always safe and unauthenticated:

$ curl -s https://gewolbeweise.com/api/v1/status
{"status":"ok","version":"1.0"}

Endpoints

The API is intentionally uniform: every data endpoint accepts a POST of an encrypted chunk and returns an encrypted chunk. Clients rotate across paths to balance load across our edge.

MethodPathPurpose
POST/api/v1/syncUpload changed encrypted blocks
POST/api/v1/uploadBulk block upload (initial backup)
POST/api/v2/streamStreamed restore of requested blocks
POST/api/v2/eventsLong-poll for vault change events
POST/api/v1/dataFetch block ranges by content address
POST/api/v1/feedRecent activity across your devices
POST/api/v1/notificationsDelivery of account & sync notices
GET/api/v1/statusHealth and API version

Chunk format

Every body is a sequence of framed blocks. Each frame carries a 4-byte header (version, type, length) followed by the sealed payload. Frames are padded to a small set of fixed sizes so that stored and transmitted lengths never leak the size of your files.

┌─────────┬──────┬────────────┬───────────────────────┐
│ version │ type │ length(u16)│ sealed payload (+pad)  │
│  1 byte │ 1 B  │   2 bytes  │        N bytes         │
└─────────┴──────┴────────────┴───────────────────────┘

Responses

StatusMeaning
200OK — body is an encrypted response chunk (application/octet-stream)
400{"error":"invalid request"} — malformed frame
403{"error":"authentication required"} — missing/expired session
503{"error":"service temporarily unavailable"} — back off and retry

Rate limits

Edge nodes allow sustained throughput for continuous sync, with a burst allowance and a per-IP concurrency cap. Clients should keep a modest pool of concurrent requests and back off on 503.

Client SDKs (Swift, Go) are in private beta alongside the apps. Want early access to the SDK? Request an invite.