Snapvisor Docs

List a media's versions

List a media's most recent uploaded versions, newest first, up to 100. A separate call because it is rarely needed: a media usually has one version, and the media itself already carries the newest one flattened onto it. Check `versionCount` first — at 1 there is nothing here you do not already have. Use it when a comment carries a `mediaVersionId` older than the media's current version. A pin describes a spot on *those* bytes, so feedback written on an earlier upload has to be read against that upload — match the id here to get its file.

GET
/media/{mediaId}/versions

List a media's most recent uploaded versions, newest first, up to 100.

A separate call because it is rarely needed: a media usually has one version, and the media itself already carries the newest one flattened onto it. Check versionCount first — at 1 there is nothing here you do not already have.

Use it when a comment carries a mediaVersionId older than the media's current version. A pin describes a spot on those bytes, so feedback written on an earlier upload has to be read against that upload — match the id here to get its file.

Authorization

AuthorizationBearer <token>

Authenticate as a project with a project token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <project-token>

You can find your project token in your Snapvisor project settings. Project tokens are used by CI and the SDK to create builds and deployments.

In: header

Path Parameters

mediaId*string

The media ID

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/media/string/versions"
[  {    "id": "string",    "number": 0,    "fileUrl": "http://example.com",    "posterUrl": "http://example.com",    "contentType": "string",    "sizeBytes": 0,    "width": 0,    "height": 0,    "expiresAt": "string",    "createdAt": "string"  }]