Skip to main content
POST
/
verify_profiles
/
templates
JavaScript
import Telnyx from 'telnyx';

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

const messageTemplate = await client.verifyProfiles.createTemplate({
  text: 'Your {{app_name}} verification code is: {{code}}.',
});

console.log(messageTemplate.data);
{
  "data": {
    "id": "0abb5b4f-459f-445a-bfcd-488998b7572d",
    "text": "Your {{app_name}} verification code is: {{code}}."
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The request body when creating a message template.

text
string
required

The text content of the message template.

Example:

"Your {{app_name}} verification code is: {{code}}."

Response

Expected message template response to a valid request.

data
VerifyProfileResponse · object