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.
- application/json
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.
- application/json
default: Unexpected error.
- application/json
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"
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}