Check out our upcoming events and meetups! View events →
It validates whether SIM card registration codes are valid or not.
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.simCards.actions.validateRegistrationCodes();
console.log(response.data);{
"data": [
{
"record_type": "sim_card_registration_code_validation",
"registration_code": "0123456789",
"valid": false,
"invalid_detail": "This code has already been used."
}
]
}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 object containing the Array of SIM card registration codes.
Successful
Show child attributes
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.simCards.actions.validateRegistrationCodes();
console.log(response.data);{
"data": [
{
"record_type": "sim_card_registration_code_validation",
"registration_code": "0123456789",
"valid": false,
"invalid_detail": "This code has already been used."
}
]
}