import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.messaging.rcs.retrieveCapabilities('phone_number', {
agent_id: 'agent_id',
});
console.log(response.data);