{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}
{
"error": {
"code": "NUMBERS.FEATURE_NOT_IN_PLAN",
"message": "VIP queues are not in your plan.",
"target": "isVip"
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "NUMBERS.NUMBER_NOT_FOUND",
"message": "No number with this id exists in your account.",
"target": "numberId"
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "VALIDATION.INVALID_FIELD",
"message": "internalName must be at most 50 characters.",
"target": "internalName"
},
"requestId": "c41f0a9e2b"
}
Changes only the fields you send: a number’s internal name, whether users may pause the recording, mandatory call tagging and VIP. Fields you leave out keep their values. A request that changes nothing returns 200 with the number. The change applies to the next call.
internalName is cleaned up before its length is checked and it is stored: emojis and other characters that take 4 bytes in UTF-8, and control characters such as line breaks and tabs, become a space; repeated whitespace becomes one space; and spaces at the start and end are removed.
A field that needs a plan feature your company lacks is refused with 403 NUMBERS.FEATURE_NOT_IN_PLAN, and target names it. On the AI Voice Agent plan, which has no human agents, userRecordingPause and mandatoryCallTagging cannot change.
No webhook is sent. A Dashboard that is open shows the change after a reload.
{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}
{
"error": {
"code": "NUMBERS.FEATURE_NOT_IN_PLAN",
"message": "VIP queues are not in your plan.",
"target": "isVip"
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "NUMBERS.NUMBER_NOT_FOUND",
"message": "No number with this id exists in your account.",
"target": "numberId"
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "VALIDATION.INVALID_FIELD",
"message": "internalName must be at most 50 characters.",
"target": "internalName"
},
"requestId": "c41f0a9e2b"
}
HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).
At least one field. Fields you leave out keep their values.
internalName
string | null
Up to 50 characters once cleaned up: emojis and other characters that take 4 bytes in UTF-8, and control characters such as line breaks and tabs, become a space; repeated whitespace becomes one space; and spaces at the start and end are removed. null clears it. A name that is empty once cleaned up is stored as an empty string, "". Needs internal number names in your plan.
Maximum string length: 50
userRecordingPause
enum<string>
company, on or off.
Available options:
company,
on,
off
mandatoryCallTagging
enum<string>
company, on or off. Needs call tagging and mandatory call tagging in your plan.
Available options:
company,
on,
off
isVip
boolean
Needs VIP queues in your plan.
Response
The updated number.
A phone number of your company. A number has no updatedAt: callFlow.updatedAt covers changes to its call flow.
id
string
required
Number id.
Example:
"1201"
number
string
required
The phone number in E.164.
Example:
"+12025550143"
internalName
string | null
required
Your label for the number, up to 50 characters. null when it has none, "" when it was set to text that was empty once cleaned up, and always null when your plan has no internal number names.
Maximum string length: 50
Example:
"Front desk"
numberType
string
required
The number type, with the same values as number_type in the call webhooks: fixed, mobile, toll_free, premium_rate, shared_cost, voip, personal_number, pager, uan, emergency, voicemail. New values may be added; handle unknown ones.
Example:
"fixed"
country
string
required
ISO 3166-1 alpha-2 country code.
Example:
"US"
capabilities
object
required
What the number can do. Read-only.
Show child attributes
a2pStatus
enum<string> | null
required
US A2P 10DLC registration state. null when unknown. Read-only.
Available options:
notRequired,
unregistered,
inProgress,
registered,
capacityExceeded,
null
userRecordingPause
enum<string>
required
Whether users may pause the call recording: company follows the company setting, on and off override it for this number.
Available options:
company,
on,
off
mandatoryCallTagging
enum<string>
required
Whether users must tag calls on this number: company follows the company setting, on and off override it.
Whether business hours run before the number's call flow, as at call time: when business hours are in your plan, the number's own hours apply when it uses them, otherwise the company hours when they are on.
Show child attributes
createdAt
string<date-time> | null
required
When the number joined your company, RFC 3339 UTC. null only when the stored date is not a valid date.