ozvault home

OZVAULT CONNECT · FOR DEVELOPERS

Free cloud storage for your users.
OAuth built in.

Add “Connect with OzVault” to your website, app or Discord bot. Users approve exactly what you ask for, and your app gets a private file storage API backed by their own 15 GB of free space.

How it works

Authorization code flow
  1. Register your app

    Get a client ID instantly. Server apps also get a secret, shown once.

  2. Send users to OzVault

    They sign in, see your app, its publisher and each permission, then choose.

  3. Exchange the code

    Your server trades the single-use code and PKCE verifier for tokens.

  4. Call the API

    Read profiles and quotas, and store files in the user's own vault.

THREE REQUESTS

From sign-in to stored file

Standard OAuth 2.0, so any HTTP client works. Follow the guides for JavaScript, Node.js, Next.js, Python, FastAPI, Express and Discord bots; every example uses the live endpoints.

HTTP
// 1. Send the user to OzVault (state + PKCE S256)
https://ozvault.lol/oauth/authorize?response_type=code
  &client_id=ovc_YOUR_CLIENT_ID
  &redirect_uri=https://example.com/auth/ozvault/callback
  &scope=profile:read storage:app:write offline_access
  &state=…&code_challenge=…&code_challenge_method=S256

// 2. Exchange the code on your server
POST https://ozvault.lol/oauth/token
grant_type=authorization_code&code=…&redirect_uri=…&code_verifier=…

// 3. Store a file in the user's OzVault
POST https://api.ozvault.lol/v1/app/files?name=notes/hello.txt
Authorization: Bearer ova_…
Content-Type: application/octet-stream

Secure by default

Security practices
  • OAuth 2.0 with mandatory PKCE

    Exact redirect matching, single-use two-minute codes and S256 PKCE for every client.

  • Sign in with OzVault

    OpenID Connect ID tokens signed with ES256, pairwise subject identifiers and a JWKS endpoint.

  • Rotating refresh tokens

    Every refresh issues a new token; reuse of an old one revokes the session automatically.

  • Isolated app storage

    Each app gets a private area in each user's account. Other files are never reachable.

  • Quota API

    Read capacity, usage and availability. One quota per account, enforced server-side.

  • Users stay in control

    People review exact permissions and can disconnect any app instantly, without losing files.

Permissions people understand

8 scopes
What users see on the authorization screen for an app called ExampleApp
ScopeUsers are told
openidConfirm to ExampleApp that you are signed in to OzVault
profile:readView your OzVault display name
email:readView your email address
storage:quota:readView your total and remaining storage capacity
storage:app:readRead files that ExampleApp stored in your account
storage:app:writeUpload files into ExampleApp's storage area, using your storage capacity
storage:app:deleteDelete or replace files in ExampleApp's storage area (deleted files stay in your trash for 30 days)
offline_accessStay connected when you are not using ExampleApp, until you disconnect it

DISCORD BOT STORAGE API

Per-user storage for bots, without paying for it.

Each user links their own OzVault with /link. Your bot saves attachments, exports and JSON snapshots into that user's account, within their quota, and lists or deletes them later.

PREFER YOUR OWN STORAGE?

Use API keys for your own account

For storing your application's files in your own vault, create a scoped API key and use the REST API or JavaScript SDK with client-side encryption.

Questions developers ask

Is OzVault Connect free for developers?

Yes. Registering applications costs nothing. Files your app stores use each user's own OzVault quota (15 GB on the free plan, or their paid capacity), so storage scales with your users rather than your bill.

Can an application see all of a user's files?

No. Each application writes to an isolated storage area inside the user's account and can only list, read or delete what it stored there. Scopes are enforced on the server for every request.

What happens when a user disconnects my app?

Their tokens stop working immediately and refresh requests return invalid_grant. The files your app stored stay in the user's account; if they reconnect, your app can access its storage area again.

Do I need a backend?

A backend is recommended and required for client secrets. Browser, mobile and desktop apps can register as public clients that use PKCE without a secret.

Is it standards-based?

Yes: OAuth 2.0 authorization code flow with mandatory PKCE S256 (RFC 7636), token revocation (RFC 7009), introspection (RFC 7662), authorization server metadata (RFC 8414), issuer identification (RFC 9207) and OpenID Connect with ES256 ID tokens.

Can I use it for a Discord bot?

Yes. A /link command sends each user a personal authorization link; afterwards the bot can save attachments, exports and snapshots in that user's OzVault through the storage API.

OAUTH 2.0 · OPENID CONNECT

Discovery and full API reference

Open the API reference