Check out our upcoming events and meetups! View events →
Returns a timed and authenticated URL to download (GET) or upload (PUT) an object. This is the equivalent to AWS S3’s “presigned” URL. Please note that Telnyx performs authentication differently from AWS S3 and you MUST NOT use the presign method of AWS s3api CLI or SDK to generate the presigned URL.
Refer to: https://developers.telnyx.com/docs/cloud-storage/presigned-urls
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.storage.buckets.createPresignedURL('', { bucketName: '' });
console.log(response.content);{
"content": {
"token": "<string>",
"presigned_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The name of the bucket
The name of the object
The time to live of the token in seconds
1 <= x <= 60480060
Presigned URL Object Response
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.storage.buckets.createPresignedURL('', { bucketName: '' });
console.log(response.content);{
"content": {
"token": "<string>",
"presigned_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}