# Create API Key Source: https://docs.openinary.dev/api-reference/api-keys/create Generate a new API key for authenticating requests **Self-hosted only.** Cloud keys are created in the dashboard, not through the API. Post to `/api-keys/create` and the response carries the full key. That is the only time you see it, so store it immediately. ```bash theme={null} curl -X POST https://media.example.com/api-keys/create \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"name": "production", "expiresIn": 31536000}' ``` ``` POST /api-keys/create ``` **Auth:** API Key or Session · **Content-Type:** `application/json` ## Body parameters | Field | Type | Default | Notes | | - | - | - | - | | `name` | string | | Human-readable label for this key | | `expiresIn` | number | `31536000` | Expiration in seconds from now, default 365 days | ## Response ```json theme={null} { "success": true, "apiKey": { "id": "key_abc123", "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx", "name": "production", "start": "xxxxxx", "createdAt": "2024-03-15T10:30:00.000Z", "expiresAt": "2025-03-15T10:30:00.000Z" }, "message": "API key created successfully. Save this key - it will not be shown again!" } ``` | Field | Type | Notes | | - | - | - | | `success` | boolean | Whether the key was created | | `apiKey` | object | The new key, fields below | | `message` | string | Reminder that the key is shown once | `apiKey` fields: | Field | Type | Notes | | - | - | - | | `id` | string | Unique key identifier, used for update and delete | | `key` | string | The full API key value, only returned here | | `name` | string | The key's display name | | `start` | string | Key prefix, safe to display | | `createdAt` | string | ISO 8601 creation timestamp | | `expiresAt` | string | ISO 8601 expiration timestamp | **Status codes:** `200` success · `401` unauthorized · `500` error ## Related > [card] [List API Keys](/api-reference/api-keys/list) > > View all active keys. > [card] [Delete API Key](/api-reference/api-keys/delete) > > Revoke a key. # Delete API Key Source: https://docs.openinary.dev/api-reference/api-keys/delete Permanently revoke an API key **Self-hosted only.** Cloud keys are managed in the dashboard, not through the API. Deletes a key by its ID. This is irreversible, and any service using that key loses access immediately. To block access temporarily instead, [update the key](/api-reference/api-keys/update) with `"enabled": false`. ```bash theme={null} curl -X DELETE https://media.example.com/api-keys/key_abc123 \ -H "Authorization: Bearer " ``` ``` DELETE /api-keys/{keyId} ``` **Auth:** API Key or Session ## Parameters | Field | In | Type | Notes | | - | - | - | - | | `keyId` | path | string | Required. ID of the key to delete, from [List API Keys](/api-reference/api-keys/list) | ## Response ```json theme={null} { "success": true, "message": "API key deleted successfully" } ``` **Status codes:** `200` success · `401` unauthorized · `403` forbidden · `404` not found · `500` error ## Related > [card] [List API Keys](/api-reference/api-keys/list) > > Find the key ID before deleting. > [card] [Update API Key](/api-reference/api-keys/update) > > Disable a key temporarily. # List API Keys Source: https://docs.openinary.dev/api-reference/api-keys/list Retrieve every API key on the account **Self-hosted only.** Cloud keys are managed in the dashboard, not through the API. Returns every key on the account, without the secret values. Use `id` for update and delete calls. ```bash theme={null} curl https://media.example.com/api-keys/list \ -H "Authorization: Bearer " ``` ``` GET /api-keys/list ``` **Auth:** API Key or Session ## Response ```json theme={null} { "success": true, "keys": [ { "id": "key_abc123", "name": "production", "start": "xxxxxx", "prefix": null, "enabled": true, "expiresAt": "2025-03-15T10:30:00.000Z", "createdAt": "2024-03-15T10:30:00.000Z", "updatedAt": "2024-03-15T10:30:00.000Z", "remaining": null, "rateLimitEnabled": false } ] } ``` Each entry in `keys`: | Field | Type | Notes | | - | - | - | | `id` | string | Unique identifier, used for update and delete | | `name` | string | Display name | | `start` | string | Key prefix, safe to display. Identifies the key without exposing its value | | `prefix` | string | Key type prefix. `null` if none is configured | | `enabled` | boolean | Whether the key is currently active | | `expiresAt` | string | ISO 8601 expiration timestamp | | `createdAt` | string | ISO 8601 creation timestamp | | `updatedAt` | string | ISO 8601 last-modified timestamp | | `remaining` | number | Remaining request quota. `null` if unlimited | | `rateLimitEnabled` | boolean | Whether per-key rate limiting is configured | **Status codes:** `200` success · `401` unauthorized · `500` error ## Related > [card] [Create API Key](/api-reference/api-keys/create) > > Generate a new key. > [card] [Update API Key](/api-reference/api-keys/update) > > Rename or enable/disable a key. > [card] [Delete API Key](/api-reference/api-keys/delete) > > Revoke a key permanently. # Update API Key Source: https://docs.openinary.dev/api-reference/api-keys/update Rename or enable/disable an existing API key **Self-hosted only.** Cloud keys are managed in the dashboard, not through the API. Patch a key by its ID to rename it, or to disable it without deleting it. Send only the fields you want to change. ```bash theme={null} curl -X PATCH https://media.example.com/api-keys/key_abc123 \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"name": "production-v2"}' ``` ``` PATCH /api-keys/{keyId} ``` **Auth:** API Key or Session · **Content-Type:** `application/json` Get `keyId` from [List API Keys](/api-reference/api-keys/list). ## Parameters | Field | In | Type | Notes | | - | - | - | - | | `keyId` | path | string | Required. ID of the key to update | | `name` | body | string | New display name | | `enabled` | body | boolean | `false` disables the key, `true` re-enables it | ## Disable a key ```bash theme={null} curl -X PATCH https://media.example.com/api-keys/key_abc123 \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"enabled": false}' ``` ## Response ```json theme={null} { "success": true, "key": { "id": "key_abc123", "name": "production-v2", "enabled": true }, "message": "API key updated successfully" } ``` **Status codes:** `200` success · `401` unauthorized · `403` forbidden · `404` not found · `500` error ## Related > [card] [List API Keys](/api-reference/api-keys/list) > > Find the key ID. > [card] [Delete API Key](/api-reference/api-keys/delete) > > Permanently revoke a key. # Invalidate Cache Source: https://docs.openinary.dev/api-reference/cache/invalidate Clear cached transformation variants without deleting originals **`DELETE /invalidate/{path}` is self-hosted only.** On Cloud, clear a single asset by deleting and re-uploading it, or purge everything with `POST /storage/cache/clear`, which works on both. Clears the cached transformation variants of one file. The original is not touched. ``` DELETE /invalidate/{path} ``` ```bash theme={null} curl -X DELETE https://media.example.com/invalidate/photos/portrait.jpg \ -H "Authorization: Bearer " ``` **Auth:** API Key required Three caches are cleared for the file: the local cache of variants stored on disk, the cloud cache of variants stored in S3-compatible storage if configured, and the in-memory cache of metadata entries. ## Path parameters | Param | Type | Required | Description | | - | - | - | - | | `path` | string | yes | Path to the file relative to the storage root, e.g. `photos/portrait.jpg`. | ## Response ```json theme={null} { "success": true, "message": "Cache invalidated successfully", "details": { "localCacheFilesDeleted": 3, "cloudCacheFilesDeleted": 0 } } ``` | Field | Type | Description | | - | - | - | | `success` | boolean | `true` only when nothing failed | | `message` | string | Human-readable result summary | | `details` | object | Counters and errors, below | * `localCacheFilesDeleted`, number: cached transformation variants removed from local disk * `cloudCacheFilesDeleted`, number: cached transformation variants removed from cloud storage * `errors`, string\[]: non-fatal errors encountered during cleanup. Only present when some steps failed `success` is computed as `errors.length === 0`, so a single non-fatal cleanup error makes it `false` even though the variants that could be removed were removed. Read `details.errors` to see what actually happened. **Status codes:** `200` success (or partial) · `400` path missing · `500` error ## Clear the entire cache ``` POST /storage/cache/clear ``` ```bash theme={null} curl -X POST https://cdn.openinary.dev/storage/cache/clear \ -H "Authorization: Bearer " ``` Removes every cached transformation variant on the instance, local and cloud, for every file. Takes no parameters and no body. Auth is an API key, or a dashboard session cookie. > [!WARNING] > > This purges the whole cache, not one file's variants. Every transformation is > regenerated on its next request, so the first hit on each URL pays full > processing cost again. On an instance serving many variants that is a > significant, self-inflicted load spike. Reach for > `DELETE /invalidate/{path}` unless you genuinely mean all of it. ```json theme={null} { "success": true, "message": "Cache cleared successfully", "details": { "localCacheFilesDeleted": 128, "cloudCacheFilesDeleted": 64 } } ``` **Status codes:** `200` success · `500` a cache backend failed ## Related > [card] [Delete File](/api-reference/storage/delete) > > Permanently remove a file and all its cached variants. > [card] [Transform](/api-reference/media/transform) > > Apply transformations, results are cached automatically. # Create Folder Source: https://docs.openinary.dev/api-reference/files/create-folder Create an empty folder in storage Post the path you want as a multipart `folder` field. Nested paths are created in one call. ``` POST /upload/createfolder ``` ```bash theme={null} curl -X POST https://cdn.openinary.dev/upload/createfolder \ -H "Authorization: Bearer " \ -F "folder=products/2024" ``` **Auth:** API Key required **Content-Type:** `multipart/form-data` ## Form fields | Field | Type | Description | | - | - | - | | `folder` | `string` | Required. Path of the folder to create, nested paths supported (`uploads/2024/january`) | ## Response `201` on success: ```json theme={null} { "success": true, "folder": "uploads/2024", "error": null } ``` `409` when the folder already exists: ```json theme={null} { "success": false, "folder": null, "error": "Folder already exists" } ``` A `400` means the folder path is invalid. Note that `folder` is `null` on the `409`, not the path you asked for. Read the path you sent from your own request, not from this response. ## Related > [card] [Upload Files](/api-reference/files/upload) > > Upload files into a folder. > [card] [List Storage](/api-reference/storage/list) > > Browse the folder tree. # Download Original File Source: https://docs.openinary.dev/api-reference/files/download Download the original uploaded file without any transformation Point at the storage path and the original bytes come back as an attachment. ``` GET /download/{path} ``` ```bash theme={null} curl -O -J https://cdn.openinary.dev/download/photos/portrait.jpg \ -H "Authorization: Bearer " ``` **Auth:** API key on Cloud, public and rate limited self-hosted. Drop the header when you call your own instance. ## Path parameters | Param | Type | Description | | - | - | - | | `path` | `string` | Required. Path to the file relative to the storage root, including the extension (`videos/clip.mp4`) | ## Response Returns the raw binary content of the original file with `Content-Disposition: attachment`, so browsers prompt a download rather than displaying it inline. | Header | Value | | - | - | | `Content-Type` | Detected from file extension | | `Content-Disposition` | `attachment; filename="{filename}"` | | `Content-Length` | File size in bytes | | `Cache-Control` | `private, no-store` | **Status codes:** `200` success · `400` invalid path · `404` not found · `500` error ## Related > [card] [Transform Media](/api-reference/media/transform) > > Serve transformed versions instead of the original. > [card] [Upload Files](/api-reference/files/upload) > > Upload new files. > [card] [Download Multiple Items](/api-reference/files/download-zip) > > Bundle several files/folders into one ZIP. # Download Folder as ZIP Source: https://docs.openinary.dev/api-reference/files/download-folder Download every file under a folder as a single ZIP archive **Self-hosted only.** Not available on Cloud. Point at a folder path and get one ZIP back, no list of files needed. ``` GET /download-folder/{path} ``` ```bash theme={null} curl -O -J https://media.example.com/download-folder/photos ``` **Auth:** Public (rate limited) ## Path parameters | Param | Type | Description | | - | - | - | | `path` | `string` | Required. Path to the folder relative to the storage root (`videos/2024`) | ## Response Returns a ZIP archive containing every file under the folder, recursively. Each entry's path is preserved relative to the folder. | Header | Value | | - | - | | `Content-Type` | `application/zip` | | `Content-Disposition` | `attachment; filename="{folderName}.zip"` | | `Content-Length` | Archive size in bytes | | `Cache-Control` | `private, no-store` | **Status codes:** `200` success · `400` missing or invalid path · `404` folder not found or empty · `500` error ## Related > [card] [Download Multiple Items](/api-reference/files/download-zip) > > Bundle a mixed selection of files and folders into one ZIP. > [card] [Download Original File](/api-reference/files/download) > > Download a single file. # Download Multiple Items as ZIP Source: https://docs.openinary.dev/api-reference/files/download-zip Bundle a mixed selection of files and folders into a single ZIP archive **Self-hosted only.** Not available on Cloud. Post a list of paths, get one ZIP back. Send either `items` or `paths`, non-empty, with at most 200 entries total. ``` POST /download-zip ``` ```bash theme={null} curl -X POST https://media.example.com/download-zip \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"items": [{"path": "photos/portrait.jpg", "kind": "file"}, {"path": "videos", "kind": "folder"}]}' \ -o download.zip ``` **Auth:** API Key required ## Body parameters | Param | Type | Description | | - | - | - | | `items` | `object[]` | Files and/or folders to include, each with a `path` and an optional `kind` | | `paths` | `string[]` | Shorthand alternative to `items`, a plain list of paths. Ignored if `items` is also provided | Each item object: | Field | Type | Description | | - | - | - | | `path` | `string` | Required. Path relative to the storage root | | `kind` | `string` | `"file"` or `"folder"`. If omitted, the server checks whether the path is a folder | Prefer `items` when you already know each item's kind: it skips a lookup per item and lets everything download in parallel. With `paths`, the server determines whether each one is a file or folder. Missing files are skipped rather than failing the whole request. ## Response Returns a ZIP archive named `download.zip`. Each entry keeps its full relative path, including folder prefixes, so files with the same name in different folders don't collide inside the archive. | Header | Value | | - | - | | `Content-Type` | `application/zip` | | `Content-Disposition` | `attachment; filename="download.zip"` | | `Content-Length` | Archive size in bytes | | `Cache-Control` | `private, no-store` | **Status codes:** `200` success · `400` invalid body or too many items (max 200) · `404` no files found for the given paths · `500` error ## Related > [card] [Download Folder as ZIP](/api-reference/files/download-folder) > > Download a single folder without listing its files individually. > [card] [Download Original File](/api-reference/files/download) > > Download a single file. # Upload Files Source: https://docs.openinary.dev/api-reference/files/upload Upload one or more media files, optionally pre-generating cached transformation variants Post a multipart form to `/upload`. Every file comes back with its storage path and a `/t/` delivery URL. ``` POST /upload ``` ```bash theme={null} curl -X POST https://cdn.openinary.dev/upload \ -H "Authorization: Bearer " \ -F "files=@photo.jpg" ``` **Auth:** API Key, session, or a presigned signature from [Sign Upload](/api-reference/files/upload-sign) **Content-Type:** `multipart/form-data` ## Form fields | Field | Type | Description | | - | - | - | | `files` | `file[]` | Required. One or more files, each validated for type and size | | `folder` | `string` | Destination folder within storage, nested paths supported (`uploads/2024/january`). Files go to the root if omitted | | `names` | `string[]` | Custom filenames, in the same order as `files`. Must include the extension. Defaults to the original filename | | `transformations` | `string[]` | Transformation segments to prewarm immediately after upload (`w_800,h_600,c_fill`), up to 20 variants. Self-hosted only: Cloud ignores this field and generates variants on first request | **Allowed types:** JPEG, PNG, WebP, AVIF, GIF, HEIC/HEIF, PSD, MP4, MOV, WebM, WAV, MP3, OGG, GLB, glTF **Max size per file:** configurable via `MAX_FILE_SIZE_MB`, default 50 MB Prewarming pre-generates and caches each variant, so the first user request is served from cache with no processing delay. HEIC and HEIF files are transcoded to JPEG on upload. The returned `filename`, `path` and `url` carry a `.jpg` extension instead of the original `.heic` or `.heif`. > [!WARNING] > > Content is checked, not just the extension. The first bytes of each file must > match the format it claims to be, so a `.jpg` holding an HTML document is > rejected here rather than stored. A mismatch fails that one file with `File > content does not match its .jpg type` and the rest of the batch still uploads. ## Examples > [tab] Upload to folder > > ```bash theme={null} > curl -X POST https://cdn.openinary.dev/upload \ > -H "Authorization: Bearer " \ > -F "files=@photo.jpg" \ > -F "folder=products/2024" > ``` > [tab] Upload with prewarm > > ```bash theme={null} > curl -X POST https://media.example.com/upload \ > -H "Authorization: Bearer " \ > -F "files=@photo.jpg" \ > -F "folder=photos" \ > -F "transformations=w_800,h_600,c_fill,f_webp" \ > -F "transformations=w_400,h_400,c_fill,g_face" > ``` > > Uploads the file and immediately generates two cached variants. Self-hosted only: Cloud accepts the field and ignores it. > [tab] Multiple files with custom names > > ```bash theme={null} > curl -X POST https://cdn.openinary.dev/upload \ > -H "Authorization: Bearer " \ > -F "files=@IMG_001.jpg" \ > -F "files=@IMG_002.jpg" \ > -F "names=hero-banner.jpg" \ > -F "names=thumbnail.jpg" \ > -F "folder=assets" > ``` ## Response | Code | Meaning | | - | - | | `200` | All files uploaded successfully | | `207` | Partial success, some files failed | | `400` | Validation error (invalid type, size exceeded, etc.) | A fully successful upload returns only `success` and `files`. There is no `errors` key, and the optional per-file arrays appear only when they have something in them: ```json theme={null} { "success": true, "files": [ { "filename": "photo.jpg", "path": "photos/photo.jpg", "size": 204800, "url": "/t/photos/photo.jpg", "prewarmedUrls": ["/t/w_800,h_600,c_fill/photos/photo.jpg"] } ] } ``` That is the self-hosted shape. On Cloud the `url` carries the bucket prefix, `/b/{bucketId}/t/photos/photo.jpg`, and `prewarmedUrls` is absent: variants are generated on the first request instead. | Field | Type | Description | | - | - | - | | `success` | `boolean` | `true` if at least one file was processed. Still `true` on a `207`, so check `errors` for partial failure | | `files` | `array` | Successfully uploaded files | | `errors` | `array` | Files that failed to upload. Present only on a `207` or a `400` | Each entry in `files`: | Field | Type | Description | | - | - | - | | `filename` | `string` | Original or custom filename. A HEIC or HEIF upload comes back with a `.jpg` extension | | `path` | `string` | Storage path relative to root | | `size` | `number` | File size in bytes, after any conversion | | `url` | `string` | Root-relative delivery path. Self-hosted it starts with `/t/`, on Cloud with `/b/{bucketId}/t/`. Prefix your base URL for an absolute URL | | `prewarmedUrls` | `string[]` | Image transformation paths generated and cached during the upload. Omitted when empty | | `prewarmErrors` | `string[]` | Prewarm failures. The file still uploaded successfully. Omitted when empty | | `queuedTransformationUrls` | `string[]` | Video transformation paths queued for background processing. Omitted when empty | | `queueErrors` | `string[]` | Queue submission errors. Omitted when empty | Each entry in `errors` carries `filename`, the name of the failed file, and `error`, the message. ## Related > [card] [Create Folder](/api-reference/files/create-folder) > > Create an empty folder in storage. > [card] [Upload & Cache Warming](/media-transformations/upload-and-prewarm) > > Prewarm strategy guide. > [card] [Delete File](/api-reference/storage/delete) > > Remove a file and its cached variants. > [card] [Sign Upload](/api-reference/files/upload-sign) > > Let an untrusted client upload without your API key. # Sign Upload Source: https://docs.openinary.dev/api-reference/files/upload-sign Mint a short-lived signature so a browser can upload directly to POST /upload without exposing your API key Call this from a trusted backend with your API key. Hand the returned signature to the untrusted client, which uses it to upload. ``` POST /upload/sign ``` ```bash theme={null} curl -X POST https://cdn.openinary.dev/upload/sign \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"folder": "photos", "expiresIn": 300}' ``` **Auth:** API Key required ## Body parameters | Param | Type | Default | Description | | - | - | - | - | | `folder` | `string` | root folder | Folder the signature is scoped to. Must match the `folder` field sent with the eventual `POST /upload` | | `expiresIn` | `number` | `300` | Signature lifetime in seconds, clamped between `1` and `3600` | ## Response ```json theme={null} { "success": true, "signature": "a1b2c3d4e5f6...", "expires": 1735689600, "folder": "photos" } ``` | Field | Type | Description | | - | - | - | | `success` | `boolean` | `true` if a signature was generated | | `signature` | `string` | The presigned signature to pass alongside the upload | | `expires` | `number` | Unix timestamp (seconds) after which the signature is no longer valid | | `folder` | `string` | The folder the signature is scoped to | **Status codes:** `200` success · `500` `API_SECRET` not configured on the server ## Related > [card] [Upload Files](/api-reference/files/upload) > > Use the resulting signature to upload without an API key. # Health Source: https://docs.openinary.dev/api-reference/health Check server and database availability **Self-hosted only.** Not available on Cloud. Two probes. `GET /health` is a public liveness check, `GET /health/database` needs an API key and reports on the SQLite file. ```bash theme={null} curl https://media.example.com/health ``` ## Server health ``` GET /health ``` **Auth:** Public (rate limited) Quick liveness check, use this for load balancer health probes or uptime monitoring. ```json theme={null} { "status": "ok", "timestamp": "2024-03-15T10:30:00.000Z", "service": "openinary-api" } ``` **Status codes:** `200` healthy ## Database health ``` GET /health/database ``` ```bash theme={null} curl https://media.example.com/health/database \ -H "Authorization: Bearer " ``` **Auth:** API Key required Detailed diagnostic, checks the SQLite database connection, file permissions, and table record counts. ```json theme={null} { "status": "ok", "timestamp": "2024-03-15T10:30:00.000Z", "database": { "connected": true, "path": "/app/data/openinary.db", "size": "2.4 MB", "permissions": "644", "tables": { "user": 1, "session": 3, "account": 1, "verification": 0, "apiKey": 2 } } } ``` | Field | Type | Description | | - | - | - | | `database.connected` | `boolean` | Whether the database connection is active | | `database.path` | `string` | Absolute path to the database file | | `database.size` | `string` | Database file size | | `database.permissions` | `string` | Octal file permissions, three digits with no leading zero (for example `600` or `644`) | | `database.tables` | `object` | Record counts per table. Useful for verifying migrations applied correctly | | `database.warning` | `string` | Present only when the database file is larger than 1 GB. Permission problems are reported in `security_warning` instead | | `database.security_warning` | `string` | Present when the database file's permissions are less restrictive than `600` | | `database.file_error` | `string` | Present if the database file's permissions or size couldn't be read | | `database.table_error` | `string` | Present if table record counts couldn't be retrieved | **Status codes:** `200` healthy · `503` database connection failed # API Reference Source: https://docs.openinary.dev/api-reference/introduction Base URL, authentication, rate limits and every endpoint, documented once for Cloud and self-hosted Every path below is relative to your base URL, and protected endpoints take an API key as a Bearer token. ```http theme={null} GET https://cdn.openinary.dev/storage Authorization: Bearer ``` ## Base URL | Running on | Base URL | | - | - | | Cloud | `https://cdn.openinary.dev` | | Self-hosted | your instance origin, e.g. `https://media.example.com`, or `http://localhost:3000` in development | Examples on these pages use the Cloud host. Self-hosted, swap the origin and every request is otherwise identical. Delivery is the one path that differs: on Cloud it carries a bucket prefix, `/b/{bucketId}/t/...`, see [your base URL](/media-transformations/overview#your-base-url). ## Authentication On Cloud, create keys in the dashboard at [app.openinary.dev](https://app.openinary.dev) under **Settings → API keys**. A key is shown once and is pinned to a single bucket, which is why no endpoint takes a bucket ID. Either header works, `Authorization: Bearer` or `x-api-key`. Self-hosted, create them from the dashboard at `/api-keys` or through the [API Keys API](/api-reference/api-keys/create). In API-only mode the first key is printed to the server logs at startup. Every API-key endpoint also accepts a dashboard session cookie, which is how the dashboard calls storage and upload without minting a key for itself. **These endpoints work on both Cloud and self-hosted**, with the same request and response shapes. The pages that do not are marked **Self-hosted only** at the top and use `https://media.example.com` in their examples. For the full list of what Cloud does not have, see [what differs on Cloud](/cloud/api). ## Endpoints | Group | Endpoint | Auth | | - | - | - | | **Media** | `GET /t/{transformations}/{path}` | Public | | | `GET /authenticated/s--{sig}/{transformations}/{path}` | Signed URL | | **Files** | `POST /upload` | API key or presigned | | | `POST /upload/sign` | API key | | | `POST /upload/createfolder` | API key | | | `GET /download/{path}` | Public self-hosted, API key on Cloud | | | `GET /download-folder/{path}` | Public | | | `POST /download-zip` | API key | | **Storage** | `GET /storage` | API key | | | `GET /storage/folders` | API key | | | `GET /storage/folder-summaries` | API key | | | `GET /storage/stats` | API key | | | `POST /storage/stats/recalculate` | API key | | | `GET /storage/{path}/metadata` | API key | | | `PATCH /storage/{path}` | API key | | | `POST /storage/{path}/move` | API key | | | `POST /storage/{path}/copy` | API key | | | `DELETE /storage/{path}` | API key | | **Cache** | `DELETE /invalidate/{path}` | API key | | | `POST /storage/cache/clear` | API key | | **Video** | `GET /video-status/{transformations}/{path}` | Public self-hosted, API key on Cloud | | | `GET /video-status/{transformations}/{path}/size` | Public self-hosted, API key on Cloud | | **Queue** | `GET /queue/stats` | API key | | | `GET /queue/worker/stats` | API key | | | `GET /queue/jobs` | API key | | | `POST /queue/jobs/{jobId}/retry` | API key | | | `POST /queue/jobs/{jobId}/cancel` | API key | | | `DELETE /queue/jobs/{jobId}` | API key | | | `GET /queue/events` | Public self-hosted, API key on Cloud | | **API Keys** | `POST /api-keys/create` | API key or session | | | `GET /api-keys/list` | API key or session | | | `PATCH /api-keys/{keyId}` | API key or session | | | `DELETE /api-keys/{keyId}` | API key or session | | **Health** | `GET /health` | Public | | | `GET /health/database` | API key | ## Rate limiting Public routes are limited by IP: 100 requests per 60 seconds, tunable with `PUBLIC_RATE_LIMIT_MAX` and `PUBLIC_RATE_LIMIT_WINDOW_MS`. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. Most API-key endpoints sit outside that limiter, but `POST /upload` and `GET /health/database` do not, so a burst of uploads can be throttled even with a valid key. Those numbers are self-hosted. Cloud limits delivery only, 300 requests per 60 seconds per IP and 1,000 per account, and leaves upload, signing and storage calls unlimited. See [Cloud rate limits](/cloud/api#rate-limits). ## Errors JSON errors carry a short `error` label and a `message`: ```json theme={null} { "error": "Bad request", "message": "Human-readable explanation" } ``` | Status | Meaning | | - | - | | `400` | Invalid parameters or missing required fields | | `401` | Missing or invalid API key | | `403` | Valid key, insufficient permissions | | `404` | Not found | | `409` | Resource already exists | | `429` | Rate limit exceeded | | `500` | Internal server error | > [!WARNING] > > The delivery routes `/t/*` and `/authenticated/*` return **plain text**, not > JSON. Parsing every error body as JSON throws on exactly the routes your users > hit most. Check `Content-Type` first. Two endpoints add fields on top of that pair: [delete](/api-reference/storage/delete) returns a `details` object, and [invalidate](/api-reference/cache/invalidate) returns an `errors` array. Neither is a general envelope. # Authenticated Transform Source: https://docs.openinary.dev/api-reference/media/authenticated-transform Apply transformations via a signed URL that cannot be guessed or tampered with **Self-hosted only.** Signed delivery URLs are not available on Cloud yet. Same transformations as the public `/t/` endpoint, behind an HMAC-SHA256 signature. Use it for private media, or to restrict which transformations can be applied. ``` GET /authenticated/s--{signature}/{transformations}/{path} ``` ```http theme={null} GET /authenticated/s--a1b2c3d4e5f6a7b8/w_400,h_400,c_fill/private/photo.jpg ``` **Auth:** Signature verification (no API key needed at request time) ## Path parameters | Param | Type | Description | | - | - | - | | `signature` | `string` | Required. 16 hex characters, truncated from the full HMAC-SHA256 digest | | `transformations` | `string` | Comma-separated parameters, identical to the public `/t/` endpoint | | `path` | `string` | Required. Path to the file, identical to the public `/t/` endpoint | The signature is computed server-side over the transformations plus the file path, using `API_SECRET` as the HMAC key. Both must match what was signed, since any change to the URL invalidates the signature. A signature of any other length is rejected with `400` before the value is even checked. See [Signed URLs](/media-transformations/signed-urls) for code examples on generating signatures. ## Response Same as the [public transform endpoint](/api-reference/media/transform), returns binary file content. | Code | Meaning | | - | - | | `200` | Transformed file returned | | `400` | Invalid URL format, wrong signature length, or transformation parameters on a [non-transformable type](/api-reference/media/transform#pass-through-formats) | | `401` | Signature does not match, tampered or wrong secret | | `404` | File not found | ## Related > [card] [Signed URLs guide](/media-transformations/signed-urls) > > How to generate signed URLs from your backend. > [card] [Public Transform](/api-reference/media/transform) > > Unrestricted on-the-fly transformations. # Transform Media Source: https://docs.openinary.dev/api-reference/media/transform Resize, crop, convert and trim media by putting parameters in the URL Put comma-separated parameters between `/t/` and the file path. The first request renders and caches the result, the rest are served from cache. ``` GET /t/{transformations}/{path} ``` ```http theme={null} GET /t/w_800,h_600,c_fill,f_webp/photos/portrait.jpg ``` Drop the parameters to get the stored original back untouched: `GET /t/photos/portrait.jpg`. **Auth:** public, rate limited. For URLs that cannot be guessed or edited, use [signed URLs](/api-reference/media/authenticated-transform), which are self-hosted only. On Cloud the same path sits behind a bucket prefix, `/b/{bucketId}/t/...`. See [your base URL](/media-transformations/overview#your-base-url). Everything after it is identical. ## Recipes | Goal | URL | | - | - | | Resize | `/t/w_800,h_600/image.jpg` | | Avatar, cropped on the subject | `/t/w_400,h_400,c_fill,g_face/portrait.jpg` | | Circular avatar | `/t/w_400,h_400,c_fill,r_max,f_png/avatar.jpg` | | Rounded corners on a white page | `/t/w_600,h_400,r_16,b_rgb:ffffff/photo.jpg` | | 16:9 banner | `/t/ar_16:9,w_1920/banner.jpg` | | Padded to a fixed size | `/t/w_400,h_300,c_pad,b_rgb:f5f5f5/thumb.jpg` | | Padded with a color taken from the image | `/t/w_400,h_300,c_pad,b_auto/product.jpg` | | Brighten a dark photo | `/t/w_800,e_fill_light:70:20/photo.jpg` | | Blurred placeholder | `/t/w_40,e_blur:400/photo.jpg` | | Black and white | `/t/w_800,e_grayscale/photo.jpg` | | Smallest file the browser supports | `/t/w_1200/photo.jpg` | | 720p video | `/t/w_1280,h_720,q_80/video.mp4` | | Trim 5s to 12s | `/t/so_5,eo_12/video.mp4` | | Video poster frame | `/t/t_true,tt_5,f_webp,w_500/video.mp4` | ## Image parameters | Param | Values | Default | Notes | | - | - | - | - | | `w` | integer | | Width in pixels | | `h` | integer | | Height in pixels | | `c` | `fill` `fit` `scale` `crop` `pad` `lfill` `lpad` `mfit` `mpad` | `fill` | `fill` crops the overflow, `fit` preserves ratio without enlarging, `scale` may stretch, `pad` adds borders in `b`. See [limited modes](#limited-crop-modes) | | `ar` | `W:H` | | Aspect ratio, e.g. `ar_16:9` | | `a` | degrees, `auto`, `ignore`, `hflip`, `vflip`, joined with `.` | | Rotate and mirror, left to right: `a_hflip.90` mirrors then rotates. EXIF orientation is always applied first (`auto` adds nothing); `ignore` keeps the stored pixel orientation | | `dpr` | `0.1` to `5`, or `auto` | `1` | Multiplies `w` and `h`: `dpr_2,w_400` is `w_800`. `auto` serves 1x, Client Hints are not read | | `g` | `center` `north` `south` `east` `west` `face` `auto` | `center` | Focal point when cropping | | `b` | `rgb:` (3, 4, 6 or 8 digits), a CSS color name, `transparent`, [`auto`](#automatic-background), or `blurred[:intensity][:brightness]` | | Fill color for `c_pad`, rotation, rounded corners and `o`. Alias `bg` | | `r` | integer, `v1:v2`, `v1:v2:v3`, `v1:v2:v3:v4`, or `max` | | Corner radius, clockwise from top-left. `max` gives a circle or oval | | `q` | `1` to `100`, or `auto` | `auto` | See [quality](#quality) | | `f` | `avif` `webp` `jpeg` `png` `gif` `auto` | browser's best | See [formats](#formats) | | `e` | see [effects](#effects) | | Repeatable, applied in URL order | | `o` | `0` to `100` | `100` | Opacity. Baked onto `b` (or white, for `f_jpg`) when set, otherwise kept as transparency | | `co` | `rgb:` or a CSS color name | `gray` | Color for `e_colorize` | | `bo` | `px_solid_` | | Border outside the image, 1 to 1000 px, e.g. `bo_4px_solid_rgb:333` | | `d` | file path, `:` for folders | | Image served, with the same transformation, when the requested one is missing. See [default image](#default-image) | `g_face` uses saliency detection, not face detection. It keeps whatever region scores as most interesting, which on a portrait is normally the face. Corner radius is clamped to half the shorter side. Cut corners are transparent, so pair `r` with `f_png`, `f_webp` or `f_avif`, or add `b` to fill them and stay on JPEG. ### Limited crop modes | Mode | Larger than the box | Smaller than the box | | - | - | - | | `lfill` | Like `fill` | Not enlarged, only cropped to the box | | `lpad` | Like `pad` | Not enlarged, padded to the exact size | | `mfit` | Untouched | Enlarged to fit, like `fit` without its limit | | `mpad` | Untouched | Not enlarged, padded to the exact size | `c_limit` is the same as `c_fit`, which never enlarges. `lpad` and `mpad` place the image by `g` (`north`, `south`, `east`, `west`, default `center`) and fill with `b`. ### Automatic background `b_auto` picks the fill color from the image, so a padded product shot does not end up with a jarring white band. Use it with `c_pad`. ``` b_auto[:mode][:number][:direction][:palette__..._] ``` | Mode | Color taken from | | - | - | | `border` (default) | The predominant color of the image's edges | | `predominant` | The predominant color of the whole image | | `border_contrast`, `predominant_contrast` | The color that contrasts most with the above | | `border_gradient`, `predominant_gradient` | A gradient between the predominant colors of each side | | `border_gradient_contrast`, `predominant_gradient_contrast` | A gradient of the contrasting colors | For gradients, `number` is `2` (default) or `4`. With 2 colors, `direction` is `horizontal` (default), `vertical`, `diagonal_desc` or `diagonal_asc`. With 4, each corner gets its own color. `palette_` limits the result to the listed colors, as CSS names or hex without `rgb:`, for example `b_auto:predominant:palette_white_black_navy`. `b_blurred` pads with a blurred copy of the image itself, the usual way to fit a portrait into a landscape slot: `c_pad,w_1200,h_630,b_blurred:400:-20`. Intensity runs `1` to `2000` (default `100`), brightness `-300` to `100` (default `0`). ### Default image `d_placeholders:avatar.png` serves `placeholders/avatar.png` when the requested file does not exist, with the rest of the transformation applied, so `w_96,h_96,c_fill,d_avatar.png/users/42.jpg` always returns a 96 px image. The response carries `X-Default-Image` and `Cache-Control: private, max-age=60`, so no shared cache pins the placeholder once the real file is uploaded. If the default image is missing too, the answer is `404`. > [!NOTE] > > Self-hosted only for now. On Cloud `d_` is accepted and ignored: a missing file still answers `404`. ### Effects Effects run after resizing, so they work on the delivered pixels, and before the overlay, so a watermark is left untouched. Put several in one segment and they apply left to right: `e_negate,e_brightness:30` and `e_brightness:30,e_negate` give different results. | Effect | Arguments | Default | Notes | | - | - | - | - | | `e_fill_light[:blend][:bias]` | blend `0` to `100`, bias `-100` to `100` | `100`, `0` | Lifts shadows and midtones, leaves highlights. An approximation: Cloudinary does not publish its algorithm | | `e_blur[:strength]` | `1` to `2000` | `100` | Gaussian blur | | `e_sharpen[:strength]` | `1` to `2000` | `100` | | | `e_unsharp_mask[:strength]` | `1` to `2000` | `100` | Wider radius than `e_sharpen` | | `e_grayscale` | | | Keeps transparency | | `e_sepia[:level]` | `1` to `100` | `80` | | | `e_negate` | | | | | `e_brightness[:level]` | `-99` to `100` | `80` | Percent change, `100` doubles | | `e_contrast[:level_][;type_]` | `sigmoidal`: `-100` to `100`; `linear`: `1` to `200` | `0`, `sigmoidal` | `e_contrast:50` also works | | `e_saturation[:level]` | `-100` to `100` | `80` | `-100` is grayscale | | `e_hue[:level]` | `-100` to `100` | `80` | `100` is half a turn of the color wheel | | `e_gamma[:level]` | `-50` to `150` | `0` | Higher brightens midtones | | `e_pixelate[:size]` | `1` to `200` px | from the image size | | | `e_trim[:tolerance][:color]` | `0` to `100`, color | `10`, corner pixel | Crops away a uniform border | | `e_tint[:equalize][:amount][:color[:Np]]...` | amount `0` to `100`, up to 10 colors with positions `0p` to `100p` | `60`, `red` | Several colors map dark to light tones | | `e_colorize[:level]` | `0` to `100` | `100` | Color from `co`, e.g. `co_darkviolet,e_colorize:35` | Colors take `rgb:` with 3, 4, 6 or 8 digits, or a CSS color name. `e_tint` takes the hex without `rgb:`, as Cloudinary does. ### Quality Leave `q` unset and each format gets the quality it deserves: 80 for AVIF, 85 for WebP, 90 for JPEG, 100 for PNG. Large files shift a few points, clamped to 70-95. An explicit `1` to `100` is used as given. ### Formats Omit `f` and Openinary picks the best format the browser accepts, in order AVIF, WebP, then JPEG or PNG. `f_auto` goes further: it encodes every supported candidate, compares byte counts and serves the smallest, at the cost of a slower first request. **Input:** JPEG, PNG, WebP, AVIF, GIF (first frame), HEIC/HEIF (converted to JPEG at upload), PSD (layers composited) **Output:** AVIF, WebP, JPEG, PNG, GIF ## Video parameters | Param | Values | Default | Notes | | - | - | - | - | | `w` | integer | | Width in pixels | | `h` | integer | | Height in pixels | | `c` | `fill` `crop` `fit` `scale` `pad` | `fill` | Requires `w` or `h` | | `q` | `1` to `100`, or `auto` | `60` | CRF is `round(51 - q / 100 * 33)`, so `q_60` is CRF 31 | | `so` | seconds | | Start offset | | `eo` | seconds | | End offset, exclusive. `so_5,eo_12` is a 7s clip | | `f` | `mp4` `webm` `mov`, or an image format | `mp4` | An image format extracts a frame | | `t` | `t_true` | `false` | Extract one frame as an image instead of transcoding | | `tt` | seconds | `0` | Which frame to extract, with `t` | A bare `/t/clip.mp4` streams the original untouched. Add `q_auto` to opt into the default encode without choosing a CRF. The default `q_60` favors encoding speed over file size, which is what makes large sources viable. Raise it when output quality matters more than job time. Videos also apply fixed limits: 720p maximum when you request no explicit `w` or `h`, a 200 MB cap on the source, and a 5 minute encode timeout. See [video processing](/configuration/video-processing). **Input:** MP4 (H.264/H.265), MOV, WebM (VP8/VP9) · **Output:** MP4, WebM, MOV > [!WARNING] > > A video transformation that is not cached yet answers `202`, not the > original. Wait for `Retry-After` and request the same URL again, see > [Waiting on a 202](#waiting-on-a-202). For assets you know you will serve, > [prewarm at upload](/media-transformations/upload-and-prewarm) so the first > visitor never sees the `202`. ## Pass-through formats Audio and 3D files are stored and delivered, never transformed. Request them with no transformation segment and the stored bytes come back untouched, as in `GET /t/audio/podcast.mp3` or `GET /t/models/duck.glb`. | Kind | Extensions | | - | - | | Audio | `wav` `mp3` `ogg` | | 3D | `glb` `gltf` | Adding parameters to one returns `400` rather than the original, so a "resized" variant that is really the untouched file never gets cached. ## Response Returns the binary content, with `Cache-Control` set for browser caching and `X-Content-Type-Options: nosniff`. The content type comes from the extension via the shared media table, never from sniffing the body, which is why uploads are validated by content in the first place. | Code | Meaning | | - | - | | `200` | File returned | | `202` | Transformation still processing. Carries an estimate of when it will be ready, see below | | `400` | Transformation parameters on a non-transformable type | | `404` | File not found | | `500` | Processing error | ## Waiting on a 202 A `202` means the variant is being generated and nothing is wrong. It always says when to come back: ```http theme={null} HTTP/1.1 202 Accepted Retry-After: 6 X-Processing-Phase: processing X-Processing-Eta: 6 ``` ```json theme={null} { "status": "processing", "message": "Video transformation is being processed", "phase": "processing", "progress": 0.42, "estimatedSeconds": 6, "estimatedRange": [6, 9], "retryAfter": 6, "statusUrl": "/video-status/w_640/videos/clip.mp4" } ``` | Field | Type | Notes | | - | - | - | | `phase` | string | `waking`: the processing server is starting up (Cloud only, after it has been idle). `queued`: waiting behind other videos. `processing`: being encoded | | `progress` | number | From `0` to `1`. Measured from the encoder for videos, `0` until it reports | | `estimatedSeconds` | number | Typical time left, in seconds | | `estimatedRange` | `[number, number]` | Typical and pessimistic time left. Show the second as an upper bound | | `retryAfter` | number | Same as the `Retry-After` header: when asking again is worth it. Capped at 30 seconds, so a long job keeps refining its estimate | | `statusUrl` | string | Videos only. See [video status](/api-reference/video/status) | The simplest client honours `Retry-After` and requests the **same URL** again until it gets a `200`. Every retry returns a fresh estimate, sharper as the job advances: once a video encode has started, the estimate comes from its own measured speed. Retrying sooner than `Retry-After` is harmless but cannot make the transformation finish faster. ```ts theme={null} async function fetchVariant(url: string): Promise { for (;;) { const response = await fetch(url); if (response.status !== 202) return response; const seconds = Number(response.headers.get("Retry-After")) || 2; await new Promise((resolve) => setTimeout(resolve, seconds * 1000)); } } ``` Estimates are learned from the transformations your deployment has already run, so they get more accurate with use. Before that they fall back to conservative defaults. ## Gotchas Only the short parameter keys work. The parser splits a segment at its first underscore, so `thumbnail_time_5` reads as the key `thumbnail`, fails, and the segment is then treated as a folder name, ending in a `404`. Video URLs accept the image-only parameters `a`, `ar`, `r`, `b`, `e`, `o`, `co` and `bo` and silently ignore them. The URL still works, the output is just re-encoded without them. For compatibility with Cloudinary-shaped URLs, `c` also accepts `fill_pad` (as `fill`), `limit` (as `fit`) and `thumb` (as `crop`), and `g` also accepts `c`, `n`, `s`, `e`, `w`, `faces`, `face_center`, `faces_center`, `north_center` and `south_center`. ## Related > [card] [Authenticated Transform](/api-reference/media/authenticated-transform) > > Signed URLs that cannot be guessed or edited. > [card] [Upload Files](/api-reference/files/upload) > > Upload media and pre-generate variants. > [card] [Video Status](/api-reference/video/status) > > Poll a queued video transformation. > [card] [Automatic Format Selection](/media-transformations/intelligent-compression) > > How the default format and quality are chosen. # Queue Events (SSE) Source: https://docs.openinary.dev/api-reference/queue/events Stream video processing job updates over Server-Sent Events Open a persistent connection and job lifecycle events arrive as they happen. Use it for live progress in your UI instead of polling. ```javascript theme={null} // Cloud authenticates this stream, so proxy it from your server: EventSource // cannot send an Authorization header, and a key does not belong in a bundle. const source = new EventSource("/api/openinary/queue/events"); source.addEventListener("job:progress", (e) => { const { jobId, progress } = JSON.parse(e.data); updateProgressBar(jobId, progress); }); source.addEventListener("job:completed", (e) => { const { jobId } = JSON.parse(e.data); markDone(jobId); }); source.addEventListener("job:error", (e) => { const { jobId, error } = JSON.parse(e.data); console.error(`Job ${jobId} failed:`, error); }); ``` ``` GET /queue/events ``` **Auth:** API key on Cloud, public and rate limited self-hosted. Read the raw stream with `curl -N https://cdn.openinary.dev/queue/events -H "Authorization: Bearer "`, or without the header on your own instance. ## Events Each event follows the SSE format: `event: \ndata: \n\n` | Event | Fires when | `data` | | - | - | - | | `connected` | The connection opens | `{"clientId": "client_abc123"}` | | `job:created` | A job is added to the queue | `{"jobId": "job_xyz", "filePath": "videos/clip.mp4", "status": "pending", "priority": 2}` | | `job:started` | A job begins processing | `{"jobId": "job_xyz", "filePath": "videos/clip.mp4", "status": "processing"}` | | `job:progress` | Progress advances, 0 to 100 | `{"jobId": "job_xyz", "progress": 47}` | | `job:completed` | A job finishes successfully | `{"jobId": "job_xyz", "filePath": "videos/clip.mp4", "status": "completed"}` | | `job:error` | A job fails | `{"jobId": "job_xyz", "filePath": "videos/clip.mp4", "status": "error", "error": "FFmpeg process exited with code 1"}` | | `heartbeat` | Periodically, to keep the connection alive | `{"timestamp": 1710498600000}` | The heartbeat `timestamp` is Unix epoch milliseconds (`Date.now()`), not an ISO string. The `priority` on `job:created` is always `2`. The stream builds its payload from a converted job object that drops the stored priority, so a thumbnail queued at `1` still reports `2` here. Read [GET /queue/jobs](/api-reference/queue/jobs) for the real value. ## Response headers | Header | Value | | - | - | | `Content-Type` | `text/event-stream` | | `Cache-Control` | `no-cache` | | `Connection` | `keep-alive` | | `X-Accel-Buffering` | `no` | ## Related > [card] [Queue Jobs](/api-reference/queue/jobs) > > Query job details or manage individual jobs. > [card] [Video Status](/api-reference/video/status) > > Check processing status by file path. # Queue Jobs Source: https://docs.openinary.dev/api-reference/queue/jobs List, retry, cancel, and delete video processing jobs **Self-hosted only.** Cloud exposes `/queue/events` only. Four endpoints over the video job queue: list jobs, then retry, cancel or delete one by ID. All of them need an API key. ```bash theme={null} curl "https://media.example.com/queue/jobs?status=error&limit=20" \ -H "Authorization: Bearer " ``` ## List jobs ``` GET /queue/jobs ``` **Auth:** API Key required | Param | Type | Default | Notes | | - | - | - | - | | `limit` | number | `50` | Maximum number of jobs to return | | `offset` | number | `0` | Number of jobs to skip. Ignored whenever `status` is set | | `status` | string | | One of `pending` `processing` `completed` `error` `cancelled` | The filtered path calls `getJobsByStatus(status, limit)`, which takes no offset. Paginating a filtered list re-returns the same first page. `offset` is echoed back in the response either way. ### Response This endpoint serves database rows as they are stored. Field names are `snake_case`, not `camelCase`, and timestamps are epoch milliseconds, not ISO 8601 strings. ```json theme={null} { "jobs": [ { "id": "job_abc123", "file_path": "videos/clip.mp4", "params_json": "{\"width\":640}", "cache_path": "cache/w_640/videos/clip.mp4", "status": "completed", "priority": 2, "progress": 100, "error": null, "retry_count": 0, "max_retries": 3, "created_at": 1773567000000, "started_at": 1773568200000, "completed_at": 1773568305000 } ], "limit": 50, "offset": 0, "count": 1 } ``` `count` is the number of jobs in this response, not the total matching the filter. Each entry in `jobs`: | Field | Type | Notes | | - | - | - | | `id` | string | Unique job identifier | | `file_path` | string | Storage path of the video being processed | | `params_json` | string | Transformation parameters the job was queued with, as a JSON string. With `file_path`, this is the key a job is looked up by | | `cache_path` | string | Where the finished variant is written | | `status` | string | `pending` `processing` `completed` `error` `cancelled` | | `priority` | number | Lower runs first. Thumbnails are queued at `1`, transformations at `2` | | `progress` | number | Progress percentage, 0 to 100 | | `error` | string | Error message when `status` is `error`, `null` otherwise | | `retry_count` | number | Attempts made so far | | `max_retries` | number | Attempt ceiling, from `VIDEO_JOB_RETRY_MAX` | | `created_at` | number | Epoch milliseconds when the job was queued | | `started_at` | number | Epoch milliseconds when processing started, `null` while pending | | `completed_at` | number | Epoch milliseconds when processing finished, `null` until then | [Video Status](/api-reference/video/status) returns the same jobs in a converted shape: `camelCase` keys and ISO 8601 timestamps. The two endpoints disagree on field names by design. One serves rows, the other serves a view model. ## Retry job ``` POST /queue/jobs/{jobId}/retry ``` Re-queues a failed job. `jobId` must have `error` status. ```bash theme={null} curl -X POST https://media.example.com/queue/jobs/job_abc123/retry \ -H "Authorization: Bearer " ``` ```json theme={null} { "success": true, "message": "Job scheduled for retry" } ``` **Status codes:** `200` success · `400` job not in error state · `500` error ## Cancel job ``` POST /queue/jobs/{jobId}/cancel ``` Cancels a job before it starts processing. `jobId` must have `pending` status. ```bash theme={null} curl -X POST https://media.example.com/queue/jobs/job_abc123/cancel \ -H "Authorization: Bearer " ``` ```json theme={null} { "success": true, "message": "Job cancelled" } ``` **Status codes:** `200` success · `400` job not pending · `500` error ## Delete job ``` DELETE /queue/jobs/{jobId} ``` Permanently removes a job record from the queue. ```bash theme={null} curl -X DELETE https://media.example.com/queue/jobs/job_abc123 \ -H "Authorization: Bearer " ``` ```json theme={null} { "success": true, "message": "Job deleted" } ``` **Status codes:** `200` success · `400` failed · `500` error ## Related > [card] [Queue Statistics](/api-reference/queue/stats) > > Aggregate counts per status. > [card] [Queue Events (SSE)](/api-reference/queue/events) > > Real-time progress updates. > [card] [Video Status](/api-reference/video/status) > > Check processing status by file path. # Queue Statistics Source: https://docs.openinary.dev/api-reference/queue/stats Job counts per status for the video processing queue **Self-hosted only.** Cloud exposes `/queue/events` only. Counts the job rows currently in the queue table, per status. ```bash theme={null} curl https://media.example.com/queue/stats \ -H "Authorization: Bearer " ``` ``` GET /queue/stats ``` **Auth:** API Key required ## Response ```json theme={null} { "total": 154, "pending": 2, "processing": 1, "completed": 148, "error": 3 } ``` | Field | Type | Notes | | - | - | - | | `total` | number | Every job row in the table, including cancelled ones | | `pending` | number | Jobs queued and waiting for a worker | | `processing` | number | Jobs a worker is running right now | | `completed` | number | Jobs that finished successfully | | `error` | number | Jobs that exhausted their retries | There is no `cancelled` key. Cancelled jobs are counted in `total` only, so `total` is not the sum of the other four. Completed and errored jobs are purged after `VIDEO_JOB_CLEANUP_HOURS`. These counts are a snapshot of the retention window, not a lifetime tally. ## Related > [card] [List Jobs](/api-reference/queue/jobs) > > View individual job details with filtering. > [card] [Queue Events](/api-reference/queue/events) > > Subscribe to real-time job status updates via SSE. > [card] [Worker Statistics](/api-reference/queue/worker-stats) > > Check the background worker's current state. # Worker Statistics Source: https://docs.openinary.dev/api-reference/queue/worker-stats Current state of the background video processing worker **Self-hosted only.** Cloud exposes `/queue/events` only. Reports what the background worker is doing right now: its limits, and how many jobs it is running. ```bash theme={null} curl https://media.example.com/queue/worker/stats \ -H "Authorization: Bearer " ``` ``` GET /queue/worker/stats ``` **Auth:** API Key required ## Response ```json theme={null} { "maxConcurrent": 2, "pollInterval": 1000, "isRunning": true, "processingCount": 1 } ``` | Field | Type | Notes | | - | - | - | | `maxConcurrent` | number | Maximum number of jobs the worker processes at once | | `pollInterval` | number | How often, in milliseconds, the worker polls for new jobs | | `isRunning` | boolean | Whether the worker's polling loop is currently active | | `processingCount` | number | Number of jobs currently being processed | ## Related > [card] [Queue Statistics](/api-reference/queue/stats) > > Job counts per status. > [card] [List Jobs](/api-reference/queue/jobs) > > View individual job details with filtering. # Copy File Source: https://docs.openinary.dev/api-reference/storage/copy Duplicate a file inside its own folder Duplicates a file inside its own folder. The endpoint takes no request body, and there is no way to copy into a different folder in one call: copy the file, then [move](/api-reference/storage/move) it. ``` POST /storage/{path}/copy ``` ```bash theme={null} curl -X POST https://cdn.openinary.dev/storage/photos/portrait.jpg/copy \ -H "Authorization: Bearer " ``` ```json theme={null} { "success": true, "path": "photos/portrait copy.jpg" } ``` Only files can be copied. A folder path returns `404`, so copy a folder's files one by one. **Auth:** API key required. A dashboard session cookie also works. ## Path parameters | Param | Type | Required | Description | | - | - | - | - | | `path` | string | yes | Path to the file relative to the storage root, e.g. `photos/portrait.jpg`. Use the `path` of a file returned by [List Storage](/api-reference/storage/list). | ## Response | Field | Type | Description | | - | - | - | | `success` | boolean | `true` if the copy succeeded | | `path` | string | Path of the new copy. The name is the source name with ` copy` appended before the extension. If that name is taken, a counter is added: `portrait copy.jpg`, then `portrait copy (1).jpg`, `portrait copy (2).jpg`, and so on | | Code | Meaning | | - | - | | `200` | Copy created | | `400` | Path is missing | | `404` | File not found, or the path is a folder | | `500` | Storage backend failed to copy | ## Related > [card] [Move File or Folder](/api-reference/storage/move) > > Move instead of duplicating, and the one endpoint that does take a > `destination`. > [card] [List Storage](/api-reference/storage/list) > > Browse folders and files one level at a time. # Delete File or Folder Source: https://docs.openinary.dev/api-reference/storage/delete Permanently delete a file or folder, with all its cached transformation variants > [!WARNING] > > This action is irreversible, and it deletes folders recursively. Pointing this > endpoint at a folder removes that folder, everything inside it at every depth, > and all their cached variants, in one call and with no confirmation step. > Check the path before you send it. Deletes the file or folder at `{path}`, along with its cached transformation variants. ``` DELETE /storage/{path} ``` ```bash theme={null} curl -X DELETE https://cdn.openinary.dev/storage/photos/portrait.jpg \ -H "Authorization: Bearer " ``` To clear cached variants and keep the original, use [Invalidate Cache](/api-reference/cache/invalidate) instead. **Auth:** API key required. A dashboard session cookie also works. ## Path parameters | Param | Type | Required | Description | | - | - | - | - | | `path` | string | yes | Path to the file or folder relative to the storage root, e.g. `photos/2026`. Use the `path` of a file or folder returned by [List Storage](/api-reference/storage/list). | ## Response ```json theme={null} { "success": true, "message": "Asset deleted successfully", "details": { "jobsDeleted": 0, "localCacheFilesDeleted": 3, "cloudCacheFilesDeleted": 0 } } ``` | Field | Type | Description | | - | - | - | | `success` | boolean | `true` when the delete completed with no errors | | `message` | string | Human-readable result summary | | `details` | object | Counters, below | * `jobsDeleted`, number: queued processing jobs cancelled and removed * `localCacheFilesDeleted`, number: cached transformation variants removed from local disk * `cloudCacheFilesDeleted`, number: cached transformation variants removed from cloud storage Deleting a folder on cloud storage returns early once the folder is removed, so `jobsDeleted` and the cache counters stay at `0` even though the folder's objects are gone. ### Partial deletion If the original was removed but some cleanup step failed, the response has a different shape: no `success` field, and an `errors` array inside `details`. ```json theme={null} { "error": "Partial deletion", "message": "Asset deleted but some cleanup operations failed", "details": { "originalFileDeleted": true, "jobsDeleted": 0, "localCacheFilesDeleted": 2, "cloudCacheFilesDeleted": 0, "errors": ["Failed to delete cached variant w_200/photo.jpg"] } } ``` The status is `200` when `originalFileDeleted` is `true` and `500` when it is `false`. Branch on the presence of `error`, not on `success`. | Code | Meaning | | - | - | | `200` | Deleted, or deleted with non-fatal cleanup errors | | `400` | Path is missing | | `404` | Nothing exists at that path | | `500` | The original could not be deleted | ## Related > [card] [Invalidate Cache](/api-reference/cache/invalidate) > > Clear cached variants while keeping the original. > [card] [List Storage](/api-reference/storage/list) > > Browse folders and files before deleting. > [card] [Move File or Folder](/api-reference/storage/move) > > Move instead of deleting. # List Folders Source: https://docs.openinary.dev/api-reference/storage/folders Get every folder path in storage, for building a folder picker Returns every folder path in storage in one call, which is what powers "Move to" folder pickers. ``` GET /storage/folders ``` ```bash theme={null} curl https://cdn.openinary.dev/storage/folders \ -H "Authorization: Bearer " ``` **Auth:** API Key required ## Response ```json theme={null} { "folders": ["archive", "photos", "photos/2024"] } ``` | Field | Type | Description | | - | - | - | | `folders` | `string[]` | Every folder path, relative to the storage root, sorted alphabetically. | ## Related > [card] [Move File or Folder](/api-reference/storage/move) > > Move a file or folder into one of these destinations. > [card] [List Storage](/api-reference/storage/list) > > Browse the full file and folder tree. # List Storage Source: https://docs.openinary.dev/api-reference/storage/list List the folders and files in one storage level Browse storage one level at a time. The response holds the folders and files directly inside the path you ask for, and never descends into subfolders. ``` GET /storage ``` ```bash theme={null} curl "https://cdn.openinary.dev/storage?path=photos/2026" \ -H "Authorization: Bearer " ``` Omit `path`, or pass an empty string, to list the root. No endpoint returns the whole tree: walk it by calling this one once per folder, using each folder's `path`. **Auth:** API key required. A dashboard session cookie also works. ## Query parameters | Param | Type | Default | Description | | - | - | - | - | | `path` | string | `""` | Folder to list, relative to the storage root, e.g. `photos/2026`. | ## Response ```json theme={null} { "path": "photos", "folders": [{ "name": "2026", "path": "photos/2026" }], "files": [ { "name": "portrait.jpg", "path": "photos/portrait.jpg", "size": 248192, "mtime": "2026-03-15T10:30:00.000Z" } ] } ``` | Field | Type | Description | | - | - | - | | `path` | string | The normalized folder that was listed. Empty for the root | | `folders` | array | Subfolders of this level, sorted by name | | `files` | array | Files in this level, sorted by name | Folder object: * `name`, string: folder name, without any parent path * `path`, string: full path relative to the storage root. Pass it back as `path` to descend into it, or as the `{path}` segment of the other storage endpoints File object: * `name`, string: file name, without any parent path * `path`, string: full path relative to the storage root. Use it as the `{path}` segment of the other storage endpoints, and after `/t/` to deliver the file * `size`, number: size in bytes. May be absent on cloud storage backends that do not report it for a given object * `mtime`, string: ISO 8601 last-modified timestamp. May be absent for the same reason as `size` Folders carry only their name and path. For item counts or preview thumbnails, call [folder summaries](/api-reference/storage/stats#folder-summaries) for the folders you actually render, which keeps this endpoint's latency independent of how many subfolders a level holds. | Code | Meaning | | - | - | | `200` | Level returned | | `400` | `path` escapes the storage root or is malformed | | `500` | Storage backend failed to list | ## Related > [card] [Stats & Folder Summaries](/api-reference/storage/stats) > > Item counts and preview thumbnails, plus aggregate usage. > [card] [File Metadata](/api-reference/storage/metadata) > > Get size and timestamps for a specific file. > [card] [Move File or Folder](/api-reference/storage/move) > > Move a file or folder into a different parent folder. > [card] [Delete](/api-reference/storage/delete) > > Remove a file or a folder and its cached variants. # Get File Metadata Source: https://docs.openinary.dev/api-reference/storage/metadata Retrieve size and timestamps for a specific file Returns the size and timestamps of one file. ``` GET /storage/{path}/metadata ``` ```bash theme={null} curl https://cdn.openinary.dev/storage/photos/portrait.jpg/metadata \ -H "Authorization: Bearer " ``` **Auth:** API Key required ## Path parameters | Param | Type | Required | Description | | - | - | - | - | | `path` | string | yes | Path to the file relative to the storage root, e.g. `photos/portrait.jpg`. Use the `path` from [List Storage](/api-reference/storage/list). | The path must point to a file. A folder path returns `400` on local disk storage but `404` on a cloud storage backend, which has no directory to stat. Treat both as "not a file" rather than branching on the code. ## Response ```json theme={null} { "size": 204800, "createdAt": "2024-03-15T10:30:00.000Z", "updatedAt": "2024-03-15T10:30:00.000Z" } ``` | Field | Type | Description | | - | - | - | | `size` | number | File size in bytes | | `createdAt` | string | ISO 8601 timestamp of file creation | | `updatedAt` | string | ISO 8601 timestamp of last modification | **Status codes:** `200` success · `400` path is a directory (local storage only) · `404` not found · `500` error ## Related > [card] [List Storage](/api-reference/storage/list) > > Browse all files and folders. > [card] [Delete File](/api-reference/storage/delete) > > Remove a file and its cached variants. # Move File or Folder Source: https://docs.openinary.dev/api-reference/storage/move Move a file or folder into a different parent folder Moves one file or folder into another folder. There is no bulk endpoint, so call it once per item. ``` POST /storage/{path}/move ``` ```bash theme={null} curl -X POST https://cdn.openinary.dev/storage/photos/portrait.jpg/move \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"destination": "archive"}' ``` **Auth:** API Key required ## Parameters | Param | In | Type | Required | Description | | - | - | - | - | - | | `path` | path | string | yes | Path to the file or folder relative to the storage root, e.g. `photos/portrait.jpg`. Use the `path` from [List Storage](/api-reference/storage/list). | | `destination` | body | string | no | Destination folder, relative to the storage root, e.g. `photos/2024`. Omit or leave empty to move to the root. | ## Response ```json theme={null} { "success": true, "path": "archive/portrait.jpg" } ``` | Field | Type | Description | | - | - | - | | `success` | boolean | `true` if the move succeeded | | `path` | string | The new full path of the file or folder | **Status codes:** `200` success · `400` already in that folder · `404` not found · `500` error ## Related > [card] [Copy File](/api-reference/storage/copy) > > Duplicate a file into a different folder. > [card] [List Folders](/api-reference/storage/folders) > > Get every folder path, useful for building a "Move to" picker. # Rename File or Folder Source: https://docs.openinary.dev/api-reference/storage/rename Rename a file or folder in place, without changing its parent location Renames a file or folder in place. Send the new name only, never a full path. ``` PATCH /storage/{path} ``` ```bash theme={null} curl -X PATCH https://cdn.openinary.dev/storage/photos/portrait.jpg \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"name": "headshot.jpg"}' ``` **Auth:** API Key required ## Parameters | Param | In | Type | Required | Description | | - | - | - | - | - | | `path` | path | string | yes | Path to the file or folder relative to the storage root, e.g. `photos/portrait.jpg`. Use the `path` from [List Storage](/api-reference/storage/list). | | `name` | body | string | yes | The new name, not a full path. Must not contain `/` or `\`. | ## Response ```json theme={null} { "success": true, "path": "photos/new-name.jpg" } ``` | Field | Type | Description | | - | - | - | | `success` | boolean | `true` if the rename succeeded | | `path` | string | The new full path of the file or folder | **Status codes:** `200` success · `400` invalid name · `404` not found · `409` a file or folder with that name already exists · `500` error ## Related > [card] [Move File or Folder](/api-reference/storage/move) > > Move a file or folder to a different parent folder. > [card] [List Storage](/api-reference/storage/list) > > Browse all files and folders. # Stats & Folder Summaries Source: https://docs.openinary.dev/api-reference/storage/stats Aggregate storage and cache usage, and per-folder item counts with preview thumbnails Three endpoints that answer "how much is in there" without listing everything: aggregate totals for the whole bucket, bounded per-folder summaries, and a recalculation when the totals drift. ```bash theme={null} curl "https://cdn.openinary.dev/storage/folder-summaries?paths=photos,videos" \ -H "Authorization: Bearer " ``` **Auth:** API key required on all three. A dashboard session cookie also works. ## Folder summaries ``` GET /storage/folder-summaries ``` Returns an item count and up to four preview items per folder. Call it only for the folders you are actually rendering, such as the rows currently on screen, so a level with many subfolders does not pay for every summary up front. [List Storage](/api-reference/storage/list) leaves this data out for the same reason. | Param | Type | Required | Description | | - | - | - | - | | `paths` | string | yes | Comma-separated folder paths, relative to the storage root. Maximum 200 per request. | An empty or missing `paths` returns an empty `summaries` object rather than an error. ```json theme={null} { "summaries": { "photos": { "itemCount": 42, "truncated": false, "previewItems": [ { "path": "photos/portrait.jpg", "type": "image" }, { "path": "photos/clip.mp4", "type": "video" } ] } } } ``` `summaries` is keyed by the folder path you asked for. Each summary object holds: * `itemCount`, number: items counted in the folder, up to the scan ceiling * `truncated`, boolean: `true` when the folder holds more items than the scan looked at, so `itemCount` is a floor rather than an exact total. Render it as "99+" rather than as a count * `previewItems`, array: up to four items for a folder thumbnail, each `{ path, type }` where `type` is `image` or `video`. Files that are neither are skipped **Status codes:** `200` success · `400` more than 200 paths, or a path that escapes the storage root · `500` storage backend failed ## Storage stats ``` GET /storage/stats ``` Aggregate size and file count for stored originals, and for cached transformation variants. ```json theme={null} { "storage": { "size": 5242880, "fileCount": 128 }, "cache": { "size": 1048576, "fileCount": 64 }, "updatedAt": "2026-03-15T10:30:00.000Z" } ``` | Field | Type | Description | | - | - | - | | `storage` | object | Stored originals: `size` in bytes and `fileCount` | | `cache` | object | Cached transformation variants. On a cloud backend this is one number for both the local disk cache and the cache stored in the bucket | | `updatedAt` | string | ISO 8601 timestamp of the counters these figures came from. On local storage the tree is walked per request, so this is always now | On a cloud backend the figures come from incremental counters rather than a live bucket listing, which is what keeps this endpoint cheap. They can drift if the bucket is changed outside Openinary. Recalculate to reconcile. **Status codes:** `200` success · `500` storage backend failed ## Recalculate stats ``` POST /storage/stats/recalculate ``` ```bash theme={null} curl -X POST https://cdn.openinary.dev/storage/stats/recalculate \ -H "Authorization: Bearer " ``` Recomputes the aggregates from a full bucket listing and returns the same shape as `GET /storage/stats`. Use it when the counters have drifted, typically after objects were added or removed outside Openinary. > [!WARNING] > > This lists the entire bucket. On a large bucket it is slow and it costs list > operations at your storage provider. Run it when you have reason to think the > counters are wrong, not on a schedule. **Status codes:** `200` success · `500` storage backend failed ## Related > [card] [List Storage](/api-reference/storage/list) > > Browse folders and files one level at a time. > [card] [List Folders](/api-reference/storage/folders) > > Every folder path, for building a folder picker. # Video Processing Status Source: https://docs.openinary.dev/api-reference/video/status Poll the processing status of a queued video transformation When a video transformation is not cached yet, `/t/` answers `202` and returns a `statusUrl`. Poll that URL until the status is `completed`, then request the `/t/` URL again to get the bytes. ```bash theme={null} curl https://cdn.openinary.dev/video-status/w_640/videos/clip.mp4 \ -H "Authorization: Bearer " ``` ``` GET /video-status/{transformations}/{path} ``` **Auth:** API key on Cloud, public and rate limited self-hosted. Drop the header when you call your own instance. > [!WARNING] > > Include the transformation segment in the path. Jobs are keyed on the file > path **and** the exact transformation parameters, and a bare file path parses > as empty parameters, which never matches a queued job. Polling > `/video-status/clip.mp4` returns `404` even while that video is actively > processing. Use the `statusUrl` from the `202` response verbatim. ## Check status | Param | In | Type | Notes | | - | - | - | - | | `transformations` | path | string | Required. The same transformation segment as the `/t/` URL you are waiting on, such as `w_640` | | `path` | path | string | Required. Storage path of the video file, such as `videos/clip.mp4` | ### Response While a job exists. Note that `completedAt` and `error` are absent here rather than `null`: ```json theme={null} { "status": "processing", "progress": 62, "startedAt": "2026-03-15T10:30:00.000Z", "phase": "processing", "estimatedSeconds": 8, "estimatedRange": [8, 10], "retryAfter": 8 } ``` | Field | Type | Notes | | - | - | - | | `status` | string | `pending` `processing` `completed` `error` `cancelled`, or `not_found` on the `404` response | | `progress` | number | Processing progress from 0 to 100, measured from the encoder. `0` when the job has not started | | `startedAt` | string | ISO 8601 timestamp when processing started. Omitted while the job is still queued | | `completedAt` | string | ISO 8601 timestamp when processing finished. Omitted until then | | `error` | string | Error message when `status` is `error`. Omitted otherwise | | `phase` | string | `waking`, `queued` or `processing`, while the job is `pending` or `processing`. Omitted otherwise | | `estimatedSeconds` | number | Typical seconds left, while the job is `pending` or `processing` | | `estimatedRange` | `[number, number]` | Typical and pessimistic seconds left | | `retryAfter` | number | When polling again is worth it, in seconds | Absent values are omitted from the JSON rather than sent as `null`. Test with `"startedAt" in response`, not `response.startedAt !== null`. This endpoint returns ISO 8601 strings. [Queue Jobs](/api-reference/queue/jobs) serves raw database rows and returns the same instants as epoch milliseconds. When the variant is already cached, the endpoint short-circuits and returns only the two fields it can prove: ```json theme={null} { "status": "completed", "progress": 100 } ``` When no job and no cached variant match: ```json theme={null} { "status": "not_found", "message": "No processing job found for this video" } ``` | Code | Meaning | | - | - | | `200` | Job or cached variant found | | `404` | No job and no cached variant for this exact URL | ## Get optimized video size ``` GET /video-status/{transformations}/{path}/size ``` Returns the byte size of the processed variant, or `404` if that variant is not ready yet. **Auth:** API key on Cloud, public and rate limited self-hosted. ```bash theme={null} curl https://cdn.openinary.dev/video-status/w_640/videos/clip.mp4/size \ -H "Authorization: Bearer " ``` ```json theme={null} { "size": 2097152, "status": "ready" } ``` | Field | Type | Notes | | - | - | - | | `size` | number | Optimized video size in bytes | | `status` | string | Always `"ready"` when the endpoint returns 200 | **Status codes:** `200` ready · `404` not yet processed ## Related > [card] [Queue Events (SSE)](/api-reference/queue/events) > > Real-time updates without polling. > [card] [Queue Jobs](/api-reference/queue/jobs) > > Manage jobs by ID. > [card] [Transform Media](/api-reference/media/transform) > > Apply transformations to videos. # Changelog Source: https://docs.openinary.dev/changelog New features, improvements, and fixes shipped in Openinary **November 6, 2026** v0.9.0 ## New features **Know when a transformation will be ready**, A 202 no longer asks you to poll blindly. It says which phase the job is in (`queued`, `processing`, or `waking` while a cloud server starts), how far it has got, and when it should be done, with a typical and a pessimistic figure. `Retry-After` follows that estimate, so a client that simply honors it asks again at the right time. Video progress comes from the encoder itself, and the estimate learns how fast your server encodes. `/video-status` carries the same estimate. See [transform](/api-reference/media/transform). ## Improvements **Steadier loading in the dashboard**, Loading states are now skeletons shaped like the real page, in the cloud dashboard and the self-hosted app, so nothing jumps when the data arrives. ## Bug fixes * **The API-only Docker image starts again**, The `openinary-api` image stopped on startup with a permission error before serving anything. It now starts normally. The full `openinary` image was not affected. **November 5, 2026** v0.8.0 ## New features **Image effects**, Adjust images straight from the URL with `e_`: `e_fill_light`, `e_blur`, `e_sharpen`, `e_brightness`, `e_contrast`, `e_saturation`, `e_grayscale`, `e_sepia`, `e_tint`, `e_colorize` and more, plus `o_` for opacity and `co_` for color. For example `/t/w_800,e_fill_light:70:20/photo.jpg`. See [transform](/api-reference/media/transform). **Smarter backgrounds and borders**, `b_auto` picks the padding color from the image itself, `b_blurred` pads with a blurred copy of it, and colors accept CSS names and 3, 4 or 8 digit hex. `bo_4px_solid_red` draws a border. **`dpr_`, flips and more crop modes**, `dpr_2,w_400` serves a 2x image, `a_hflip` and `a_vflip` mirror it, and `c_lfill`, `c_lpad`, `c_mfit` and `c_mpad` behave as their names say. **Default images**, `d_placeholders:avatar.png` serves a placeholder, with the same transformation, when the requested file doesn't exist. **Configurable storage prefix**, `STORAGE_PREFIX` lets Openinary serve a bucket something else already writes to, without moving a single object. It defaults to `public`, so existing setups don't change. See [storage](/configuration/storage). Thanks to [andrzejb2137](https://github.com/andrzejb2137). Effects, backgrounds, `dpr_`, borders and default images are thanks to [pankajmyt](https://github.com/pankajmyt). ## Bug fixes * **Phone photos come out upright**, Transformed images now follow their EXIF orientation, as `a_auto` always promised. `a_ignore` keeps the stored orientation. * **Overlays resize instead of cropping**, An image overlay with `lw_` or `lh_` is scaled to that size instead of being cut. **November 4, 2026** v0.7.0 ## New features **Image and video overlays**, Put a logo or watermark on any image or video straight from the URL with `l_`, for example `/t/l_logos:watermark.png,lo_50,lg_southeast/photo.jpg`. Set the opacity (`lo_`), position (`lg_`, `lx_`, `ly_`), size (`lw_`, `lh_`) or repeat it across the asset (`lt_`, `ls_`). Video thumbnails can carry the overlay too, and a pending watermarked video is never served without its watermark. Overlays only come from your own storage. See [overlays & watermarks](/media-transformations/overlays). Thanks to [KesSaft](https://github.com/KesSaft). ## Bug fixes * **Cached images keep their real type**, From the second request on, a negotiated AVIF or WebP was labelled with the source's type (e.g. `image/jpeg`), and its ETag changed between the first and cached responses. Both now match the bytes actually served. Thanks to [meditatingsurgeon](https://github.com/meditatingsurgeon) for the report. * **Cached videos aren't transcoded again on S3**, A video with two or more params (e.g. `w_320,h_240`, or any overlay) was transcoded again whenever the local cache was empty, even though the result was already in the bucket. Existing multi-param entries are regenerated once. **November 4, 2026** v0.6.0 ## Improvements **A tidier asset details panel**, The panel opens on the asset itself with its actions in one row, and is split into Deliver, Transform and Info. Transform has presets and a small URL builder whose preview costs no transformation. ## Bug fixes * **Docker images run on Node.js 22**, Node.js 20 is end-of-life and no longer gets security patches. The self-hosted images now build and run on a patched Node.js 22. * **`f_webm` videos encode**, Every `f_webm` transform failed within a second because H.264 and AAC can't go in a WebM container. WebM output is now encoded with VP9 and Opus. **October 1, 2026** v0.5.0 ## New features **A redesigned dashboard**, A compact sidebar, settings as their own pages, and Quick actions on `Cmd/Ctrl+K`, grouped into actions, pages, tools, settings and help. **Logs**, Every public delivery is now logged and charted. The table keeps the latest 500 deliveries, while the chart and figures (total, images, videos, failure rate) come from hourly counts kept for a year, so a busy instance still sees its whole week. Recent video processing jobs are listed alongside. **Get started, playgrounds and Integrate**, The image and video playgrounds, the integration guide and a three-step checklist now ship with self-hosted too, pointed at your instance. **First-run onboarding**, New accounts get a short questionnaire after sign-in that sets your workspace name and logo, shown at the top of the sidebar. Accounts that existed before the upgrade skip it. With telemetry on, the multiple-choice answers are sent anonymously as option ids only, see [telemetry](/configuration/telemetry). `OPENINARY_TELEMETRY=false` keeps them on your server. ## Bug fixes * **Transforms no longer hang on some file names**, Files whose names contain `,`, `&` or `@` stayed on "processing" forever. * **Camera JPEGs that libvips rejects are served instead of failing**, When a JPEG can't be decoded, the original is streamed with `X-Transform-Fallback: original` and is never cached as a transform. Thanks to [benjaminstary](https://github.com/benjaminstary). * **Large uploads from the dashboard go through**, Selections are sent in batches of 20 with retries on `429`, instead of one request that could time out. Thanks to [benjaminstary](https://github.com/benjaminstary). * **Signed authenticated URLs work in the Docker image**, nginx now proxies `/authenticated` to the API. Thanks to [diveshagarwal213](https://github.com/diveshagarwal213). **August 11, 2026** v0.4.0 ## New features **Create the admin account from environment variables**, Set `OPENINARY_ADMIN_EMAIL` and `OPENINARY_ADMIN_PASSWORD` (and optionally `OPENINARY_ADMIN_NAME`) and the account exists on first boot, with no visit to `/setup`. `OPENINARY_GENERATE_API_KEY=true` also creates an API key and prints it to the logs, and an `api` mode instance gets one on first boot regardless. See [admin bootstrap](/configuration/server#admin-bootstrap). Thanks to [KesSaft](https://github.com/KesSaft). ## Bug fixes * **Transform parameters on a file that can't be transformed return a 400**, A URL such as `/t/w_500/doc.pdf` came back as an unlabeled 500. It now answers `400` with a message pointing at the bare `/t/` URL, which streams the original. Thanks to [brian-soltani](https://github.com/brian-soltani). * **`MAX_FILE_SIZE_MB` is the only upload limit in the Docker image**, The full image's nginx capped uploads at 100 MB whatever the setting and answered with its own bare 413. The API's limit and error message now apply. Expect an oversized upload to be received in full before it is rejected. **August 9, 2026** v0.3.1 ## New features **Audio and 3D files**, Openinary now accepts audio (`wav`, `mp3`, `ogg`) and 3D model (`glb`, `gltf`) files, stored and delivered as untouched originals with their real content type. A bare `/t/` URL streams the file back byte for byte. No waveforms, thumbnails or format conversion for these types yet, transformations still apply to images and videos only. See the [upload API reference](/api-reference/files/upload). Thanks to [andrzejb2137](https://github.com/andrzejb2137) for both contributions in this release. ## Bug fixes * **Uploads are validated against the file's actual bytes**, Every accepted type now carries a magic-byte signature, so a payload renamed to an allowed extension is rejected at upload instead of being stored. The MIME type and the extension are both set by the uploader, so on their own they only ever stopped honest mistakes. * **`nosniff` on every delivery response**, All delivery routes, including signed authenticated URLs, now send `X-Content-Type-Options: nosniff`, so stored bytes can never be content-sniffed into HTML on your origin. Stored originals are labelled from the same media-type table the upload whitelist uses. **July 29, 2026** Cloud ## Openinary Cloud is in public alpha **Sign-up is open**, No more invite list: create your account at [app.openinary.dev](https://app.openinary.dev) and you're in, on the free plan. It's an alpha, expect rough edges, and please report what breaks. See the [Cloud overview](/cloud/overview). **July 29, 2026** v0.3.0 ## New features **Openinary Cloud documentation**, The hosted version of Openinary is now documented, including a quickstart, the API reference and the drop-in file uploader. Early access is open, see the [Cloud overview](/cloud/overview). ## Improvements **Videos are only transcoded when you ask**, A bare `/t/