Skip to main content
PUT
/
storage
/
buckets
/
{bucketName}
/
ssl_certificate
JavaScript
import Telnyx from 'telnyx';

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

const sslCertificate = await client.storage.buckets.sslCertificate.create('');

console.log(sslCertificate.data);
{
  "data": {
    "id": "<string>",
    "issued_to": {
      "common_name": "<string>",
      "organization": "<string>",
      "organization_unit": "<string>"
    },
    "issued_by": {
      "common_name": "<string>",
      "organization": "<string>",
      "organization_unit": "<string>"
    },
    "valid_from": [
      "2020-01-01T00:00:00Z"
    ],
    "valid_to": [
      "2020-01-01T00:00:00Z"
    ],
    "created_at": [
      "2020-01-01T00:00:00Z"
    ]
  }
}

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

Body

multipart/form-data
certificate
file

The SSL certificate file

Example:

""

private_key
file

The private key file

Example:

""

Response

200 - application/json

SSL Certificate Response

data
object