List recent items

get
https://api.box.com/2.0
/recent_items

Returns information about the recent items accessed by a user, either in the last 90 days or up to the last 1000 items accessed.

Request

application/json

Query Parameters

string arrayin queryoptional
id,type,name

A comma-separated list of attributes to include in the response. This can be used to request fields that are not normally returned in a standard response.

Be aware that specifying this parameter will have the effect that none of the standard fields are returned in the response unless explicitly specified, instead only fields for the mini representation are returned, additional to the fields requested.

integer / int64in queryoptional
10001000-1000

The maximum number of items to return per page.

stringin queryoptional
JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii

The position marker at which to begin the response.

Response

application/jsonRecent Items

Returns a list recent items access by a user.

You can now try out some of our APIs live, right here in the documentation.
Log In

Request Example

cURL
curl -X GET https://api.box.com/2.0/recent_items \
     -H "Authorization: Bearer <ACCESS_TOKEN>"
.NET
BoxCollectionMarkerBasedV2<BoxRecentItem> recentItems = await client.RecentItemsManager
    .GetRecentItemsAsync(limit: 500);
Java
// Get the latest 100 items the user has interacted with
Iterable<BoxRecentItem> recentItems = BoxRecents.getRecentItems(api, 100);
Node
client.recentItems.get({limit: 1000})
	.then(recentItems => {
		/* recentItems -> {
			next_marker: '',
			limit: 1000,
			order: { by: 'interacted_at', direction: 'DESC' },
			entries: 
			[ { type: 'recent_item',
				interaction_type: 'item_preview',
				interacted_at: '2017-06-06T15:46:28-07:00',
				item: 
					{ type: 'file',
					id: '11111',
					file_version: 
					{ type: 'file_version',
						id: '22222',
						sha1: 'd0a8c75ba72bf923bfb0c855bbcf1e8f7cc817dd' },
					sequence_id: '0',
					etag: '0',
					sha1: 'd0a8c75ba72bf923bfb0c855bbcf1e8f7cc817dd',
					name: 'File2.txt' },
				interaction_shared_link: "https://app.box.com/s/27jtnq2g8b7bu30pivpbz6nb2ef47mfs" },
				{ type: 'recent_item',
				interaction_type: 'item_preview',
				interacted_at: '2017-06-06T15:46:27-07:00',
				item: 
					{ type: 'file',
					id: '33333',
					file_version: 
					{ type: 'file_version',
						id: '44444',
						sha1: '12a715416bc96ba3ea860480c815657d5e0809da' },
					sequence_id: '0',
					etag: '0',
					sha1: '12a715416bc96ba3ea860480c815657d5e0809da',
					name: 'Image1.png' },
				interaction_shared_link: null } ] }
		*/
	});

Response Example

{
  "limit": 1000,
  "next_marker": 3000,
  "prev_marker": 1000,
  "entries": [
    {
      "type": "recent_item",
      "item": {
        "id": 11446498,
        "type": "file",
        "sequence_id": 3,
        "etag": 1,
        "name": "Pictures"
      },
      "interaction_type": "item_preview",
      "interacted_at": "2018-04-13T13:53:23-07:00",
      "interaction_shared_link": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg"
    }
  ]
}