Skip to main content
Rename or relabel a file

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

hash
string
required

Unique hash (identifier) of the file.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

Body

application/json
category

Labels to be the file's whole set, discarding what it carried before; a single label may be sent on its own rather than in an array. Left out, the labels are unchanged - to add or take away individual ones instead of replacing them all, use PUT /files/category. At least one of fileName and category must be provided.

Example:
fileName
string | null

New name to show the file under, without an extension - the extension keeps following the content. Left out, the name is unchanged. At least one of fileName and category must be provided.

Example:

"Agreement_2023"

Response

Returns the file with its metadata as it now stands.

additionalInfo
string | null

What was read out of the document itself when it was processed, kept as a JSON-encoded object, so a client has to parse it before use: its own descriptive metadata, which archiving standards it turned out to comply with, what it carries as embedded attachments, and whether it has form fields at all. It is filled only for the formats the platform can inspect.

category
(string | null)[] | null

Labels the file has been filed under. They carry no meaning to the platform and exist to let a client narrow a listing down.

Example:
checksum
string | null

Checksum of the stored content, computed when the file was written. It identifies the bytes rather than the record, so two files holding the same content share it.

createDate
string<date-time> | null

When this revision of the file was stored.

Example:

"2026-03-14T09:12:44.318Z"

createdBy
string | null

User who uploaded the file.

Example:

"jane.doe@example.com"

documentname
string | null

Name the file is shown under, without an extension. It is the name given at upload, or the uploaded file's own name where none was given, and it is what a rename changes.

Example:

"Agreement_2023"

encoding
string | null

Transfer encoding the file arrived in, as reported by the upload.

fileExtension
string | null

Extension the file is served under. It follows from the content type rather than from the uploaded name, so a mislabelled upload still downloads under the right one.

Example:

"pdf"

fileId
string | null

Identifier the successive revisions of one file share - a replacement gets a new hash but keeps this, which is what ties a revision chain together.

fileType
string | null

Coarse family the format belongs to - a document, a spreadsheet, an image, an archive and so on - meant for picking an icon or a filter rather than for deciding how to process the file. Anything unrecognised falls into a catch-all.

Example:

"pdf"

hash
string | null

Identifier of the file, and the value every endpoint taking a file takes. It addresses one revision: replacing a file's content yields a new hash.

Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

hasPassword
boolean | null

Whether the document itself is locked with a password, which is what keeps the platform from reading its pages. It is settled while an uploaded file is processed - a file that is not a document is recorded as not locked - and stays empty on a file that never went through that processing at all, such as a stored image.

id
string

File hash (unique file identifier).

Example:

"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f"

intent
string | null

What the file is being kept for - a document's main file, an attachment, a signature image, a thumbnail and so on. It is what ties the file to the thing referencing it, and a file no longer claimed by anything is eventually swept away, so a freshly uploaded file that has not been attached yet is marked as unclaimed.

Example:

"main_file"

isConvertible
boolean

Whether this file can be turned into PDF, which is what it takes to make it signable. It stays empty where the file's content type is not known, so it cannot be decided either way.

isSigned
boolean | null

Whether the document was found to carry a signature when it was last processed. It matters because converting a signed document destroys the signature, which is why a conversion declines to run on one by default - though the conversion decides that by re-reading the document rather than by trusting this.

mimetype
string | null

Content type of the stored file, worked out from the content itself rather than taken from the upload.

Example:

"application/pdf"

organization
string | null

Organization the file was uploaded within, taken from its uploader, or the share sender's organization for a file a recipient from outside it hands in. It is what the organization-wide storage usage is added up over.

originalname
string | null

Name the file was uploaded under, extension included, kept as it arrived.

Example:

"agreement.pdf"

ownedBy
string | null

User the file belongs to, which is who may read and replace it. It starts out as the uploader and follows the file if it changes hands - a file a share's recipient from outside the sender's organization hands in passes to the share's sender, whose storage it then counts against.

Example:

"jane.doe@example.com"

pages
integer | null

Number of pages the document has. It is known only for the formats the platform can inspect.

Example:

3

path
string | null

Where the bytes sit in the configured storage backend. It is internal bookkeeping and of no use to a client, which addresses a file by its hash.

pdfPreview
object | null

PDF rendition of an office file, generated so that the file can be previewed without an online editor. It belongs to this exact content - a replaced file gets a preview of its own - and stays empty for a file that is not an office format or has not been processed yet.

public
boolean | null

Whether the file may be fetched without signing in. A public file is additionally reachable through a separate public link, which is handed out alongside it.

publicHash
string

Link value that fetches the file without any authentication, made of the file's own hash and the secret held for it. It is answered only for a file marked public, and it is the only form in which that secret ever leaves the server.

Example:

"cir_s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwd3q9h8yfgc0mrvu7kx3.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"

revision
integer | null

Which revision of the file this is. An uploaded document starts at one and each replacement of its content raises it, storing a new file rather than overwriting the old one; a file the platform stored for itself stays at zero.

Example:

1

size
integer | null

Size of the stored file in bytes. It counts against the storage quota once the file has become a document's main file, one of its attachments or one of the files handed in on it, such as those the recipients of its share hand in; a file kept for anything else - an image, a thumbnail, a template - is not measured, and neither is one still waiting to be claimed.

Example:

102400

temp
boolean | null

Whether the file is a working copy still being written - the state a file sits in while it is open for editing, before the finished content takes the place of the original.

thumbnail
string | null

Hash of the preview image generated for this file. It is a file in its own right and is fetched like any other; it appears once a preview has been asked for.

usePdfA
boolean | null

Whether the file was converted for long-term archiving. It records what happened to the file, not a request to do it.