Box Developer Documentation
 

    Searching trash

    Searching trash

    By default, any content in the user's trash is ignored in the search results. To search the user's trash, the trash_content query parameter can be set to trashed_only.

    cURL
    curl -i -X GET "https://api.box.com/2.0/search?query=sales&trash_content=trashed_only" \
        -H "Authorization: Bearer <ACCESS_TOKEN>"
    

    Currently the API only supports searching for content not in the trash (non_trashed_only, default) or in the user's trash (trashed_only). It is currently not possible to search for items in both locations at once.