Check out our upcoming events and meetups! View events →
Trigger or re-trigger an SMS OTP (One-Time Password) for Sole Proprietor brand verification.
Important Notes:
SOLE_PROPRIETOR) brandsmobilePhone number in the brand’s profilereferenceId that can be used to check OTP status via the GET /10dlc/brand/smsOtp/{referenceId} endpointUse Cases:
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.messaging10dlc.brand.triggerSMSOtp(
'4b20019b-043a-78f8-0657-b3be3f4b4002',
{ pinSms: 'Your PIN is @OTP_PIN@', successSms: 'Verification successful!' },
);
console.log(response.brandId);{
"brandId": "4b20019b-043a-78f8-0657-b3be3f4b4002",
"referenceId": "OTP4B2001"
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Brand ID for which to trigger the OTP
"4b20019b-043a-78f8-0657-b3be3f4b4002"
Request body for triggering a Brand SMS OTP
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.messaging10dlc.brand.triggerSMSOtp(
'4b20019b-043a-78f8-0657-b3be3f4b4002',
{ pinSms: 'Your PIN is @OTP_PIN@', successSms: 'Verification successful!' },
);
console.log(response.brandId);{
"brandId": "4b20019b-043a-78f8-0657-b3be3f4b4002",
"referenceId": "OTP4B2001"
}