media.ofauth.com URLs for all media. These URLs automatically route to either edge cache or persistent storage (Vault+), and can trigger auto-caching based on your configuration.
| Media Proxy | Vault+ | |
|---|---|---|
| What it does | Edge-cached URLs | Persistent storage with access by ID |
| Setup | Automatic | Enable per connection |
| Best for | Displaying content | Media libraries, PPV features |
Displaying Media
Usemedia.ofauth.com URLs directly in your app:
- If stored in Vault+ → serves from persistent storage
- Otherwise → fetches from OnlyFans, caches at edge
Setting Up Vault+
Enable for a Connection
Configure Auto-Caching (Organization Defaults)
autoCacheVault (or similar) is enabled, media is automatically queued for persistent storage when accessed via media.ofauth.com.
Vault+ API routes require an API key with the ACCOUNT scope. List and media operations also require x-connection-id.
Vault+ public routes use raw OnlyFans media IDs. If the same media has multiple stored versions, such as full-size and thumbnail variants, fetch the raw media ID and read the variants under the media object. Variant objects are keyed by label and do not include internal variant IDs.
Triggering Caching
Via Media Proxy URL
POST to anymedia.ofauth.com URL to immediately queue for persistent storage:
Add New Media From a Vault List
Useadd when you want to cache new media from a list without deleting anything that is already cached.
Sync a Vault List
Usesync when the cached list should match the current OnlyFans list.
The first sync creates a baseline and removes nothing. Later syncs remove only media that was present in the previous sync baseline and is now missing from the list. If another cached list still owns the same media ID, Vault+ skips the purge. adoptedItems counts media that was already cached and is now being added to this list’s sync baseline for the first time.
Accessing Stored Media
List Cached Vault Lists
Get Media in a Cached Vault List
Get by Media ID
Use the raw OnlyFans media ID. The response groups any stored variants by label.Batch Get URLs (up to 100)
List Stored Media
status, type, contentType, durationMin, durationMax, createdAtFrom, createdAtTo, cachedAtFrom, cachedAtTo, limit, cursor, and sort.
Connection Status
Organization Stats
Purging Stored Media
Via Media Proxy URL
Via API
Purge All for a Connection
Related
Media & Vault
Full media operations guide
Access API
Complete API reference