Skip to main content
GET
/
media
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const media = await client.media.list();

console.log(media.data);
{
  "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": {
    "page_number": 2,
    "page_size": 25,
    "total_pages": 3,
    "total_results": 55
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

filter
object

Consolidated filter parameter (deepObject style). Originally: filter[content_type][]

Response

A response with a list of media resources

data
Media Resource · object[]
meta
object