Returns a list of your porting order.
Successful response
Array of objects (PortingOrder) | |
object (PaginationMeta) |
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrder.list( page: { number: 1, size: 20})
{- "data": [
- {
- "activation_settings": {
- "activation_status": "Active",
- "fast_port_eligible": true,
- "foc_datetime_actual": "2021-03-19T10:07:15.527Z",
- "foc_datetime_requested": "2021-03-19T10:07:15.527Z"
}, - "created_at": "2021-03-19T10:07:15.527Z",
- "customer_reference": "Acct 123abc",
- "description": "FP Telnyx",
- "documents": {
- "invoice": "ce74b771-d23d-4960-81ec-8741b3862146",
- "loa": "64ffb720-04c7-455b-92d6-20fcca92e935"
}, - "end_user": {
- "admin": {
- "account_number": "123abc",
- "auth_person_name": "Porter McPortersen II",
- "billing_phone_number": 13035551234,
- "business_identifier": "abc123",
- "entity_name": "Porter McPortersen",
- "pin_passcode": 1234,
- "tax_identifier": "1234abcd"
}, - "location": {
- "administrative_area": "IL",
- "country_code": "US",
- "extended_address": "Suite 504",
- "locality": "Chicago",
- "postal_code": "60654",
- "street_address": "311 W. Superior St"
}
}, - "id": "f1486bae-f067-460c-ad43-73a92848f902",
- "misc": {
- "new_billing_phone_number": "string",
- "remaining_numbers_action": "disconnect",
- "type": "full"
}, - "old_service_provider_ocn": "Unreal Communications",
- "parent_support_key": "pr_123abc",
- "phone_number_configuration": {
- "connection_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "emergency_address_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "messaging_profile_id": "f1486bae-f067-460c-ad43-73a92848f901",
- "tags": [
- "abc",
- "123"
]
}, - "phone_number_type": "local",
- "porting_phone_numbers_count": 1,
- "record_type": "porting_order",
- "requirements": [
- {
- "field_type": "document",
- "field_value": "9787fb5f-cbe5-4de4-b765-3303774ee9fe",
- "record_type": "porting_requirement",
- "requirement_type_id": "59b0762a-b274-4f76-ac32-4d5cf0272e66"
}
], - "requirements_met": false,
- "status": {
- "details": [
- {
- "code": "ENTITY_NAME_MISMATCH",
- "description": "Entity name does not match that on the CSR"
}
], - "value": "ported"
}, - "support_key": "sr_123abc",
- "updated_at": "2021-03-19T10:07:15.527Z",
- "user_feedback": {
- "user_comment": "I loved my experience porting numbers with Telnyx",
- "user_rating": 5
}, - "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75",
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Creates a new porting order object.
Successful response
Unauthorized
Unprocessable entity. Check message field in response for details.
{- "customer_reference": "Acct 123abc",
- "phone_numbers": [
- "+13035550000",
- "+13035550001",
- "+13035550002"
]
}
{- "data": [
- {
- "activation_settings": {
- "activation_status": null,
- "fast_port_eligible": true,
- "foc_datetime_actual": null,
- "foc_datetime_requested": null
}, - "created_at": "2022-03-17T18:01:01Z",
- "customer_reference": null,
- "description": "FP Telnyx",
- "documents": {
- "invoice": null,
- "loa": null
}, - "end_user": {
- "admin": {
- "account_number": null,
- "auth_person_name": null,
- "billing_phone_number": null,
- "business_identifier": null,
- "entity_name": null,
- "pin_passcode": null,
- "tax_identifier": null
}, - "location": {
- "administrative_area": null,
- "country_code": null,
- "extended_address": null,
- "locality": null,
- "postal_code": null,
- "street_address": null
}
}, - "id": "b0ea6d6f-de31-4079-a536-992e0c98b037",
- "misc": null,
- "old_service_provider_ocn": "Unreal Communications",
- "parent_support_key": null,
- "phone_number_configuration": {
- "connection_id": null,
- "emergency_address_id": null,
- "messaging_profile_id": null,
- "tags": [ ]
}, - "phone_number_type": "local",
- "phone_numbers": [
- {
- "activation_status": null,
- "phone_number": "{e.164 TN}",
- "phone_number_type": "local",
- "portability_status": "confirmed",
- "porting_order_id": "b0ea6d6f-de31-4079-a536-992e0c98b037",
- "porting_order_status": "draft",
- "record_type": "porting_phone_number",
- "requirements_status": "requirement-info-pending",
- "support_key": null
}
], - "porting_phone_numbers_count": 1,
- "record_type": "porting_order",
- "requirements": [ ],
- "requirements_met": false,
- "status": {
- "details": [ ],
- "value": "draft"
}, - "support_key": null,
- "updated_at": "2022-03-17T18:01:01Z",
- "user_feedback": {
- "user_comment": null,
- "user_rating": null
}, - "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75",
- "webhook_url": null
}
]
}
Returns a list of all possible exception types for a porting order.
Successful response
Array of objects (PortingOrdersExceptionType) | |||||
Array
|
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrders.list_exception_type.list()
{- "data": [
- {
- "code": "ENTITY_NAME_MISMATCH",
- "description": "Entity name does not match that on the CSR"
}
]
}
Deletes an existing porting order. This operation is restrict to porting orders in draft state.
No content
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" port_order = telnyx.PortingOrder.retrieve(PORTING_ORDER_ID) port_order.delete()
Retrieves the details of an existing porting order.
Successful response
object (PortingOrder) | |
object |
Unauthorized
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrder.retrieve(PORTING_ORDER_ID)
{- "data": {
- "activation_settings": {
- "activation_status": "Active",
- "fast_port_eligible": true,
- "foc_datetime_actual": "2021-03-19T10:07:15.527Z",
- "foc_datetime_requested": "2021-03-19T10:07:15.527Z"
}, - "created_at": "2021-03-19T10:07:15.527Z",
- "customer_reference": "Acct 123abc",
- "description": "FP Telnyx",
- "documents": {
- "invoice": "ce74b771-d23d-4960-81ec-8741b3862146",
- "loa": "64ffb720-04c7-455b-92d6-20fcca92e935"
}, - "end_user": {
- "admin": {
- "account_number": "123abc",
- "auth_person_name": "Porter McPortersen II",
- "billing_phone_number": 13035551234,
- "business_identifier": "abc123",
- "entity_name": "Porter McPortersen",
- "pin_passcode": 1234,
- "tax_identifier": "1234abcd"
}, - "location": {
- "administrative_area": "IL",
- "country_code": "US",
- "extended_address": "Suite 504",
- "locality": "Chicago",
- "postal_code": "60654",
- "street_address": "311 W. Superior St"
}
}, - "id": "f1486bae-f067-460c-ad43-73a92848f902",
- "misc": {
- "new_billing_phone_number": "string",
- "remaining_numbers_action": "disconnect",
- "type": "full"
}, - "old_service_provider_ocn": "Unreal Communications",
- "parent_support_key": "pr_123abc",
- "phone_number_configuration": {
- "connection_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "emergency_address_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "messaging_profile_id": "f1486bae-f067-460c-ad43-73a92848f901",
- "tags": [
- "abc",
- "123"
]
}, - "phone_number_type": "local",
- "porting_phone_numbers_count": 1,
- "record_type": "porting_order",
- "requirements": [
- {
- "field_type": "document",
- "field_value": "9787fb5f-cbe5-4de4-b765-3303774ee9fe",
- "record_type": "porting_requirement",
- "requirement_type_id": "59b0762a-b274-4f76-ac32-4d5cf0272e66"
}
], - "requirements_met": false,
- "status": {
- "details": [
- {
- "code": "ENTITY_NAME_MISMATCH",
- "description": "Entity name does not match that on the CSR"
}
], - "value": "ported"
}, - "support_key": "sr_123abc",
- "updated_at": "2021-03-19T10:07:15.527Z",
- "user_feedback": {
- "user_comment": "I loved my experience porting numbers with Telnyx",
- "user_rating": 5
}, - "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75",
}, - "meta": {
- "phone_numbers_url": "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222"
}
}
Edits the details of an existing porting order.
Any or all of a porting order’s attributes may be included in the resource object included in a PATCH request.
If a request does not include all of the attributes for a resource, the system will interpret the missing attributes as if they were included with their current values. To explicitly set something to null, it must be included in the request with a null value.
object | |
customer_reference | string |
object (PortingOrderDocuments) | |
object (PortingOrderEndUser) | |
object (PortingOrderMisc) | |
object (PortingOrderPhoneNumberConfiguration) | |
Array of objects (UpdatePortingOrderRequirement) List of requirements for porting numbers. | |
object (PortingOrderUserFeedback) | |
webhook_url | string <uri> |
Successful response
object (PortingOrder) | |
object |
Unauthorized
Unprocessable entity. Check message field in response for details.
{- "activation_settings": {
- "foc_datetime_requested": "2021-03-19T10:07:15.527Z"
}, - "customer_reference": "string",
- "documents": {
- "invoice": "ce74b771-d23d-4960-81ec-8741b3862146",
- "loa": "64ffb720-04c7-455b-92d6-20fcca92e935"
}, - "end_user": {
- "admin": {
- "account_number": "123abc",
- "auth_person_name": "Porter McPortersen II",
- "billing_phone_number": 13035551234,
- "business_identifier": "abc123",
- "entity_name": "Porter McPortersen",
- "pin_passcode": 1234,
- "tax_identifier": "1234abcd"
}, - "location": {
- "administrative_area": "IL",
- "country_code": "US",
- "extended_address": "Suite 504",
- "locality": "Chicago",
- "postal_code": "60654",
- "street_address": "311 W. Superior St"
}
}, - "misc": {
- "new_billing_phone_number": "string",
- "remaining_numbers_action": "disconnect",
- "type": "full"
}, - "phone_number_configuration": {
- "connection_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "emergency_address_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "messaging_profile_id": "f1486bae-f067-460c-ad43-73a92848f901",
- "tags": [
- "abc",
- "123"
]
}, - "requirements": [
- {
- "field_value": "9787fb5f-cbe5-4de4-b765-3303774ee9fe",
- "requirement_type_id": "59b0762a-b274-4f76-ac32-4d5cf0272e66"
}
], - "user_feedback": {
- "user_comment": "I loved my experience porting numbers with Telnyx",
- "user_rating": 5
},
}
{- "data": {
- "activation_settings": {
- "activation_status": null,
- "fast_port_eligible": true,
- "foc_datetime_actual": null,
- "foc_datetime_requested": "2022-04-08T15:00:00Z"
}, - "created_at": "2022-03-24T14:22:28Z",
- "customer_reference": "Test1234",
- "description": "FP Telnyx",
- "documents": {
- "invoice": null,
- "loa": null
}, - "end_user": {
- "admin": {
- "account_number": "123abc",
- "auth_person_name": "Porter McPortersen II",
- "billing_phone_number": "+13035551234",
- "business_identifier": "abc123",
- "entity_name": "Porter McPortersen",
- "pin_passcode": "1234",
- "tax_identifier": "1234abcd"
}, - "location": {
- "administrative_area": "IL",
- "country_code": "US",
- "extended_address": "Suite 504",
- "locality": "Chicago",
- "postal_code": "60654",
- "street_address": "311 W. Superior St"
}
}, - "id": "eef10fb8-f3df-4c67-97c5-e18179723222",
- "misc": {
- "new_billing_phone_number": null,
- "remaining_numbers_action": null,
- "type": "full"
}, - "old_service_provider_ocn": "Unreal Communications",
- "parent_support_key": null,
- "phone_number_configuration": {
- "connection_id": "1752379429071357070",
- "emergency_address_id": null,
- "messaging_profile_id": null,
- "tags": [ ]
}, - "phone_number_type": "local",
- "porting_phone_numbers_count": 1,
- "record_type": "porting_order",
- "requirements": [ ],
- "requirements_met": false,
- "status": {
- "details": [ ],
- "value": "draft"
}, - "support_key": null,
- "updated_at": "2022-03-24T14:26:53Z",
- "user_feedback": {
- "user_comment": null,
- "user_rating": null
}, - "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75",
}, - "meta": {
- "phone_numbers_url": "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222"
}
}
Activate every numbers of a porting order asynchronously.
Successful response
object (PortingOrdersActivationJob) | |||||||||||
|
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrders.post_actions.post_activate.create()
{- "data": {
- "created_at": "2021-03-19T10:07:15.527Z",
- "id": "f1486bae-f067-460c-ad43-73a92848f902",
- "record_type": "porting_activation_job",
- "status": "created",
- "updated_at": "2021-03-19T10:07:15.527Z"
}
}
Cancel a porting order
Successful response
object (PortingOrder) | |
object |
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrders.post_actions.post_cancel.create()
{- "data": {
- "activation_settings": {
- "activation_status": null,
- "fast_port_eligible": true,
- "foc_datetime_actual": null,
- "foc_datetime_requested": "2022-04-08T15:00:00Z"
}, - "created_at": "2022-03-24T14:22:28Z",
- "customer_reference": "Test1234",
- "description": "FP Telnyx",
- "documents": {
- "invoice": "3a5b98a0-5049-47c3-96e1-aa6c8d119117",
- "loa": "3a5b98a0-5049-47c3-96e1-aa6c8d119117"
}, - "end_user": {
- "admin": {
- "account_number": "123abc",
- "auth_person_name": "Porter McPortersen II",
- "billing_phone_number": "+13035551234",
- "business_identifier": "abc123",
- "entity_name": "Porter McPortersen",
- "pin_passcode": "1234",
- "tax_identifier": "1234abcd"
}, - "location": {
- "administrative_area": "IL",
- "country_code": "US",
- "extended_address": "Suite 504",
- "locality": "Chicago",
- "postal_code": "60654",
- "street_address": "311 W. Superior St"
}
}, - "id": "eef10fb8-f3df-4c67-97c5-e18179723222",
- "misc": {
- "new_billing_phone_number": null,
- "remaining_numbers_action": null,
- "type": "full"
}, - "old_service_provider_ocn": "Unreal Communications",
- "parent_support_key": "pr_4bec1a",
- "phone_number_configuration": {
- "connection_id": "1752379429071357070",
- "emergency_address_id": null,
- "messaging_profile_id": null,
- "tags": [ ]
}, - "phone_number_type": "local",
- "porting_phone_numbers_count": 1,
- "record_type": "porting_order",
- "requirements": [ ],
- "requirements_met": true,
- "status": {
- "details": [ ],
- "value": "cancel-pending"
}, - "support_key": "sr_10b316",
- "updated_at": "2022-03-24T16:43:35Z",
- "user_feedback": {
- "user_comment": null,
- "user_rating": null
}, - "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75",
}, - "meta": {
- "phone_numbers_url": "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222"
}
}
Confirm and submit your porting order.
Successful response
object (PortingOrder) | |
object |
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrders.post_actions.post_confirm.create()
{- "data": {
- "activation_settings": {
- "activation_status": null,
- "fast_port_eligible": true,
- "foc_datetime_actual": null,
- "foc_datetime_requested": "2022-04-08T15:00:00Z"
}, - "created_at": "2022-03-24T14:22:28Z",
- "customer_reference": "Test1234",
- "description": "FP Telnyx",
- "documents": {
- "invoice": "3a5b98a0-5049-47c3-96e1-aa6c8d119117",
- "loa": "3a5b98a0-5049-47c3-96e1-aa6c8d119117"
}, - "end_user": {
- "admin": {
- "account_number": "123abc",
- "auth_person_name": "Porter McPortersen II",
- "billing_phone_number": "+13035551234",
- "business_identifier": "abc123",
- "entity_name": "Porter McPortersen",
- "pin_passcode": "1234",
- "tax_identifier": "1234abcd"
}, - "location": {
- "administrative_area": "IL",
- "country_code": "US",
- "extended_address": "Suite 504",
- "locality": "Chicago",
- "postal_code": "60654",
- "street_address": "311 W. Superior St"
}
}, - "id": "eef10fb8-f3df-4c67-97c5-e18179723222",
- "misc": {
- "new_billing_phone_number": null,
- "remaining_numbers_action": null,
- "type": "full"
}, - "old_service_provider_ocn": "Unreal Communications",
- "parent_support_key": "pr_4bec1a",
- "phone_number_configuration": {
- "connection_id": "1752379429071357070",
- "emergency_address_id": null,
- "messaging_profile_id": null,
- "tags": [ ]
}, - "phone_number_type": "local",
- "porting_phone_numbers_count": 1,
- "record_type": "porting_order",
- "requirements": [ ],
- "requirements_met": true,
- "status": {
- "details": [ ],
- "value": "in-process"
}, - "support_key": "sr_10b316",
- "updated_at": "2022-03-24T16:42:43Z",
- "user_feedback": {
- "user_comment": null,
- "user_rating": null
}, - "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75",
}, - "meta": {
- "phone_numbers_url": "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222"
}
}
Returns a list of your porting activation jobs.
Successful response
Array of objects (PortingOrdersActivationJob) | |
object (PaginationMeta) |
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrders.retrieve_activation_job.retrieve("id",page={"number":1,"size":20})
{- "data": [
- {
- "created_at": "2021-03-19T10:07:15.527Z",
- "id": "f1486bae-f067-460c-ad43-73a92848f902",
- "record_type": "porting_activation_job",
- "status": "created",
- "updated_at": "2021-03-19T10:07:15.527Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Returns a porting activation job.
Successful response
object (PortingOrdersActivationJob) | |||||||||||
|
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrder.retrieve("id}/activation_jobs/{activationJobId")
{- "data": {
- "created_at": "2021-03-19T10:07:15.527Z",
- "id": "f1486bae-f067-460c-ad43-73a92848f902",
- "record_type": "porting_activation_job",
- "status": "created",
- "updated_at": "2021-03-19T10:07:15.527Z"
}
}
Returns a list of allowed FOC dates for a porting order.
Successful response
Array of objects (PortingOrdersAllowedFocWindow) | |
object (PaginationMeta) |
Unauthorized
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrders.retrieve_allowed_foc_window.retrieve("id")
{- "data": [
- {
- "ended_at": "2021-03-19T10:07:15.527Z",
- "record_type": "porting_order",
- "started_at": "2021-03-19T10:07:15.527Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Returns a list of all comments of a porting order.
Successful response
Array of objects (PortingOrdersComment) | |
object (PaginationMeta) |
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrders.retrieve_comment.retrieve("id",page={"number":1,"size":20})
{- "data": [
- {
- "body": "Great experience so far",
- "created_at": "2021-03-19T10:07:15.527Z",
- "id": "f1486bae-f067-460c-ad43-73a92848f902",
- "porting_order_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "record_type": "porting_comment",
- "user_type": "user"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Creates a new comment for a porting order.
Successful response
object (PortingOrdersComment) | |||||||||||||
|
Unauthorized
Unprocessable entity. Check message field in response for details.
{- "body": "Please, let me know when the port completes"
}
{- "data": {
- "body": "Great experience so far",
- "created_at": "2021-03-19T10:07:15.527Z",
- "id": "f1486bae-f067-460c-ad43-73a92848f902",
- "porting_order_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "record_type": "porting_comment",
- "user_type": "user"
}
}
Download a porting order loa template
Successful response
Unauthorized
import telnyx telnyx.api_key = "YOUR_API_KEY" port_order = telnyx.PortingOrder.retrieve(PORTING_ORDER_ID) port_order.loaTemplate()
Returns a list of all requirements based on country/number type for this porting order.
Successful response
Array of objects (PortingOrderRequirementDetail) | |
object (PaginationMeta) |
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrders.retrieve_requirement.retrieve("id",page={"number":1,"size":20})
{- "data": [
- {
- "field_type": "document",
- "field_value": "9787fb5f-cbe5-4de4-b765-3303774ee9fe",
- "record_type": "porting_requirement",
- "requirement_status": "approved",
- "requirement_type": {
- "acceptance_criteria": {
- "acceptable_values": [ ]
}, - "description": "A copy of the latest phone bill from the current provider",
- "example": "Most recent phone bill",
- "id": "53970723-fbff-4f46-a975-f62be6c1a585",
- "name": "Latest Invoice",
- "type": "document"
}
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Retrieve the associated V1 sub_request_id and port_request_id
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingOrders.retrieve_sub_request.retrieve("id")
{- "data": {
- "port_request_id": "59b0762a-b274-4f76-ac32-4d5cf0272e66",
- "sub_request_id": "9787fb5f-cbe5-4de4-b765-3303774ee9fe"
}
}
Returns a list of your porting phone numbers.
page[number] | integer >= 1 Default: 1 The page number to load |
page[size] | integer [ 1 .. 250 ] Default: 20 The size of the page |
filter[porting_order_id] | string <uuid> Filter results by porting order id Example: filter[porting_order_id]=f3575e15-32ce-400e-a4c0-dd78800c20b0 |
filter[porting_order_id][in][] | Array of strings <uuid> Filter results by a list of porting order ids Example: filter[porting_order_id][in][]=f3575e15-32ce-400e-a4c0-dd78800c20b0 |
filter[support_key][eq] | string Filter results by support key Example: filter[support_key][eq]=sr_a12345 |
filter[support_key][in][] | Array of strings Filter results by a list of support keys Example: filter[support_key][in][]=sr_a12345 |
filter[phone_number] | string Filter results by phone number Example: filter[phone_number]=+12003151212 |
filter[phone_number][in][] | Array of strings Filter results by a list of phone numbers Example: filter[phone_number][in][]=+12003151212 |
filter[porting_order_status] | string Filter results by porting order status Example: filter[porting_order_status]=in-process |
filter[activation_status] | string (PortingOrderActivationStatus) Filter results by activation status Example: filter[activation_status]=Active |
filter[portability_status] | string (PortabilityStatus) Filter results by portability status Example: filter[portability_status]=confirmed |
Successful response
Array of objects (PortingPhoneNumber) | |
object (PaginationMeta) |
Unauthorized
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortingPhoneNumber.list(page={"number":1,"size":20})
{- "data": [
- {
- "activation_status": "Active",
- "phone_number": 13035550987,
- "phone_number_type": "local",
- "portability_status": "confirmed",
- "porting_order_id": "f1486bae-f067-460c-ad43-73a92848f902",
- "porting_order_status": "in-process",
- "record_type": "porting_phone_number",
- "requirements_status": "approved",
- "support_key": "sr_a12345"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}