Base URLs
#Authorization server (issuer): https://ozvault.lol. Resource API: https://api.ozvault.lol/v1. Discovery documents advertise every endpoint, including ozvault_api_base_url.
GET https://ozvault.lol/.well-known/openid-configurationGET https://ozvault.lol/.well-known/oauth-authorization-serverAuthorization server endpoints
#Token, revocation and introspection accept application/x-www-form-urlencoded bodies and client authentication by client_secret_basic, client_secret_post or none (public clients). Responses are never cached.
| Endpoint | Purpose |
|---|---|
| GET /oauth/authorize | User authorization with consent (code flow, PKCE S256) |
| POST /oauth/token | authorization_code and refresh_token grants |
| POST /oauth/revoke | Revoke an access or refresh token (RFC 7009) |
| POST /oauth/introspect | Token status for your own tokens (RFC 7662) |
| GET|POST /oauth/userinfo | OpenID Connect claims (scope openid) |
| GET /oauth/jwks | ES256 public keys for id_token validation |
Resource endpoints
#Send Authorization: Bearer <access token>. Every endpoint enforces its scope on the server and touches only the authorizing user's account and your application's storage area.
| Endpoint | Scope | Returns |
|---|---|---|
| GET /v1/account/profile | profile:read | sub, name; email, email_verified with email:read |
| GET /v1/storage/quota | storage:quota:read | quota, used, reserved, available, application usage |
| GET /v1/app/files | storage:app:read | Paginated files (prefix, limit, cursor) |
| GET /v1/app/files/{id} | storage:app:read | File metadata |
| GET /v1/app/files/{id}/content | storage:app:read | File bytes (attachment) |
| POST /v1/app/files?name=… | storage:app:write | Single-request upload up to 4 MiB |
| POST /v1/app/uploads | storage:app:write | Resumable upload reservation |
| PATCH|GET|DELETE {uploadUrl} | upload token | Send a chunk, read the offset, cancel |
| POST {uploadUrl}/complete | upload token | Publish the file after SHA-256 verification |
| DELETE /v1/app/files/{id} | storage:app:delete | Move a file to the user's trash |
Limits
#Authorization codes: 2 minutes, single use. Access tokens: 1 hour. Refresh tokens: 30 days from issue, rotated on every use. Up to 10 redirect URLs and 5 active client secrets per application; up to 25 applications per developer account. Single-request uploads: 4 MiB. Object size: published maxFileBytes (256 MB by default). Five open uploads per user. 300 API requests per minute per connection.
Clear documentation is part of the product.