Skip to main content
POST
/
v2
/
access
/
uploads
/
check
Check if media already exists in vault
curl --request POST \
  --url https://api-next.ofauth.com/v2/access/uploads/check \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --header 'x-connection-id: <api-key>' \
  --data '
{
  "etag": "<string>",
  "size": 1
}
'
{
  "exists": true,
  "media": {
    "id": 123,
    "type": "photo",
    "convertedToVideo": true,
    "canView": true,
    "hasError": true,
    "createdAt": "<string>",
    "isReady": true,
    "releaseForms": [
      {
        "id": 123,
        "name": "<string>",
        "partnerSource": "<string>",
        "type": "<string>",
        "user": {
          "view": "<string>",
          "id": 123,
          "name": "<string>",
          "username": "<string>",
          "isVerified": true,
          "avatar": "<string>",
          "avatarThumbs": {
            "c50": "<string>",
            "c144": "<string>"
          },
          "ivStatus": "<string>",
          "isFromGuest": true
        }
      }
    ],
    "duration": 123,
    "hasCustomPreview": true,
    "videoSources": {
      "240": "<string>",
      "720": "<string>"
    },
    "files": {
      "full": {
        "url": "<string>",
        "sources": [
          {
            "url": "<string>",
            "width": 123,
            "height": 123,
            "type": "<string>"
          }
        ],
        "width": 123,
        "height": 123,
        "size": 123
      },
      "thumb": {
        "url": "<string>",
        "width": 123,
        "height": 123,
        "size": 123
      },
      "preview": {
        "url": "<string>",
        "options": [
          {
            "url": "<string>",
            "width": 123,
            "height": 123,
            "type": "<string>"
          }
        ],
        "width": 123,
        "height": 123,
        "size": 123
      },
      "squarePreview": {
        "url": "<string>",
        "width": 123,
        "height": 123,
        "size": 123
      }
    }
  }
}

Authorizations

apiKey
string
header
required

Your OFAuth API key for authenticating requests.

x-connection-id
string
header
required

Requires a connection via the x-connection-id header.

Body

application/json
etag
string
required

ETag from the upload response

Minimum string length: 1
size
integer
required

Uploaded file size in bytes

Required range: x > 0

Response

Successful response

exists
boolean
required
media
object