Skip to main content
← All documentationContents ↓

API Reference: Files

Upload trusted files, retrieve metadata, generate presigned download URLs, and access image variants.

Overview

The Files API manages the team's shared Files: trusted uploads, file metadata, folders, presigned download URLs, image variants, version history, and storage usage. Files are stored in S3 and referenced from data records through file and image fields. File reads require active selected-Team access and are filtered by each File's Security Scope. The upload-intent endpoints under /v1/file-uploads are standard tier. Signed-in Team Users and authorized app callers may add root-level attachments; OAuth and app callers also require files:write. All bytes pass through the same trust boundary. Shared-folder uploads require Team Admin authority. Replacing an existing scoped File requires canUpdate on its Security Scope; replacing an unscoped File requires Team Admin authority. API keys and session tokens must also hold the matching scope on every Files route: files:read for reads (listing, downloads, folder and storage-usage reads, variants, version history) and files:write for uploads, metadata and folder changes, moves, and deletes.

Key Concepts

  • File metadata — Each file has a fileSimplyId, filename, fileType (e.g. IMAGE), mimeType, fileSizeBytes, optional image dimensions, altText, folder placement, and currentVersionNumber.
  • Presigned download URLs — Time-limited URLs that grant temporary direct access to the underlying S3 object.
  • Image variants — Image files generate resized variants (for example THUMBNAIL_IMAGE, WEB_SIZE_IMAGE, and RESPONSIVE_320 through RESPONSIVE_1920) for optimized delivery.
  • Folders — Files can be organized into nested media-library folders, each with its own fileFolderSimplyId.
  • Trusted uploads — New bytes first enter a private, versioned quarantine bucket. Simply360 binds the declaration to the exact S3 object version, waits for GuardDuty Malware Protection, validates the file signature, sanitizes SVG, and promotes only a NO_THREATS_FOUND result.
  • Resumable uploads — Added 2026-09-29. Files above 100 MiB (up to a 10 GiB ceiling) use transport: 'MULTIPART': the client PUTs fixed-size parts to short-lived presigned URLs, computing the SHA-256 incrementally as it goes and declaring it only at completion. Interrupted uploads resume without re-sending already-uploaded parts. Promotion for these large objects runs in a durable background worker instead of the synchronous completion request, so the client polls a little longer than it would for a small file.

Files on Published Websites

Ordinary uploads use STANDARD. For a trusted image on a Website, persist an exact /api/website-media/{fileSimplyId}/versions/{versionNumber} selection from the accepted upload receipt or verified version picker, then publish the page. File-only image URLs remain a legacy read-compatibility path; do not author new image references with them. Native browser video and PDF delivery retain their documented media/download bindings. Anonymous delivery requires a current public page reference on a website owned by the same Team. This does not change the File's classification or allow anonymous access through the Files API. Draft-only references, deleted or scoped Files, private Stories and protected pages do not grant public media access. A fileSimplyId is never authorization by itself — the route checks current eligibility on every request, not a past publish result. noIndex controls search indexing, not authentication.

Website media URLs stream current authorized bytes with no-store caching. Do not persist a storage URL from a signed-in File download in a website design. SDK, API, and MCP authors reaching for this without also designing/publishing a page can instead declare purpose: "WEBSITE_MEDIA" on upload (with an optional websiteSimplyId for a current Team-owned website you can edit) to make the file PUBLIC and, once the upload completes, published to that site's explicit standalone-publication grant immediately — the same mechanism used for Style Kit fonts and favicons, not a change to STANDARD's reference-only policy. See Uploads below. Ask Simply has no first-party file-upload tool today. The internal public-service media handoff is for Website Engine only.

List Files

GET /v1/files lists media-library files with paging (page, pageSize) and filters: fileType, fileFolderSimplyId (use null for the root folder), search, labelSimplyIds, fileSimplyIds, sortBy, sortOrder, and includeDeleted. fileSimplyIds (comma-separated, up to 100; SDK: files.list({ fileSimplyIds })) reads the metadata of specific Files, including focal points and image sizes, in one request instead of one GET /v1/files/{fileSimplyId} each. Files that are missing, trashed, or not visible to you are simply left out.

const files = await s360.files.list({ fileType: 'IMAGE', search: 'logo', pageSize: 25 });
curl -s "https://api.simply360.app/v1/files?fileType=IMAGE&search=logo" \
  -H "Authorization: Bearer $S360_API_KEY"

Get File Metadata

Returns the file's metadata plus a presigned originalUrl (and thumbnailUrl for images).

TypeScript SDK

const file = await s360.files.get('FILE-1234-ABCD');
console.log(`Name: ${file.data.filename}`);
console.log(`Type: ${file.data.mimeType}`);
console.log(`Size: ${file.data.fileSizeBytes} bytes`);

cURL

curl -s "https://api.simply360.app/v1/files/FILE-1234-ABCD" \
  -H "Authorization: Bearer $S360_API_KEY"

Get Download URL

Generate a presigned download URL. Without variantType the URL downloads the original as an attachment and is valid for one hour (expiresIn: 3600). With variantType (for example THUMBNAIL_IMAGE or WEB_SIZE_IMAGE) it is a display URL for that size (fifteen-minute expiry); add download=true to get an attachment for that size instead. Do not cache these URLs long-term.

Download history. Every attachment URL handed out — the original, a size with download=true, or an older version — is recorded as a File download: it appears in the Team's Audit Log (table FileDownloadEvent) and updates the File's Media record fields Downloads and Last downloaded. Display URLs are not recorded. Share-link and Website document downloads are recorded the same way.

TypeScript SDK

const download = await s360.files.getDownloadUrl('FILE-1234-ABCD');
console.log(`URL: ${download.data.url}`);
console.log(`Expires: ${download.data.expiresAt}`);

// Display URL for a size (not recorded as a download)
const thumb = await s360.files.getDownloadUrl('FILE-1234-ABCD', { variantType: 'THUMBNAIL_IMAGE' });

// Download a named size as an attachment (recorded)
const web = await s360.files.getDownloadUrl('FILE-1234-ABCD', { variantType: 'WEB_SIZE_IMAGE', download: true });

cURL

curl -s "https://api.simply360.app/v1/files/FILE-1234-ABCD/download" \
  -H "Authorization: Bearer $S360_API_KEY"

Need many URLs at once? POST /v1/files/download-urls (SDK: getDownloadUrls) returns presigned URLs for a batch of files.

Exact Version Image Previews

For an authenticated image display of a specific accepted version, use GET /v1/files/{fileSimplyId}/versions/{versionNumber}/download?representation=IMAGE_PREVIEW. This requires an active File and the same selected-Team, File download, conversation, and generated-source access as the original. It does not record a user download. JPEG, PNG, WebP, and AVIF images return that version's verified, ready web-size rendition (1,024 pixels wide) when it is narrower and smaller than the original, and otherwise the exact original; GIF, SVG, and icon images always return the exact original. HEIC, HEIF, TIFF, and BMP require a verified, ready JPEG rendition of that same version. The response mimeType and filename describe the bytes returned. Missing, mismatched, or stale source/rendition evidence returns 409; the API does not select another version or return an unsupported original. Use the version download without representation for the full original.

const preview = await s360.files.getVersionDownloadUrl('FILE-1234-ABCD', 3, {
  representation: 'IMAGE_PREVIEW',
});
if (preview.data.representation !== 'IMAGE_PREVIEW' || preview.data.versionNumber !== 3) {
  throw new Error('Exact image preview was not acknowledged');
}
const image = await fetch(preview.data.url, { headers: preview.data.requiredHeaders });

The response includes representation, versionNumber, the preview mimeType and filename, and a five-minute URL expiry. Send every returned requiredHeaders value when fetching the bytes. Keep this URL temporary; persist the exact File/version selection in a Website, rather than a signed storage URL. Omitting representation preserves the original version-download behavior and download audit.

Showing many exact versions at once, such as every image on a website page? POST /v1/files/version-previews/batch (SDK: files.getVersionPreviews) takes up to 50 distinct { fileSimplyId, versionNumber } pairs and an optional representation (IMAGE_PREVIEW, the default, or IMAGE_THUMBNAIL). Each version gets exactly the checks and refusals of the single-version read above, and all of them are admitted together. Results come back in request order: status: "READY" with the same fields as a single preview, or status: "REFUSED" with error.code (NOT_FOUND, which also covers versions you may not download, FILE_VERSION_SOURCE_UNAVAILABLE, FILE_VERSION_IMAGE_PREVIEW_UNAVAILABLE, or a retryable INTERNAL_ERROR). One refusal never fails the others, and no download is recorded. Hosted MCP and Ask Simply do not return signed preview URLs.

const { data } = await s360.files.getVersionPreviews({
  versions: [
    { fileSimplyId: 'FILE-1234-ABCD', versionNumber: 3 },
    { fileSimplyId: 'FILE-5678-EFGH', versionNumber: 1 },
  ],
});
for (const result of data.results) {
  if (result.status === 'READY') await fetch(result.url, { headers: result.requiredHeaders });
  else console.warn(result.fileSimplyId, result.versionNumber, result.error.code);
}

Image Variants

List a file's generated variants with getVariants. Each entry has a fileVariantSimplyId, variantType, and format; fetch a variant's bytes through the download endpoint with variantType.

const variants = await s360.files.getVariants('FILE-1234-ABCD');

for (const variant of variants.data) {
  console.log(`${variant.variantType} (${variant.format})`);
}
curl -s "https://api.simply360.app/v1/files/FILE-1234-ABCD/variants" \
  -H "Authorization: Bearer $S360_API_KEY"

If variants are missing or stale, queue regeneration with POST /v1/files/{fileSimplyId}/variants/regenerate (images only).

Update, Move, and Delete

// Update metadata (PATCH /v1/files/{fileSimplyId})
await s360.files.update('FILE-1234-ABCD', { altText: 'Team photo at the gala' });

// Move to a folder (PUT /v1/files/{fileSimplyId}/folder) — deprecated, see Folders below
await s360.files.moveToFolder('FILE-1234-ABCD', { fileFolderSimplyId: 'FLDR-1234-ABCD' });

// Soft-delete (DELETE /v1/files/{fileSimplyId})
await s360.files.delete('FILE-1234-ABCD');

Deletes are soft by default: the file is flagged deleted and hidden from listings, but the S3 object remains. Passing { "force": true } in the DELETE body permanently destroys the row. POST /v1/files/bulk-delete deletes many files in one call.

Folders

2026-09-28: Folders are a deprecated compatibility surface. The native Media Library is replacing Files folders with Albums — ordinary records on the media-library albums Collection, which nest the same way folders did and can also link a File's Media record to more than one Album. Every Team's existing folder is converted to a matching Album (same hierarchy and order) the first time its Media Library is provisioned. The endpoints below keep working during the deprecation window, but the mirror only runs one way: a folder write here (create, rename, move, delete) is copied onto the matching Album record, while a change made directly to an Album (through the ordinary Data Records API) is never copied back onto a folder. New integrations should read and write Albums instead of folders; a later, separately reviewed migration will retire the folder endpoints.

EndpointDescription
GET /v1/files/foldersList folders (optionally by parentFileFolderSimplyId). Deprecated.
POST /v1/files/foldersCreate a folder. Deprecated.
PATCH /v1/files/folders/{fileFolderSimplyId}Rename / update a folder. Deprecated.
DELETE /v1/files/folders/{fileFolderSimplyId}Delete an empty folder. Deprecated.

Versions and Storage

  • GET /v1/files/{fileSimplyId}/versions — current and historical version metadata. The SDK uses files.getVersionHistory(fileSimplyId); MCP and Ask Simply use get_file_version_history. These share the same File access checks. A verified current source hash and byte count are available only when you may download that File; historical versions have no integrity fields. This read returns no signed download URL.
  • GET /v1/files/{fileSimplyId}/versions/{versionNumber}/download — presigned URL for a specific version.
  • GET /v1/files/storage-usage — the team's media-library storage usage.

Uploads

The TypeScript SDK owns the full upload handshake. It hashes the exact bytes, creates a constrained intent, submits the signed form directly to private quarantine, and polls until scanning and promotion reach a terminal state:

const file = new File([bytes], 'report.pdf', { type: 'application/pdf' });
const uploaded = await s360.files.upload({ file, filename: file.name });

console.log(uploaded.data.fileSimplyId); // public File Simply ID
console.log(uploaded.data.versionNumber);

To replace an existing file without changing its public ID, pass isNewVersionOfFileSimplyId. For a read-then-replace operation, also pass the observed expectedCurrentVersionNumber: the API checks it under the File lock before creating a new intent. The existing promotion check refuses a later competing replacement too. Keep the same expectation and uploadRequestKey when resuming; a changed expectation is a different declaration. Omit the expectation for existing create-time selection behavior. The expectation requires a replacement target and does not grant permission or make old bytes trusted.

When converting a selected legacy-current Website or static Data View image with the occurrence-apply API, pass expectedSourceCurrentVersionNumber to refuse a new apply if the source File advanced after preparation. Use the accepted new upload ordinal after reingestion. This option applies only to legacy-current occurrences; existing pins and explicit latest-ready selections retain their semantics. A completed exact receipt can still replay its historical result after current permissions are rechecked. Current original downloads are untrusted acquisition input: compare actually served bytes separately and use the canonical scan/acceptance receipt before pinning. These guards do not publish unrelated drafts or enable public caching.

Purpose-bound public uploads

Most uploads stay STANDARD (private, reference-scoped — see Files on Published Websites). Passing an optional purpose on POST /v1/file-uploads creates a new root-level PUBLIC File instead: STYLE_KIT_FONT and OUTGOING_MESSAGE_MEDIA require the matching edit permission and a validated font/image type; WEBSITE_MEDIA requires website edit permission and a validated website image or MP4/WebM video. WEBSITE_MEDIA additionally accepts websiteSimplyId (a current published-or-not Team website you can edit); when the upload reaches COMPLETED, it is published to that site's standalone media grant, re-checking edit permission at that point too. Without websiteSimplyId, the file is PUBLIC but not yet published to any site — reference it in a design and publish that instead, or call complete_file_upload/GET .../{id} again after supplying one.

complete_file_upload and GET /v1/file-uploads/{fileUploadSimplyId} report, for a COMPLETED WEBSITE_MEDIA upload: websiteMediaPath (new image intents use /api/website-media/{fileSimplyId}/versions/{versionNumber} for the accepted version; legacy intents and non-image media retain their File-only path), websiteMediaUrl (absolute, on the site's primary domain, once websiteSimplyId is known), websiteMediaServable (whether the route will currently return 200, not merely whether the upload succeeded), websiteMediaServableReason when it is not, and width/height for images once known. Never treat a returned fileSimplyId or URL as guaranteed to serve without checking websiteMediaServable.

For new image intents, standalone publication verifies the accepted upload and its exact trusted source, then stores a version-specific publication receipt. Dimensions come from that version. GET only inspects current eligibility; it never publishes or copies bytes. If publication fails, the upload can remain COMPLETED with websiteMediaServable: false; retry completion for the same intent after resolving the reported restriction. Do not start a duplicate upload. A retained receipt does not override a withdrawn Website, File scope/classification, source custody, or a protected-only authored reference. These standalone image links remain private/no-store; they do not enable public image caching.

await s360.files.upload({
  file,
  filename: file.name,
  isNewVersionOfFileSimplyId: 'FILE-1234-ABCD',
  expectedCurrentVersionNumber: 3, // observed before preparing these bytes
});

Raw HTTP Flow

  1. POST /v1/file-uploads with filename, exact allowlisted contentType, fileSizeBytes, and the base64 SHA-256 digest in checksumSha256. Optional fields are fileFolderSimplyId, isNewVersionOfFileSimplyId, expectedCurrentVersionNumber (replacement only), and transport (POST, the default, or PUT).
  2. Default (transport: 'POST', ~6 KB with an assumed-role STS session): submit every returned upload.fields value and then the file part to upload.url as multipart/form-data. The signed POST expires after ten minutes and constrains the key, size, type, checksum, upload ID, and team ID. Do not change or omit fields.
  3. transport: 'PUT' (what the hosted MCP tools always request, since the tool result must stay small): the response carries upload.urlEndpoint (a short first-party GET that resolves, with no Simply360 credential, to the one-time presigned PUT URL as text/plain), upload.headers (send these verbatim — Content-Type, x-amz-checksum-sha256, and x-amz-storage-class: STANDARD, all three signed into the presigned PUT so a mismatched or omitted value invalidates the signature; x-amz-storage-class is forced to STANDARD so an uploader cannot select GLACIER/DEEP_ARCHIVE and strand the object outside malware scanning while incurring a minimum-duration storage charge), and a ready-to-run upload.curl command. urlEndpoint's token query parameter is single-purpose, stored only as its hash, and stops working once the intent leaves PENDING_UPLOAD or expires. Example: curl -fsS -X PUT --upload-file "<PATH_TO_FILE>" -H "Content-Type: image/jpeg" -H "x-amz-checksum-sha256: <base64>" -H "x-amz-storage-class: STANDARD" "$(curl -fsS '<urlEndpoint>')".
  4. Add directUploadUrl: true to a transport: 'PUT' request when your network reaches object storage but not the Simply360 API host (for example an AI agent sandbox with an egress allowlist). upload then carries url, the one-time presigned PUT URL itself, in place of urlEndpoint, and curl sends the bytes straight to it. The URL allows exactly what the exchange token allows: one create-only PUT of the declared length, type, and checksum into private quarantine. It only makes the response larger (about 2 KB), so it stays opt-in. It is not part of the upload declaration, so a replay with the same uploadRequestKey may switch it either way.
  5. Call POST /v1/file-uploads/{fileUploadSimplyId}/complete. A 202 response means scanning or promotion is still pending; poll that endpoint until COMPLETED, REJECTED, or EXPIRED. GET /v1/file-uploads/{fileUploadSimplyId} reads the same durable status without returning storage coordinates.

Resumable multipart uploads

2026-09-29. The SDK's files.upload() automatically switches to transport: 'MULTIPART' above 100 MiB unless a purpose is set (purpose-bound uploads stay single-shot, up to 500 MiB); pass it explicitly to opt in for a smaller file too; pass resumeStateStore to make an interrupted upload resumable across a page reload or process restart (the SDK's default is in-memory only — the webapp supplies an IndexedDB-backed store). No behavior changes for files at or below the threshold.

const uploaded = await s360.files.upload({
  file, // e.g. a 2 GiB video File/Blob
  filename: file.name,
  onProgress: ({ uploadedBytes, totalBytes }) => console.log(`${uploadedBytes}/${totalBytes}`),
});

Raw HTTP flow for transport: 'MULTIPART':

  1. POST /v1/file-uploads with transport: 'MULTIPART' and no checksumSha256 (it is declared later, at completion). The declared fileSizeBytes may be up to 10 GiB (500 MiB for POST/PUT transport, unchanged). The response carries uploadId, partSizeBytes (64 MiB by default), partCount, and parts: the first batch of presigned UploadPart URLs (ten-minute expiry), one per part number.
  2. Slice the file into partSizeBytes-sized chunks (the last part holds the remainder) and PUT each one's exact bytes to its presigned URL, in any order, with bounded concurrency. Record the response ETag header for each part. While uploading, hash every part's bytes into a running SHA-256 in part-number order — concurrency may finish parts out of order, but the digest must not be.
  3. If a part's URL expires or a PUT fails, re-issue it with POST /v1/file-uploads/{fileUploadSimplyId}/parts, body { "partNumbers": [n, ...] }, for just the parts you still need.
  4. Optionally record each part's outcome with POST /v1/file-uploads/{fileUploadSimplyId}/parts/{partNumber}/receipt, body { "etag": "...", "sizeBytes": n }, purely so GET /v1/file-uploads/{fileUploadSimplyId} can report receivedParts back for a resumed client. These receipts are never trusted for correctness — completion always re-derives the authoritative part list from the provider's own record of what was actually received, never the client's reports.
  5. Once every part has uploaded, call POST /v1/file-uploads/{fileUploadSimplyId}/complete with { "sha256": "" } (the incrementally-computed digest, base64-encoded — same encoding as checksumSha256 elsewhere in this API). The server verifies every part is present and correctly sized before assembling them, then proceeds through the same GuardDuty scan and signature check as any other upload. A 409 with code FILE_UPLOAD_NOT_RECEIVED means parts are still missing; keep uploading and retry /complete.
  6. Once scanning is clean, a large or multipart upload's actual promotion (the copy into permanent storage and the custody transaction) runs in a durable background worker rather than inside the completion request, so /complete may report PROMOTING for longer than a small file would. Keep polling /complete or GET until a terminal status; there is nothing else to do while it is PROMOTING.
  7. POST /v1/file-uploads/{fileUploadSimplyId}/abort cancels a multipart upload and moves it to REJECTED. Refused (409) once promotion has started or finished.

Resuming after an interruption: reissue URLs only for parts you have not already confirmed uploaded (via your own bookkeeping, or by calling GET /v1/file-uploads/{fileUploadSimplyId} for receivedParts), re-read and re-hash every part's bytes from the original file in order to reproduce the correct digest, then call /complete as usual. The 10 GiB ceiling, part-size and part-count limits, and content-type restrictions (SVG never accepts MULTIPART, since it needs full-content sanitization the async promotion path does not perform) are enforced identically to single-shot transport where they apply.

Upload intents are bound to the creating credential and selected team. Promotion uses a renewable single-owner lease, a unique permanent key per lease, a database version check, and a fresh storage-limit check serialized per Team, so retries and concurrent uploads remain idempotent. Unscanned, unsupported, access-denied, failed, timed-out, signature-mismatched, checksum-mismatched, or malware-positive objects are never promoted. Quarantine is private and lifecycle-expired; permanent object metadata preserves the original/content checksums and GuardDuty result. Supported formats are deliberately allowlisted, generic application/octet-stream and HTML are rejected, Office Open XML packages are inspected rather than accepted as arbitrary ZIP files, and ISO base-media types must carry a compatible declared brand. Text, CSV, JSON, XML, and SVG receive full-content inspection and are capped at 10 MiB; JSON must parse, SVG is sanitized before storage, and the general binary upload maximum is 500 MiB.

POST /v1/files/batch and POST /v1/files/temp-cleanup remain compatibility endpoints for older Simply360-created temporary objects. They are not the public upload entry point and must not be used to accept caller-selected S3 URLs. New API, SDK, webapp, and MCP-assisted flows use /v1/file-uploads.

Usage Notes

  • Presigned download URLs are temporary. Request a fresh URL when needed rather than caching.
  • Image variants are generated asynchronously after upload. They may not be available for the first few seconds.
  • Records reference files by fileSimplyId in file and image fields; deleting a file does not automatically rewrite record field values. See API Reference: Data Records.
  • File listings support team labels (labelSimplyIds) for organization beyond folders.
  • Hosted MCP clients can use upload_file for canonical base64 payloads up to 4 MiB (practically, only small or text-like content a model can emit), or create_file_upload for any real file: it always requests transport: 'PUT', so the tool result stays a small ready-to-run curl command rather than a ~6 KB signed POST policy. Poll with get_file_upload and finalize with complete_file_upload. The deprecated request_file_upload alias now uses this native declaration and no longer returns an app handoff.
  • GuardDuty scanning is a platform infrastructure cost, not a new customer-billable API usage unit. Promoted bytes still count toward the team's existing storage allowance or paid storage billing.
  • The TypeScript helper targets clients with Blob, FormData, and Web Crypto support. MCP upload tools route through the same quarantine, scan, promotion, permission, and storage-limit services rather than maintaining a separate upload path.
  • Editor services may persist an uploaded image only after converting its File Simply ID to a service-owned durable delivery URL. Website Studio supplies that finalizer; document/email editors keep upload hidden until their delivery finalizers exist.
↑