Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The object containing the Array of SIM card registration codes.
Response
Successful
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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."
}
]
}It validates whether SIM card registration codes are valid or not.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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."
}
]
}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?