Skip to main content
POST
/
storage
/
buckets
/
{bucketName}
/
{objectName}
/
presigned_url
JavaScript
import Telnyx from 'telnyx';

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

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"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

bucketName
string
required

The name of the bucket

objectName
string
required

The name of the object

Body

application/json
ttl
integer

The time to live of the token in seconds

Required range: 1 <= x <= 604800
Example:
[60]

Response

200 - application/json

Presigned URL Object Response

content
object