Preview the LOA configuration parameters
POST/porting/loa_configuration/preview
Preview the LOA template that would be generated without need to create LOA configuration.
Request
- application/json
Body
required
The name of the LOA configuration
logo
object
required
The logo of the LOA configuration
The document identification
The logo of the LOA configuration
The name of the company
address
object
required
The address of the company.
The street address of the company
The extended address of the company
The locality of the company
Possible values: Value must match regular expression ^[A-Z]{2}$
The administrative area of the company
Possible values: Value must match regular expression ^[0-9]{5}(?:-[0-9]{4})?$
The postal code of the company
Possible values: Value must match regular expression ^[A-Z]{2}$
The country code of the company
The address of the company.
contact
object
required
The contact information of the company.
The email address of the contact
Possible values: Value must match regular expression ^\+\d{11,15}$
The phone number of the contact
The contact information of the company.
Responses
200: Successful response
- application/pdf
422: Unprocessable entity. Check message field in response for details.
500: Internal server error
Request samples
curl -L 'https://api.telnyx.com/v2/porting/loa_configuration/preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/pdf' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "My LOA Configuration",
"logo": {
"document_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"company_name": "Telnyx",
"address": {
"street_address": "311 W. Superior St",
"extended_address": "Suite 504",
"city": "Chicago",
"state": "IL",
"zip_code": "60654",
"country_code": "US"
},
"contact": {
"email": "testing@telnyx.com",
"phone_number": "+12003270001"
}
}'
Response samples
%PDF-1.4...