Skip to main content
GET
/
media
/
{media_name}
/
download
JavaScript
import Telnyx from 'telnyx';

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

const response = await client.media.download('media_name');

console.log(response);

const content = await response.blob();
console.log(content);
"<string>"

Authorizations

Authorization
string
header
required

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

Path Parameters

media_name
string
required

Uniquely identifies a media resource.

Response

A response describing a media resource

The response is of type file.