Skip to main content
GET
/
v2
/
vault-plus
/
media
Query cached media for a connection
curl --request GET \
  --url https://api.ofauth.com/v2/vault-plus/media \
  --header 'apiKey: <api-key>' \
  --header 'x-connection-id: <x-connection-id>'
{
  "items": [
    {
      "id": "4492994399",
      "type": "image",
      "duration": null,
      "media": {
        "full": {
          "status": "stored",
          "quality": "full",
          "sizeBytes": 1024000,
          "contentType": "image/jpeg",
          "accessCount": 12,
          "createdAt": 1715800000000,
          "expiresAt": 1715886400000,
          "storedAt": 1715800100000,
          "lastAccessedAt": 1715800500000,
          "url": "https://media.ofauth.com/v2/example-signed-media-url"
        },
        "thumb": {
          "status": "stored",
          "quality": "thumb",
          "sizeBytes": 32000,
          "contentType": "image/jpeg",
          "accessCount": 8,
          "createdAt": 1715800000000,
          "expiresAt": 1715886400000,
          "storedAt": 1715800100000,
          "lastAccessedAt": 1715800500000,
          "url": "https://media.ofauth.com/v2/example-signed-thumbnail-url"
        }
      }
    }
  ],
  "nextCursor": "100"
}

Authorizations

apiKey
string
header
required

Your OFAuth API key for authenticating requests.

Headers

x-connection-id
string
required

Connection ID whose Vault+ cache should be read or modified.

Minimum string length: 1
Example:

"conn_v5bsqkzsjfk8cgr7hqbbw09t"

Query Parameters

status
enum<string>

Filter by variant cache status.

Available options:
edge_only,
pending,
storing,
stored,
removed
type
enum<string>

Filter by media type.

Available options:
image,
video,
audio
contentType
string

Filter by exact cached variant MIME type.

Example:

"image/jpeg"

durationMin
number | null

Minimum media duration in seconds.

Example:

10

durationMax
number | null

Maximum media duration in seconds.

Example:

120

createdAtFrom
string

Include media first observed at or after this ISO 8601 date/time.

Example:

"2026-06-01T00:00:00.000Z"

createdAtTo
string

Include media first observed at or before this ISO 8601 date/time.

Example:

"2026-06-07T23:59:59.999Z"

cachedAtFrom
string

Include media stored at or after this ISO 8601 date/time.

Example:

"2026-06-01T00:00:00.000Z"

cachedAtTo
string

Include media stored at or before this ISO 8601 date/time.

Example:

"2026-06-07T23:59:59.999Z"

limit
number

Maximum number of items to return. Defaults to 100.

Required range: 1 <= x <= 100
Example:

25

cursor
string

Pagination cursor from the previous response.

Example:

"100"

sort
enum<string>

Sort order for scanned media queries. Direct cursor pagination is used when sort and date/duration filters are omitted.

Available options:
createdAt_desc,
createdAt_asc,
cachedAt_desc,
cachedAt_asc,
duration_desc,
duration_asc

Response

Matching cached media items with variants grouped by raw OnlyFans media ID.

Paginated Vault+ media query response.

items
object[]
required

Matching cached media items.

nextCursor
string

Cursor for the next page. Omitted when there are no more results.

Example:

"100"