Overview
Block porting allows you to port consecutive groups of phone numbers (blocks) from another carrier to Telnyx. Unlike porting individual phone numbers, block porting handles entire ranges of numbers that are assigned together by carriers. Phone number blocks are groups of consecutive phone numbers—typically 10, 100, or 1,000 numbers in sequence—assigned to a specific area or provider. Carriers manage these blocks as units, which means porting rules differ from individual numbers. Some countries require the entire block to be ported even if only some numbers are active. By indicating that you are porting a block (rather than individual numbers), Telnyx can apply the correct processing rules and help you avoid rejections or exceptions during the porting process.Constraints
- Block porting is currently only available for Germany (DE) port orders.
- The maximum size for a single block is 1,000 phone numbers (
0-999). - Activation ranges must be equal to or a subset of the phone number range.
- Activation ranges cannot overlap with each other.
- When adding a block to an existing order, the block must match the order’s country and phone number type.
- Blocks can only be added or deleted when the order is in
draft,in-process, orexceptionstatus.
Phone number range and activation ranges
When porting a block, you specify two key components: Phone number range: The complete block of consecutive numbers being ported. This defines the full range that will transfer to Telnyx and must be included in the Letter of Authorization (LOA). Block sizes are typically 10, 100, or 1,000 numbers. Activation ranges: The subset of numbers within the block that you want active immediately upon port completion. Numbers in the phone number range but not in any activation range will still port to your account but remain inactive. This separation is useful when a country requires full-block porting but you only need certain numbers active. For example, if you own a 1,000-number block but only use 776 of them, you can port the entire block while activating only the numbers you need. You can specify multiple activation ranges within a single block. For instance, if you need numbers000-064 and number 087 active, you would define two separate activation ranges.
How it works
Step 1: Create a port order with blocks
Use the POST /v2/porting_orders endpoint to create an order. Include aphone_number_blocks array with:
phone_number_range: Thestart_atandend_atvalues defining the complete block.activation_ranges: An array specifying which numbers to activate upon completion.
Step 2: Add blocks to an existing order (if needed)
If you created an order for individual numbers that were rejected because they belong to a block, you can add the block to your existing order rather than starting over. Use the POST /v2/porting_orders//phone_number_blocks endpoint to add a block. Any phone numbers already on the order that fall within the block range will be incorporated automatically.Step 3: View blocks on your order
Use the GET /v2/porting_orders//phone_number_blocks endpoint to view all blocks associated with your order. Each block has a uniqueid. When you query porting phone numbers using the List porting phone numbers endpoint, numbers that belong to a block include a block_reference_id field linking them to their block.