GET
/folders/trash/itemsList trashed items
Retrieves the files and folders that have been moved to the trash.
Any attribute in the full files or folders objects can be passed
in with the fields parameter to retrieve those specific
attributes that are not returned by default.
This endpoint defaults to use offset-based pagination, yet also supports
marker-based pagination using the marker parameter.
The number of entries returned may be less than total_count. For example, if a user deletes items from a shared folder and is later removed as a collaborator, those deleted items will no longer appear in this endpoint’s results, even though they are still included in total_count.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
fieldsarray<string>optional
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.
limitintegeroptional
The maximum number of items to return per page.
offsetintegeroptional
The offset of the item at which to begin the response.
Queries with offset parameter value
exceeding 10000 will be rejected
with a 400 response.
usemarkerbooleanoptional
Specifies whether to use marker-based pagination instead of
offset-based pagination. Only one pagination method can
be used at a time.
By setting this value to true, the API will return a `marker` field
that can be passed as a parameter to this endpoint to get the next
page of the response.
markerstringoptional
Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires `usemarker` to be set to `true`.
directionstringoptional
The direction to sort results in. This can be either in alphabetical ascending
(`ASC`) or descending (`DESC`) order.
sortstringoptional
Defines the **second** attribute by which items
are sorted.
Items are always sorted by their `type` first, with
folders listed before files, and files listed
before web links.
This parameter is not supported when using marker-based pagination.
200Returns a list of items that have been deleted.
limitintegeroptional
The limit that was used for these entries. This will be the same as the
`limit` query parameter unless that value exceeded the maximum value
allowed. The maximum value varies by API.
next_markerstringoptional
The marker for the start of the next page of results.
prev_markerstringoptional
The marker for the start of the previous page of results.
total_countintegeroptional
One greater than the offset of the last entry in the entire collection.
The total number of entries in the collection may be less than
`total_count`.
This field is only returned for calls that use offset-based pagination.
For marker-based paginated APIs, this field will be omitted.
offsetintegeroptional
The 0-based offset of the first entry in this set. This will be the same
as the `offset` query parameter.
This field is only returned for calls that use offset-based pagination.
For marker-based paginated APIs, this field will be omitted.
orderarray<object>optional
The order by which items are returned.
This field is only returned for calls that use offset-based pagination.
For marker-based paginated APIs, this field will be omitted.
entriesarray<Item>optional
The items in this collection.
400Returns an error if some of the parameters are missing or
not valid.
* `invalid_parameter` can appear when the `sort`, `direction` or `offset`
parameter is provided when using marker based pagination, or when the
`marker` parameter is provided but `usemarker` is set to `false` or
`null`.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
defaultAn unexpected client error.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
Error handling
A 400 is returned: Returns an error if some of the parameters are missing or not valid.
invalid_parametercan appear when thesort,directionoroffsetparameter is provided when using marker based pagination, or when themarkerparameter is provided butusemarkeris set tofalseornull. Any other status is an error: An unexpected client error.