Skip to main content

Create a TeXML secret

POST 
/texml/secrets

Create a TeXML secret which can be later used as a Dynamic Parameter for TeXML when using Mustache Templates in your TeXML. In your TeXML you will be able to use your secret name, and this name will be replaced by the actual secret value when processing the TeXML on Telnyx side. The secrets are not visible in any logs.

Request

Body

required

Create TeXML secret request object

    name stringrequired

    Name used as a reference for the secret, if the name already exists within the account its value will be replaced

    value stringrequired

    Secret value which will be used when rendering the TeXML template

Responses

201: Successful response upon creating a TeXML secret.

422: Unprocessable entity

Request samples


curl -L 'https://api.telnyx.com/v2/texml/secrets' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "My Secret Name",
"value": "My Secret Value"
}'

Response samples


{
"data": {
"name": "My Secret Name",
"value": "*****"
}
}