Recently used files

List a set of items that have been recently used by the signed in user. This list includes items that are in the user's drive as well as items they have access to from other drives.

GET /drive/recent

Note: This method has a different signature for Microsoft Graph and the OneDrive API. See OneDrive API endpoint differences for more information.

The response is a collection of driveItem resources. They are ordered by most recently used first.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": [
    {
      "id": "1312abc!1231",
      "remoteItem":
      {
        "id": "1991210caf!192",
        "name": "March Proposal.docx",
        "file": { },
        "size": 19121,
        "parentReference": {
          "driveId": "1991210caf",
          "id": "1991210caf!104"
        }
      },
      "fileSystemInfo": {
        "lastAccessedDateTime": "2017-02-20T19:13:00Z"
      }
    },
    {
      "id": "1312def!9943",
      "name": "Vacation.jpg",
      "file": { },
      "size": 37810,
      "parentReference": {
        "driveId": "1312def",
        "id": "1312def!123"
      },
      "fileSystemInfo": {
        "lastAccessedDateTime": "2017-02-20T16:43:21Z"
      }
    }
  ]
}

Note: The objects in the response are truncated for readability. The actual HTTP response will include all default properties of these items.

Error Responses

Read the Error Responses topic for more information about how errors are returned.