Create a draft port request
POST/origination/porting/draft_port_requests
Creates a new draft port request object.
Request
- application/json
Body
required
Draft port request to create
Array [
]
phone_numbers
undefined[]
required
List of phone numbers to port
phone_number stringrequired
E164 formatted phone number
List of phone numbers to port
Responses
201: Draft port request response
- application/json
401: Unauthorized
422: Unprocessable entity. Check message field in response for details.
Request samples
curl -L 'https://api.telnyx.com/origination/porting/draft_port_requests' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"phone_numbers": [
{
"phone_number": "string"
}
]
}'
Response samples
{
"id": "string",
"created_at": "string",
"status": "pending",
"phone_number_count": 0,
"phone_numbers": [
{
"phone_number": "string",
"svtype": "string",
"carrier_name": "string",
"coverage_category": "nanp_generic",
"sub_request_id": "string",
"portability_status": "pending"
}
],
"sub_requests": [
{
"id": "string",
"complete": true,
"phone_numbers": [
{
"phone_number": "string",
"svtype": "string",
"carrier_name": "string",
"coverage_category": "nanp_generic",
"sub_request_id": "string",
"portability_status": "pending"
}
],
"foc_date_requested_by_user": "string",
"phone_number_count": 0,
"underlying_carrier_names": [
"string"
],
"person_or_company_name": "string",
"auth_person_name": "string",
"billing_phone_number": "string",
"street_address": "string",
"extended_address": "string",
"locality": "string",
"administrative_area": "string",
"postal_code": "string",
"country_code": "string",
"created_at": "string",
"default_connection_id": "string",
"default_message_profile_id": "string",
"porting_option": {
"type": "partial",
"remaining_numbers_action": "keep",
"new_billing_phone_number": "string"
},
"pin_passcode": "string",
"account_number": "string",
"description": "string",
"tax_identifier": "string",
"business_identifier": "string"
}
],
"port_request_id": "string"
}