const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); const result = await messaging.createTextmagicProvider({ providerId: '', name: '', from: '+12065550100', // optional username: '', // optional apiKey: '', // optional enabled: false // optional });