setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); $result = $messaging->createSendgridProvider( providerId: '', name: '', apiKey: '', // optional fromName: '', // optional fromEmail: 'email@example.com', // optional replyToName: '', // optional replyToEmail: 'email@example.com', // optional enabled: false // optional );