Deleted Media

List Deleted Media

Changed on

Lists media that has been soft-deleted and is still inside the account's restore window. Media is listed only while it can still be restored — 30 days on most plans, 14 on free plans. After which it is permanently purged.

Requires api token with one of the following permissions

Read all folder and media data

Tokens with the "Act with a team member's permissions" permission (all:delegate_to_contact_permissions scope) can also be used. Requests made with such a token are authorized using the permissions of the contact assigned to the token.

An expiring access token created with the all:delegate_to_contact_permissions scope and an account authorization granting the manage-deleted-media permission can also be used. Only the deleted media the token's media authorizations name are listed.

get/deleted_media

Request

  • Base URL
    https://api.wistia.com/modern
  • URL
    https://api.wistia.com/modern/deleted_media
  • Auth
    HTTP bearer

Query parameters

hashed_ids[]string[]

Restrict the results to the deleted media with these hashed IDs.

sort_by'id' | 'deleted' | 'name' | 'type' | 'created'

Field to order by. When omitted, results are ordered most-recently-deleted first.

sort_direction0 | 1

Direction to order by. (0 = desc, 1 = asc; default is 1)

pageinteger

The page number to retrieve. This cannot be combined with cursor, pagination.

per_pageinteger

The number of medias per page. Use this for both offset pagination and cursor pagination.

enabled0 | 1

If cursor[enabled] is set to 1, the first result set will be fetched with cursor pagination enabled. This values is ignored if cursor[before] or cursor[after] are set.

beforestring

If cursor[before] is set then cursor pagination is enabled and all records before the cursor up to the per_page are returned. This feature is useful for fetching "new records", for example, in a "pull to refersh" feature when showing records in a descending order.

afterstring

If cursor[after] is set then cursor pagination is enabled and all records after the cursor up to the per_page are returned.

If cursor[enabled] is set to 1 then cursor pagination is enabled and the first set of records are fetched up to the per_page. Cursor pagination will also be turned on if cursor[before] or cursor[after] are set. Records returned will have a cursor property set which can be used to fetch more records in the same sort_by ordering. The cursor value of the last record can be used to fetch records after the current result set and the cursor of the first record can be used to fetch records before the result set.

NOTE: a cursor value is only valid if the sort_by value hasn't changed from the last fetch. For example, you cannot fetch using sort_by id and then pass that cursor value to a sort_by name.

Headers

X-Wistia-API-Versionstring required

Response

Deleted media retrieval successful

hashed_idstring

A unique alphanumeric identifier for this media.

namestring

The media display name.

typestring

The type of media (e.g. Video, Audio).

durationnumber nullable

The length of the media in seconds.

deleted_atstring date-time

When the media was deleted, in ISO 8601 format.

restore_expires_atstring date-time

The deadline after which this media is permanently purged and can no longer be restored (deleted_at plus the account's restore window).

cursorstring nullable

A cursor for stable pagination based on current sort_by order. You can pass this to cursor[before] or cursor[after] as a parameter to fetch the records before or after this record in the same sort order. This is only populated if records were fetched with cursor[enabled], or cursor[before] or cursor[after].

Example response

[
  {
    "name": "My deleted video",
    "type": "Video",
    "deleted_at": "2026-06-20T18:47:39+00:00",
    "restore_expires_at": "2026-07-20T18:47:39+00:00"
  }
]

Changes