PhoneNumber
Generic SIP failover destination. The sip: or sips: prefix is optional; the API normalizes before routing.
+15551234567@carrier.example.comAmerica/New_YorkbusinessHoursSchedule object[]
0=Sunday, 6=Saturday.
Possible values: >= 0 and <= 6
Possible values: Value must match regular expression ^\d{2}:\d{2}$
Possible values: Value must match regular expression ^\d{2}:\d{2}$
Per-window routing action. failover uses destination when provided, otherwise the default outside-hours route.
Possible values: [retell, failover]
Optional per-window SIP destination override. The sip: or sips: prefix is optional.
afterhours@carrier.example.comPossible values: [retell_open, retell_closed]
Default outside-hours SIP destination when businessHoursOutsideDestinationMode is sip_uri. The sip: or sips: prefix is optional.
afterhours@carrier.example.cominboundRetellHeaders object[]
Possible values: <= 10
Possible values: Value must match regular expression ^X-[A-Za-z0-9-]+$
Possible values: [none, bearer, basic, hmac_sha256]
falsePossible values: [none, bearer, basic, hmac_sha256]
Possible values: >= 250 and <= 5000
1000Possible values: [allow, block, failover]
allowsip_uri routes to a full SIP/SIPS URI. extension builds a SIP URI against the existing provider connection.
Possible values: [sip_uri, extension]
sip_uriUser, extension, DID, or SIP username to route over the existing provider connection when failoverDestinationMode is extension.
- Example 1
- Example 2
1001+15551234567Optional transport override for generic SIP failover. Blank uses the SIP URI or provider transport.
Possible values: [TCP, UDP, TLS, null]
Default outside-hours route: existing SIP provider connection, explicit SIP URI, or verified managed PSTN failover.
Possible values: [sip_connection, sip_uri, pstn_failover]
sip_connectionUser, extension, DID, or SIP username to route over the existing SIP provider connection for outside-hours calls.
- Example 1
- Example 2
1001+15551234567Optional transport override for the outside-hours SIP destination. Blank uses the provider or URI default.
Possible values: [TCP, UDP, TLS, null]
Phone number or SIP user imported to Retell.
Possible values: [imported_number, dial_to_sip]
Verified US PSTN failover forwarding destination.
Possible values: [not_configured, pending, verified, failed, expired]
sipHeaderMappings object[]
Possible values: <= 10
Header name received from or written toward the SIP provider.
Retell-visible X-* or P-Asserted-Identity header.
Possible values: Value must match regular expression ^(X-[A-Za-z0-9_-]+|P-Asserted-Identity)$
Possible values: [inbound, bidirectional]
retellWorkspaceAssignments object[]
Additional Retell workspace imports and agent assignments for this number.
inboundAgents object[]
Possible values: >= 0 and <= 1
failoverAgents object[]
Possible values: >= 0 and <= 1
workspace object
- RetellWorkspace
- null
Prefix used when importing the same SIP number into this Retell workspace.
Current additional-workspace amount from the active BillingPriceConfig catalog.
{
"retellConcurrencyCheckEnabled": true,
"retellConcurrencyBurstAllowed": true,
"failoverEnabled": true,
"failoverDestination": "+15551234567@carrier.example.com",
"businessHoursEnabled": true,
"businessHoursTimezone": "America/New_York",
"businessHoursSchedule": [
{
"days": [
0
],
"start": "string",
"end": "string",
"action": "retell",
"destination": "afterhours@carrier.example.com"
}
],
"businessHoursRouteMode": "retell_open",
"businessHoursOutsideDestination": "afterhours@carrier.example.com",
"inboundRetellHeaders": [
{
"name": "string",
"value": "string"
}
],
"inboundWebhookUrl": "string",
"inboundWebhookAuthType": "none",
"callerIdLookupWebhookEnabled": false,
"callerIdLookupWebhookUrl": "string",
"callerIdLookupWebhookAuthType": "none",
"callerIdLookupWebhookTimeoutMs": 1000,
"callerIdLookupWebhookFailureMode": "allow",
"failoverDestinationMode": "sip_uri",
"failoverExtension": "1001",
"failoverTransport": "TCP",
"businessHoursOutsideDestinationMode": "sip_connection",
"businessHoursOutsideExtension": "1001",
"businessHoursOutsideTransport": "TCP",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"trunkId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"e164": "string",
"providerAliases": [
"string"
],
"retellImportIdentifier": "string",
"routingMode": "imported_number",
"enabled": true,
"inboundEnabled": true,
"outboundEnabled": true,
"pstnFailoverEnabled": true,
"pstnFailoverDestination": "string",
"pstnFailoverVerifiedAt": "2024-07-29T15:51:28.071Z",
"pstnFailoverVerificationStatus": "not_configured",
"sipHeaderMappings": [
{
"providerHeader": "string",
"retellHeader": "string",
"direction": "inbound"
}
],
"retellWorkspaceAssignments": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"phoneNumberId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"retellWorkspaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"friendlyName": "string",
"retellImportIdentifier": "string",
"inboundAgents": [
{
"agentId": "string",
"agentVersion": 0,
"weight": 0
}
],
"failoverAgents": [
{
"agentId": "string",
"agentVersion": 0,
"weight": 0
}
],
"failoverEnabled": true,
"enabled": true,
"retellImportStatus": "string",
"retellLastError": "string",
"workspace": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"friendlyName": "string",
"importPrefix": "string",
"tokenFirst6": "string",
"tokenLast4": "string",
"status": "string",
"validatedAt": "2024-07-29T15:51:28.071Z",
"lastError": "string",
"enabled": true,
"monthlyPriceCents": 0,
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z"
},
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z"
}
]
}