Check out our upcoming events and meetups! View events →
Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand verification using the Brand ID.
This endpoint allows you to check the delivery and verification status of an OTP sent during the Sole Proprietor brand verification process by looking it up with the brand ID.
The response includes delivery status, verification dates, and detailed delivery information.
Note: This is an alternative to the /10dlc/brand/smsOtp/{referenceId} endpoint when you have the Brand ID but not the reference ID.
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.retrieveSMSOtpStatus(
'4b20019b-043a-78f8-0657-b3be3f4b4002',
);
console.log(response.brandId);{
"brandId": "B123ABC",
"referenceId": "OTP4B2001",
"mobilePhone": "+11234567890",
"requestDate": "2024-12-03T17:12:33.560000+00:00",
"deliveryStatus": "DELIVERED_HANDSET",
"verifyDate": "2024-12-03T17:12:33.560000+00:00",
"deliveryStatusDate": "2024-12-03T17:12:33.560000+00:00",
"deliveryStatusDetails": "Delivered to handset"
}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 query OTP status
"4b20019b-043a-78f8-0657-b3be3f4b4002"
Successful Response
Status information for an SMS OTP sent during Sole Proprietor brand verification
The Brand ID associated with this OTP request
"B123ABC"
The reference ID for this OTP request, used for status queries
"OTP4B2001"
The mobile phone number where the OTP was sent, in E.164 format
"+11234567890"
The timestamp when the OTP request was initiated
"2024-12-03T17:12:33.560000+00:00"
The current delivery status of the OTP SMS message. Common values include: DELIVERED_HANDSET, PENDING, FAILED, EXPIRED
"DELIVERED_HANDSET"
The timestamp when the OTP was successfully verified (if applicable)
"2024-12-03T17:12:33.560000+00:00"
The timestamp when the delivery status was last updated
"2024-12-03T17:12:33.560000+00:00"
Additional details about the delivery status
"Delivered to handset"
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.retrieveSMSOtpStatus(
'4b20019b-043a-78f8-0657-b3be3f4b4002',
);
console.log(response.brandId);{
"brandId": "B123ABC",
"referenceId": "OTP4B2001",
"mobilePhone": "+11234567890",
"requestDate": "2024-12-03T17:12:33.560000+00:00",
"deliveryStatus": "DELIVERED_HANDSET",
"verifyDate": "2024-12-03T17:12:33.560000+00:00",
"deliveryStatusDate": "2024-12-03T17:12:33.560000+00:00",
"deliveryStatusDetails": "Delivered to handset"
}