Skip to main content
GET
/
documents
/
{id}
/
download_link
JavaScript
import Telnyx from 'telnyx';

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

const response = await client.documents.generateDownloadLink('550e8400-e29b-41d4-a716-446655440000');

console.log(response.data);
{
  "data": {
    "url": "https://s3.amazonaws.com/bucket/path/to/document?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=..."
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Uniquely identifies the document

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

Successfully generated download link

data
object
required