Skip to main content
The Serva Encoder API encodes files into the portable .serva format and decodes them back, straight from your own code. Every request goes through a single base URL.
The API is in beta, so endpoints and schemas may still change. For most cases the Python SDK is the smoothest way in — it wraps these endpoints and handles the streaming flow for you.

Base URL

All requests use one production host — auth, encode, decode, and download.

Authentication

Generate a Service API key from the dashboard (Settings → API keys) or via POST /keys, then send it as a Bearer token on every request:
The web app authenticates with a session cookie set at login. For programmatic access, use a Service API key.

Encode

With the SDK, encoding a file is a single call — it runs the initiate, stream, and download steps for you.
Under the hood this maps to POST /api/encode → POST /api/stream/{file_reference} → GET /download/{file_id}. See those endpoints in the sidebar for the raw request and response schemas.

Decode

Files encoded now carry no password, so decoding needs none. A .serva issued while encoding still locked files takes the key it was encoded with:
That password goes directly to the backend over TLS via X-Decode-Password. It is never written to Redis or any persistent storage.

Errors

Failed requests return a JSON body with a detail message and a standard HTTP status. Browse the full endpoint reference in the sidebar.