Documentation: all sections

Relay sharing

A Relay is a temporary, revocable share: text and files, sealed at rest, reachable through a single link whose secret is shown once. The sender can revoke it at any moment, and revoking destroys the ciphertext immediately. Recipients need nothing but the link (and the PIN, if one was set); no account, no wallet.

Three properties carry the design:

Quickstart

Share a note for 24 hours, PIN-protected, at most 3 opens:

curl https://www.saxeonetwork.tech/__api/v1/relays \
-H "Authorization: Bearer $SAXEO_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "text": "The rendezvous is at 9.",
  "expires_in_secs": 86400,
  "pin": "4172",
  "max_accesses": 3
}'
{
  "id": "relay_c04b…",
  "status": "active",
  "expires_at": "2026-09-04T17:00:00Z",
  "share_url": "https://www.saxeonetwork.tech/relay/…",
  "allow_download": true,
  "pin_required": true,
  "note": "The link contains the one-time secret; only its hash is stored."
}

The share_url contains the one-time secret and cannot be shown again. Files travel base64-encoded in the create body:

{
  "files": [
    {
      "name": "report.pdf",
      "content_type": "application/pdf",
      "content_b64": "JVBERi0xLjc…"
    }
  ],
  "allow_download": true
}

Endpoints

Owner endpoints are session-authed (Authorization: Bearer sess_…); access endpoints are public, because the recipient holds only the link secret.

POSTPath/v1/relaysAuthSessionWhat it doesCreate a relay. Returns the one-time share_url.
GETPath/v1/relaysAuthSessionWhat it doesList your relays: status, access counts, sizes (metadata only). The 100 most recent; there is no cursor.
POSTPath/v1/relays/{id}/revokeAuthSessionWhat it doesRevoke: destroy the ciphertext immediately.
POSTPath/v1/relay-access/{secret}AuthPublicWhat it doesOpen a relay. Body {pin?}. Returns {pin_required: true} or the content listing.
POSTPath/v1/relay-access/{secret}/objects/{id}AuthPublicWhat it doesFetch one file's content. On view-only relays, only image/* and text/* are served.

A missing, expired, revoked, or capped-out secret returns 404 uniformly.

Content rules

v1 does no malware scanning. Instead the type allowlist is deliberately conservative, and files are stored sealed and never executed:

Anything outside the allowlist is refused at creation.

Limits