List recently accessed documents
const url = 'https://work.optidata.cloud/api/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/dashboard/drive/documents';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://work.optidata.cloud/api/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/dashboard/drive/documents \ --header 'Authorization: Bearer <token>'The files the user touched most recently, each carrying a link that
opens it in the Optiwork file manager.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”UUID of the dashboard owner.
Responses
Section titled “ Responses ”Recently accessed files.
object
Parent folder id. null marks a company folder (top level).
Owner of the node.
1 = folder, 2 = file.
Whether the file can be co-edited in the online editor.
Whether the node lives in cold storage. Present only on detail reads.
true when this node was the explicit target of a delete; null when it
was removed only because an ancestor was deleted.
Materialised ancestor path, dot separated ids.
Current content version of the file.
One stored version of a file’s bytes.
object
Opaque storage path of this content version.
The caller’s effective permission level on this node. Present on listings derived from shares.
A user of the tenant.
object
Identifier of the company (tenant) the user belongs to.
Role of the user inside the tenant.
Profile extras (avatar, job title). Loaded only where noted.
Groups the user belongs to. Loaded only where noted.
A group of users inside the tenant.
object
Tenant-wide identifier of the group; used in paths.
Members of the group, each with its embedded user.
object
Presence status of the user. Loaded only where noted.
Rendered presence details (type, icon, message). Present on dashboard listings.
Per-node presentation settings (colour, shared flag).
A per-user flag on a node.
object
Kind of marker.
object
An advisory lock held on a file while it is being edited. Take one before replacing the content of a file another user could be working on.
object
Free-text reason shown to other users.
Free-text label naming the client that took the lock.
Opaque per-installation identifier of the lock holder.
A user of the tenant.
object
Identifier of the company (tenant) the user belongs to.
Role of the user inside the tenant.
Profile extras (avatar, job title). Loaded only where noted.
Groups the user belongs to. Loaded only where noted.
A group of users inside the tenant.
object
Tenant-wide identifier of the group; used in paths.
Members of the group, each with its embedded user.
object
Presence status of the user. Loaded only where noted.
Rendered presence details (type, icon, message). Present on dashboard listings.
An advisory lock held on a file while it is being edited. Take one before replacing the content of a file another user could be working on.
object
Free-text reason shown to other users.
Free-text label naming the client that took the lock.
Opaque per-installation identifier of the lock holder.
A user of the tenant.
object
Identifier of the company (tenant) the user belongs to.
Role of the user inside the tenant.
Profile extras (avatar, job title). Loaded only where noted.
Groups the user belongs to. Loaded only where noted.
A group of users inside the tenant.
object
Tenant-wide identifier of the group; used in paths.
Members of the group, each with its embedded user.
object
Presence status of the user. Loaded only where noted.
Rendered presence details (type, icon, message). Present on dashboard listings.
Non-null while the node is in the trash.
Deep link that opens the file in Optiwork.
Example
[ { "id": 300754, "drive_id": 1, "type": 1, "name": "Contracts", "ltree_path": "300754.665198", "content_mime_type": "application/pdf", "content_size_bytes": 148213, "content": { "id": 613488, "mime_type": "application/pdf", "size_bytes": 148213 }, "actions": "none", "user": { "id": 15, "uuid": "9c1f0e2a-4d31-4d8a-8c1a-1f0b6b1f9a10", "cuid": "a1b2c3d4-2226-46c1-91b2-a9e9ba4c2d5b", "username": "jane.doe@acme.example", "email": "jane.doe@acme.example", "name": "Jane Doe", "full_name": "Jane Doe", "company_name": "Acme", "role": "super-admin", "status": "active", "groups": [ { "id": 560, "guid": "a19d5670-335d-4285-8ee4-fcb54cb70faf", "name": "Finance" } ] }, "markers": [ { "type": "favorite" } ], "lock": { "user": { "id": 15, "uuid": "9c1f0e2a-4d31-4d8a-8c1a-1f0b6b1f9a10", "cuid": "a1b2c3d4-2226-46c1-91b2-a9e9ba4c2d5b", "username": "jane.doe@acme.example", "email": "jane.doe@acme.example", "name": "Jane Doe", "full_name": "Jane Doe", "company_name": "Acme", "role": "super-admin", "status": "active", "groups": [ { "id": 560, "guid": "a19d5670-335d-4285-8ee4-fcb54cb70faf", "name": "Finance" } ] } }, "locks": [ { "user": { "id": 15, "uuid": "9c1f0e2a-4d31-4d8a-8c1a-1f0b6b1f9a10", "cuid": "a1b2c3d4-2226-46c1-91b2-a9e9ba4c2d5b", "username": "jane.doe@acme.example", "email": "jane.doe@acme.example", "name": "Jane Doe", "full_name": "Jane Doe", "company_name": "Acme", "role": "super-admin", "status": "active", "groups": [ { "id": 560, "guid": "a19d5670-335d-4285-8ee4-fcb54cb70faf", "name": "Finance" } ] } } ] }]Missing, malformed or expired authentication key.
Authentication failures use an error key rather than message.
object
Examples
No bearer token sent
{ "error": "JWT passport exception: Missing bearer token in request"}Rate limit exceeded. Retry after the window resets.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "Too Many Attempts."}