v52

OpenAPI 3.1.0raw.githubusercontent.com2026-07-311,1941,9384.1 MB
TeXML REST Commands

Create a TeXML secret

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.

post/texml/secrets

Request body

namestring required

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

valuestring required

Secret value which will be used when rendering the TeXML template

Example request

{
  "name": "My Secret Name",
  "value": "My Secret Value"
}

Response

Successful response upon creating a TeXML secret.

Example response

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