Imports phone numbers from Twilio into the system for use with agents. Attaches each number to the provider’s SIP trunk and creates local records for call routing. Supports partial success - continues importing remaining numbers if some fail.
| Field | Description |
|---|---|
| successCount | Number of successfully imported phone numbers |
| failedCount | Number of phone numbers that failed to import |
| errors | Detailed error information for each failure |
| Error | Cause |
|---|---|
| Not found | Phone number SID doesn’t exist in Twilio account |
| Already imported | Phone number was previously imported for this provider |
| Trunk attachment failed | Twilio API error when attaching to trunk |
Provider identifier
Phone number SIDs to import
Request DTO for importing phone numbers from a Twilio account into the system. Specifies which phone numbers to import by their Twilio Phone Number SIDs.
List of Twilio Phone Number SIDs to import. Each SID must be a valid Twilio Phone Number SID starting with 'PN' followed by 32 lowercase hexadecimal characters. Format: PN[a-f0-9]{32} (e.g., PNxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx).
Import completed with detailed results (may include partial failures)
Result of a phone number import operation. Contains counts of successfully imported and failed phone numbers, along with detailed error information for any failures.
Number of phone numbers successfully imported into the system.
Number of phone numbers that failed to import.
Detailed error information for each phone number that failed to import. Empty if all phone numbers were imported successfully.