Check out our upcoming events and meetups! View events →
Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand verification.
This endpoint allows you to check the delivery and verification status of an OTP sent during the Sole Proprietor brand verification process. You can query by either:
referenceId - The reference ID returned when the OTP was initially triggeredbrandId - Query parameter for portal users to look up OTP status by Brand IDThe response includes delivery status, verification dates, and detailed delivery information.
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.getSMSOtpByReference('OTP4B2001');
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 reference ID returned when the OTP was initially triggered
"OTP4B2001"
Filter by Brand ID for easier lookup in portal applications
"B123ABC"
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.getSMSOtpByReference('OTP4B2001');
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"
}