Skip to main content

List uploaded media

GET 
/media

Returns a list of stored media files.

Request

Query Parameters

    filter[content_type][] string

    Filters files by given content types

Responses

200: A response with a list of media resources

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/media' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"media_name": "f5586561-8ff0-4291-a0ac-84fe544797bd",
"expires_at": "2020-01-23T18:10:02.574Z",
"created_at": "2019-01-23T18:10:02.574Z",
"updated_at": "2019-01-23T18:10:02.574Z",
"content_type": "application/xml"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}