Skip to main content
Describe a file to the online editor

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.

Headers

circularo-request
boolean

Marks the call as coming from a Circularo client rather than from the editor itself. Only such a call opens an editing session and receives the platform's own properties alongside the WOPI ones.

mode
string

Legacy header for the mode the file is opened in. What the session is for is taken from X-WOPI-SessionContext.

X-WOPI-SessionContext
string

The session context passed on the initial WOPI action URL in its sc parameter, and handed back on every call of the session. The platform carries its own state in it, base64-encoded JSON: which mode the file was opened in, the document and its metadata definition, the revision, the address the client came from and the share password where the session belongs to a share.

Path Parameters

file_id
string
required

Hash of the file to report on. When a file is being created instead, it carries the extension of the file to create.

Query Parameters

access_token
string

Token the call is authorized with. Either a token of an account of the platform or a share token - whichever it turns out to be decides whose access the file is checked against.

Response

Returns what the editor needs to know about the file.

AllowAdditionalMicrosoftServices
boolean

A Boolean value that indicates a WOPI client may connect to Microsoft services to provide end-user functionality.

appName
string

Application inside the editor that handles this kind of file, as the editor's discovery document names it.

BaseFileName
string

The string name of the file without a path. Used for display in user interface (UI), and determining the extension of the file.

BreadcrumbBrandName
string

A string that indicates the brand name of the host.

BreadcrumbBrandUrl
string

A URI to a web page that the WOPI client should navigate to when the user clicks on UI that displays BreadcrumbBrandName.

BreadcrumbDocName
string

A string that indicates the name of the file. If this is not provided, WOPI clients may use the BaseFileName value.

BreadcrumbFolderName
string

A string that indicates the name of the container that contains the file. It carries the folder the document sits in, and is only filled while a file is being edited.

BreadcrumbFolderUrl
string

A URI to a web page that the WOPI client should navigate to when the user clicks on UI that displays BreadcrumbFolderName. It leads back to the document in the platform, and is only filled while a file is being edited.

ClosePostMessage
boolean

A Boolean value that, when set to true, indicates the host expects to receive the UI_Close PostMessage when the Close UI in Office Online is activated.

CloseUrl
string

A URI to a web page that the WOPI client should navigate to when the application closes the file. It is where the editor falls back to when closing through the post-message channel does not work, and points at the platform's own address.

DisableCopy
boolean

Disable copying from the document.

DisableExport
boolean

Disable export of the document in any format. Additionally, hides the ‘Download as’ button from the UI.

DisablePrint
boolean

A Boolean value that indicates the WOPI client should disable all print functionality.

DisableTranslation
boolean

A Boolean value that indicates the WOPI client should disable all machine translation functionality.

documentId
string

Document the file belongs to, so that the client can find its way back to it from the editing session.

documentname
string

Name the file is filed under. On the working copy of an editing session it is the platform's own pipe-separated session record rather than a plain name, with the file name in its first field.

DownloadUrl
string

A URI to a location where the file can be downloaded from. It is only offered while a file is being edited, so that what is downloaded is the state the editor is working on.

editActionUrl
string

Address the client loads in its frame to open the file for editing, already carrying everything the editor needs to start the session.

EditModePostMessage
boolean

A Boolean value that, when set to true, indicates the host expects to receive the UI_Edit PostMessage when the Edit UI in Office Online is activated.

EnableOwnerTermination
boolean

This gives document owners the ability to terminate all sessions currently having that document opened.

favIconUrl
string

Address of the icon that application is shown with.

FileEmbedCommandUrl
string

A URI to a location that allows the user to create an embeddable URI to the file.

FileNameMaxLength
string

The maximum length for file names, in characters.

FileSharingUrl
string

A URI to a location that allows the user to share the file.

FileUrl
string

A URI to the file location that the WOPI client uses to get the file.

FileVersionUrl
string

A URI to a location that allows the user to view the version history for the file.

hash
string

Identifier of the file the session is working on. In an editing session this is the working copy, not the document's stored file.

HideExportOption
boolean

Hides ‘Download as’ button/menubar item from UI but still accessible using PostMessage API.

HidePrintOption
boolean

Hides print button from UI but accessible using PostMessage API so hosts can implement their own UI for this.

HideSaveOption
boolean

Hides save button from UI but still accessible using PostMessage API.

HostEditUrl
string

A URI to a host page that loads the edit WOPI action.

HostEmbeddedViewUrl
string

A URI to a web page that provides access to a viewing experience for the file that can be embedded in another HTML page.

HostViewUrl
string

A URI to a host page that loads the view WOPI action. This URL is used by Office Online to navigate between view and edit mode.

IsAnonymousUser
boolean

A Boolean value indicating whether the user is authenticated with the host or not.

IsEduUser
boolean

A Boolean value indicating whether the user is an education user or not.

LastModifiedTime
string

When the content was last written, as an ISO 8601 timestamp. It is what the editor compares against to notice that the file changed underneath it.

LicenseCheckForEditIsEnabled
boolean

A Boolean value indicating whether the user is a business user or not.

OwnerId
string

A string that uniquely identifies the owner of the file.

PostMessageOrigin
string

A string value indicating the domain the host page will be sending/receiving PostMessages to/from.

ReadOnly
boolean

A Boolean value that indicates that, for this user, the file cannot be changed.

RestrictedWebViewOnly
boolean

A Boolean value that indicates that the WOPI client should restrict what actions the user can perform on the file.

SignoutUrl
string

A URI that will sign the current user out of the host’s authentication system.

Size
integer

The size of the file in bytes, expressed as a long, a 64-bit signed integer.

SupportsCobalt
boolean

A Boolean value that indicates that the host supports cobalt operations.

SupportsContainers
boolean

A Boolean value that indicates that the host supports container operations.

SupportsDeleteFile
boolean

A Boolean value that indicates that the host supports the DeleteFile operation.

SupportsEcosystem
boolean

A Boolean value that indicates that the host supports ecosystem operations.

SupportsExtendedLockLength
boolean

A Boolean value that indicates that the host supports lock IDs up to 1024 ASCII characters long. If not provided, WOPI clients will assume that lock IDs are limited to 256 ASCII characters.

SupportsFolders
boolean

A Boolean value that indicates that the host supports folder operations.

SupportsGetLock
boolean

A Boolean value that indicates that the host supports the GetLock operation.

SupportsLocks
boolean

A Boolean value that indicates that the host supports the following WOPI operations: Lock, Unlock, RefreshLock.

SupportsRename
boolean

A Boolean value that indicates that the host supports the RenameFile operation.

SupportsUpdate
boolean

A Boolean value that indicates that the host supports the following WOPI operations: PutFile, PutRelativeFile.

SupportsUserInfo
boolean

A Boolean value that indicates that the host supports the PutUserInfo operation.

UserCanAttend
boolean

A Boolean value that indicates that the user has permission to view a broadcast of this file.

UserCanNotWriteRelative
boolean

A Boolean value that indicates the user does not have sufficient permission to create new files on the WOPI server.

UserCanPresent
boolean

A Boolean value that indicates that the user has permission to broadcast this file to a set of users who have permission to broadcast or view a broadcast of the current file.

UserCanRename
boolean

A Boolean value that indicates the user has permission to rename the current file.

UserCanWrite
boolean

A Boolean value that indicates that the user has permission to alter the file. Only the working copy of an editing session may be written to, so it is false whenever a stored file is being opened.

UserExtraInfo
object

What the editor shows about the person editing, beyond their name. It is sent to Collabora only, and is absent altogether when neither a picture nor an address is known.

UserFriendlyName
string

Will be displayed in UI instead of Guest (User friendly name - Full name - of user).

UserId
string

A string value uniquely identifying the user currently accessing the file.

UserInfo
string

A string value containing information about the user.

Version
string

The current version of the file based on the server’s file version schema, as a string. This value must change when the file changes, and version values must never repeat for a given file.

viewActionUrl
string

Address the client loads in its frame to open the file for viewing.