.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 viaPOST /keys, then send it as a Bearer token on every request:
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.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
.serva issued while encoding still locked files takes the key it was encoded with:
X-Decode-Password. It is never written to Redis or any persistent storage.
Errors
Failed requests return a JSON body with adetail message and a standard HTTP status.
Browse the full endpoint reference in the sidebar.

