Check out our upcoming events and meetups! View events →
Verify the SMS OTP (One-Time Password) for Sole Proprietor brand verification.
Verification Flow:
BRAND_OTP_VERIFIED webhook event is sent to the CSPidentityStatus changes to VERIFIEDError Handling:
Provides proper error responses for:
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.messaging10dlc.brand.verifySMSOtp('4b20019b-043a-78f8-0657-b3be3f4b4002', {
otpPin: '123456',
});{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}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 verify the OTP
"4b20019b-043a-78f8-0657-b3be3f4b4002"
Request body for verifying a Brand SMS OTP
The OTP PIN received via SMS
4 - 10"123456"
OTP verified successfully - No content returned
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
});
await client.messaging10dlc.brand.verifySMSOtp('4b20019b-043a-78f8-0657-b3be3f4b4002', {
otpPin: '123456',
});{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}