Skip to main content

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

Body

required

    name stringrequired

    The name of the LOA configuration

    logo

    object

    required

    The logo of the LOA configuration

    document_id uuidrequired

    The document identification

    The logo of the LOA configuration

    company_name stringrequired

    The name of the company

    address

    object

    required

    The address of the company.

    street_address stringrequired

    The street address of the company

    extended_address string

    The extended address of the company

    city string

    The locality of the company

    state string

    Possible values: Value must match regular expression ^[A-Z]{2}$

    The administrative area of the company

    zip_code string

    Possible values: Value must match regular expression ^[0-9]{5}(?:-[0-9]{4})?$

    The postal code of the company

    country_code stringrequired

    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.

    email emailrequired

    The email address of the contact

    phone_number stringrequired

    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

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...