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