import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const request = await client.messagingTollfree.verification.requests.delete(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
);
console.log(request);{
"errors": [
{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>",
"parameter": "<string>"
},
"meta": {}
}
]
}Delete a verification request
A request may only be deleted when when the request is in the “rejected” state.
HTTP 200: request successfully deletedHTTP 400: request exists but can’t be deleted (i.e. not rejected)HTTP 404: request unknown or already deletedimport Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const request = await client.messagingTollfree.verification.requests.delete(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
);
console.log(request);{
"errors": [
{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>",
"parameter": "<string>"
},
"meta": {}
}
]
}Was this page helpful?