Cloud Recovery API Reference
A compact reference to how Dropbox, Google Drive and OneDrive each expose object identity, revision history, deleted state, change streams and restore. Each row says whether an operation only reads or changes the account. It is a starting point for planning an inventory, not a substitute for each provider’s current documentation or for the fuller reasoning in Dropbox, Google Drive and OneDrive Recovery APIs.
- Listing, reading revisions and downloading a retained revision are reads; restores and setting keepForever are writes, and a Google Drive binary download can require keepForever first.
- A deleted entry, a removed change or a missing item is a lead to check, not proof that the bytes are gone.
- Change cursors and delta tokens keep a client in sync; they are not an audit trail.
- Graph’s direct deleted-item restore is documented only for OneDrive Personal; that does not make other accounts unrecoverable.
Four identifiers, four different questions
- Object ID — names a file or folder independently of its name and location. It does not promise that any of the object’s history is still kept.
- Revision or version ID — names one stored state of one object, and is useful only while the provider still retains it.
- Path — the current visible location. It can change without the object changing, and can point to a different object after a delete and re-upload.
- Change cursor or delta token — a bookmark into a change feed for one scope. It records where a client stopped reading and can expire or be invalidated.
All four are scoped to a namespace, drive or account and to the permissions of the account making the call. An empty or “deleted” result describes this account’s view: another user, a shared-folder owner or an administrator may see more, and an item can disappear from a listing through loss of access as well as through deletion.
Dropbox (HTTP API)
- Object identity: file ID, stable across moves and renames, alongside the current path.
- Revisions (read): the route files/list_revisions returns revisions by path or by file ID. In the default path mode it follows the same path; id mode follows the same file ID across moves. The result also flags whether the latest entry was deleted or moved. A specific revision can be downloaded with files/download (read).
- Deleted state (read): files/list_folder with include_deleted returns DeletedMetadata entries, which the specification defines as “there used to be a file or folder at this path, but it no longer exists.” An entry records the removal; it does not show that revisions are still retained.
- Complete inventory: recursive, include_deleted and pagination belong together — while has_more is true, the cursor goes to files/list_folder/continue. A single page, or a listing without recursion or deleted entries, makes unread items look missing.
- Change stream (read): the same cursor, passed to list_folder/continue later, returns updates; an invalidated cursor is reported with a reset error and needs a fresh listing.
- Restore (write): files/restore restores a specific revision to a given path. Permanent deletion is a separate operation.
These are HTTP route names. Official SDKs wrap them under language-specific method names, which should be checked in the SDK actually used.
Google Drive (API v3)
- Object identity: file ID, independent of the current name or parent folder.
- Revisions (read): revisions.list and revisions.get. Google warns that the list returned by the API might be incomplete for files with a large revision history.
- Binary files vs. Workspace documents: only uploaded binary (blob) revisions marked “Keep Forever” can be downloaded; Docs, Sheets and Slides revisions are exported to a chosen format instead. Revisions not marked are purgeable — typically kept for 30 days but they can be purged earlier.
- keepForever (write): set with revisions.update, which needs a write-capable scope. It is a retention change to the account, not a discovery step. It applies only to files with binary content, and a file can have at most 200 revisions marked this way — a cap on pinned binary revisions, not the number of versions that exist.
- Deleted state (read): search for trashed files directly rather than treating absence as deletion. In changes.list, a removed change means the file left the list “for example by deletion or loss of access”.
- Change stream (read): changes.list returns changes since a saved page token.
- Restore: the revisions resource offers list, get, update and delete, not a restore operation. Retrieval means downloading a pinned binary revision or exporting a Workspace document; any later change to the file in the account is a write.
OneDrive and SharePoint (Microsoft Graph v1.0)
- Object identity: driveItem ID within a drive. Delta results should be tracked by ID, because path values are not populated in them.
- Versions (read): listing a driveItem’s versions returns version IDs, dates and sizes. Depending on service and configuration, versions may be created on each edit, each save, manually or never, and kept for a finite period set by admin policy; OneDrive does not preserve complete metadata for previous versions.
- Version content (read): a separate operation downloads the content of a specific earlier version; it does not cover the current version, which is downloaded as the item itself.
- restoreVersion (write): makes a previous version current by creating a new version with its contents, keeping existing versions. It needs Files.ReadWrite or higher and the change reaches synchronized devices.
- Deleted state (read): the deleted facet in a delta response, alongside the service’s recycle bin.
- Deleted-item restore (write): driveItem restore brings back an item from the recycle bin. Microsoft documents it as currently available only for OneDrive Personal; delegated work or school accounts are listed as not supported. That does not make OneDrive for Business or SharePoint items unrecoverable — other routes, such as the recycle bin interface or administrator tools, have to be checked for that account type.
- Change stream (read): driveItem delta, followed through every nextLink until a deltaLink is returned. The feed shows the latest state of each item, not each change, and the same item can appear more than once. A token the service can no longer serve returns 410 Gone with a link to a full re-enumeration.
Change feeds: sync state, not history
Dropbox cursors, Drive page tokens and Graph delta tokens let a client catch up to the current state. Reading stops early, a resync after an expired token, or a feed that collapses several renames into one entry all leave gaps that a feed cannot fill afterwards. Keeping a dated record of each enumeration is what turns it into evidence; timeline reconstruction is covered in Cloud Change History and Sync-State Reconstruction.
How to use this reference
Match the actual question — deleted, overwritten, moved, or access lost — to the rows above, then confirm current capability, scope and retention for the specific provider and account. Start with read-only discovery: inventory the accessible scope and record the account, object and revision IDs, permissions and time. Retrieve retained content to a separate location where the API permits it without a write. If downloading a Google Drive binary revision requires setting keepForever first, record its current metadata and obtain authorization for that retention change before retrieval. Validate the retrieved copies before deciding on a restore; see the copy-first order and How to Validate Recovered Data.
An API having an endpoint to list versions does not mean every historical version still exists, and an API cannot return content the provider has already purged. Retention depends on service plan, account type, admin policy and age — confirm it rather than assuming it.
Technical references: Dropbox API specification (files.stone) — list_revisions modes, list_folder options and DeletedMetadata, restore, cursor reset. It is the machine-readable source of the HTTP API; SDK method names differ. · Google Drive API: Manage file revisions and the revisions resource — binary vs. Workspace revisions, purge, keepForever and its 200-revision cap. Drive API v3 only. · Microsoft Graph: driveItem restore and restoreVersion — deleted-item vs. version restore and their account scope. Graph v1.0; /beta can differ. · Microsoft Graph: driveItem delta — paging, latest-state semantics and 410 resync. All checked in October 2026; routes, scopes, limits and account support can change.
Related: Dropbox, Google Drive and OneDrive Recovery APIs · Cloud File Version and Deleted-Item Recovery · Cloud Change History and Sync-State Reconstruction · Mobile Device and Cloud Recovery Tools · Cloud Storage & Sync Data Loss