Skip to main content

Create a custom storage credential

POST 
/custom_storage_credentials/:connection_id

Creates a custom storage credentials configuration.

Request

Path Parameters

    connection_id stringrequired

    Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource.

Body

required

Creates new credentials resource for given connection_id.

    backend stringrequired

    Possible values: [gcs, s3, azure]

    configuration

    object

    required

    oneOf

Responses

200: A response with credentials resource.

default: Unexpected error.

Request samples


curl -L 'https://api.telnyx.com/v2/custom_storage_credentials/:connection_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"backend": "gcs",
"configuration": {
"credentials": "OPAQUE_CREDENTIALS_TOKEN",
"bucket": "example-bucket"
}
}'

Response samples


{
"data": {
"backend": "gcs",
"configuration": {}
},
"record_type": "string"
}