import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.porting.loaConfigurations.preview0({
address: {
city: 'Austin',
country_code: 'US',
state: 'TX',
street_address: '600 Congress Avenue',
zip_code: '78701',
},
company_name: 'Telnyx',
contact: { email: 'testing@telnyx.com', phone_number: '+12003270001' },
logo: { document_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
name: 'My LOA Configuration',
});
console.log(response);
const content = await response.blob();
console.log(content);"%PDF-1.4..."Preview the LOA template that would be generated without need to create LOA configuration.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.porting.loaConfigurations.preview0({
address: {
city: 'Austin',
country_code: 'US',
state: 'TX',
street_address: '600 Congress Avenue',
zip_code: '78701',
},
company_name: 'Telnyx',
contact: { email: 'testing@telnyx.com', phone_number: '+12003270001' },
logo: { document_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
name: 'My LOA Configuration',
});
console.log(response);
const content = await response.blob();
console.log(content);"%PDF-1.4..."Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The parameters for creating a new LOA configuration.
The name of the LOA configuration
"My LOA Configuration"
The name of the company
"Telnyx"
The address of the company.
Show child attributes
The street address of the company
"600 Congress Avenue"
The locality of the company
"Austin"
The administrative area of the company
"TX"
The postal code of the company
"78701"
The country code of the company
"US"
The extended address of the company
"14th Floor"
Successful response
The response is of type file.
"%PDF-1.4..."
Was this page helpful?