---
title: "Trash API"
url: "https://earlyaccess.developers.bynder.com/apis/trash-api-1/versions/2ef68820-cd73-4a57-b4b4-f3dbbd7ccbd3"
---

# Trash API

OpenAPI specification document.

```json
{"components":{"securitySchemes":{"OAuth2":{"flows":{"authorizationCode":{"authorizationUrl":"https://{your-auth-url}","scopes":{"trash.assets":""},"tokenUrl":"https://{your-bynder-domain}/v6/authentication/oauth2/token"},"clientCredentials":{"scopes":{"trash.assets":""},"tokenUrl":"https://{your-bynder-domain}/v6/authentication/oauth2/token"}},"type":"oauth2"},"permanentToken":{"in":"header","name":"Authorization","type":"apiKey"}}},"info":{"title":"Trash API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/trash/media":{"get":{"description":"Retrieve assets removed in the last 30 days.","parameters":[{"in":"query","name":"limit","required":false,"schema":{"default":10,"example":20,"type":"integer"}},{"in":"query","name":"page","required":false,"schema":{"default":1,"example":1,"type":"integer"}},{"in":"query","name":"dateRemoved","required":false,"schema":{"description":"Set a date range together with the \"dateRemovedFrom\" parameter. ISO8601 format yyyy-mm-ddThh:mm:ssZ.","example":"2017-04-01T00:00:00Z","format":"date-time","type":"string"}},{"in":"query","name":"field","required":false,"schema":{"enum":["media.dateCreated","media.dateRemoved","media.name","media.username"],"example":"media.dateCreated","type":"string"}},{"in":"query","name":"order","required":false,"schema":{"enum":["asc","desc"],"example":"asc","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"properties":{"S3_filepointer":{"example":"___URL_TO_BYNDER_CDN___","type":"string"},"dateCreated":{"example":"2017-02-12T10:12:19+00:00","format":"date-time","type":"string"},"dateRemoved":{"example":"2017-09-05T13:11:49+00:00","format":"date-time","type":"string"},"id":{"example":"00000000-0000-0000-0000000000000000","type":"string"},"name":{"example":"Beach","type":"string"},"userId":{"example":"00000000-0000-0000-0000000000000000","type":"string"},"username":{"example":"johndoe@bynder.com","type":"string"}},"type":"object"},"type":"array"}}},"description":"Successfully retrieved recently removed assets"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"OAuth2":["trash.assets"]},{"permanentToken":["trash.assets"]}],"summary":"Retrieve recently removed assets","tags":["Trash"]}}},"servers":[{"url":"https://{your-bynder-domain}/"}],"tags":[{"description":"","name":"Trash"}]}
```
