client: any, emails: string[], text: string ) => { const options = { url: "https://api.sendgrid.com/v3/mail/send", type: "POST", headers: { Authorization: "Bearer {{setting.sendgridApiKey}}", }, contentType: "application/json", data: (次ページで解説), secure: true, }; const res = await client.request(options); }; 引数として、宛先アドレスの配列とメー ル本文文字列受取り ZAFの機能でZendesk外部の SendGrid API呼び出し