Skip to main content
POST

Overview

Checks whether the authenticated user already owns a file with the given content hash in a workspace. Use this before uploading to implement instant uploads / deduplication: if the content already exists, you can skip the upload entirely and reuse the existing entry.
Drime stores a SHA-256 hex digest of the file content in the file_hash field. The official clients compute it at upload time and send it as fileHash, so the lookup only matches files uploaded with a hash.

Request Body

string
required
SHA-256 hex digest of the file content (64 lowercase hex characters)
integer
Workspace to search in. Defaults to 0 (personal space).

Response

string
Request status (success)
boolean
Whether a file with this content hash already exists for the current user in the workspace
object
The matching file entry object. Only present when exists is true.