{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}
{
"error": {
"code": "NUMBERS.NUMBER_NOT_FOUND",
"message": "No number with this id exists in your account.",
"target": "numberId"
},
"requestId": "c41f0a9e2b"
}
{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}
{
"error": {
"code": "NUMBERS.NUMBER_NOT_FOUND",
"message": "No number with this id exists in your account.",
"target": "numberId"
},
"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).
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.