Skip to main content

List uploads

GET /api/uploads

Your hosted media library — files usable directly as element src URLs.

Authentication​

  • Option 1: x-api-key: YOUR_API_KEY (header). API key for authentication. Create one in your dashboard.
  • Option 2: Authorization: Bearer YOUR_ACCESS_TOKEN. Dashboard JWT in Authorization: Bearer <token>, only on operations that explicitly list this scheme. Prefer x-api-key for REST integrations. OAuth for hosted MCP is a separate connection at https://mcp.zvid.io/mcp.

Create API keys at app.zvid.io/api-keys. Keep credentials on your server.

Parameters​

ParameterLocationTypeRequiredDescription and constraints
typequery"image" / "video" / "audio" / "gif"No

Request​

The shell examples read credentials from ZVID_API_KEY (or ZVID_ACCESS_TOKEN for Bearer authentication). Set that variable in your environment. Replace sample project, template, job, and asset identifiers with values from your own account.

This operation does not take a request body.

Request example​

curl --request GET 'https://api.zvid.io/api/uploads' \
--header "x-api-key: $ZVID_API_KEY"

Responses​

HTTP 200​

Uploaded files and storage usage

Content type: application/json.

Required properties: uploads, usage.

FieldTypeRequiredDescription and constraints
response.uploadsarray of UploadYes
response.usageUploadUsageYes

Nested field: response.uploads

Array item: response.uploads[]

Schema: Upload.

Representative successful response response

{
"uploads": [],
"usage": {
"files": 0,
"usedBytes": 0,
"maxTotalBytes": 2147483648
}
}

Schema definitions​

The following definitions describe the fields referenced above. Expand a definition to inspect its complete contract.

UploadList

Required properties: uploads, usage.

FieldTypeRequiredDescription and constraints
UploadList.uploadsarray of UploadYes
UploadList.usageUploadUsageYes

Nested field: UploadList.uploads

Array item: UploadList.uploads[]

Schema: Upload.

Upload

Required properties: id, kind, fileName, sizeBytes, url.

FieldTypeRequiredDescription and constraints
Upload.idstringYes
Upload.kind"image" / "video" / "audio" / "gif"Yes
Upload.fileNamestringYes
Upload.mimeTypestringNo
Upload.sizeBytesintegerYes
Upload.widthnumber OR nullNoAt least one listed alternative must match.
Upload.heightnumber OR nullNoAt least one listed alternative must match.
Upload.durationnumber OR nullNoAt least one listed alternative must match.
Upload.urlstringYes
Upload.createdAtstringNo

Nested field: Upload.width

At least one listed alternative must match.

anyOf alternative 1

Type: number.

anyOf alternative 2

Type: null.

Nested field: Upload.height

At least one listed alternative must match.

anyOf alternative 1

Type: number.

anyOf alternative 2

Type: null.

Nested field: Upload.duration

At least one listed alternative must match.

anyOf alternative 1

Type: number.

anyOf alternative 2

Type: null.

UploadUsage

Required properties: files, usedBytes, maxTotalBytes.

FieldTypeRequiredDescription and constraints
UploadUsage.filesintegerYes
UploadUsage.usedBytesintegerYes
UploadUsage.maxTotalBytesintegerYes