numbers.extension_invalid
An internal extension must be exactly four digits.
An internal extension must be exactly four digits.
numbers.extension_invalid means the extension is not exactly four digits. 1001 is valid; 100, 10001 and 10a1 are not.
Extensions are always four digits. With a fixed length a phone dials as soon as the fourth digit is pressed, and a four-digit extension cannot be mistaken for a phone number.
Nothing is saved when this error is returned.
Send exactly four digits, or leave the field out. An extension is optional: a device without one can still be called from outside and can still call out.
await fetch(
`https://api.sautikit.com/v1/numbers/${numberId}/sip-credentials/${credentialId}`,
{
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.SAUTIKIT_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ extension: "1001" }),
}
);Send an empty string to remove an extension.
numbers.extension_taken: another credential in this workspace already holds the extension.