method SendGridProvider.prototype.isHealthy
Since 0.1.0
SendGridProvider.prototype.isHealthy(): Promise<boolean>

M70c: a GET /v3/scopes through the existing IMailHttp seam. 2xx means the key is valid; 401 means the API reached us (so the backend is reachable even though the key is wrong); any other status or a network failure means unreachable.

Return Type

Promise<boolean>

true when the SendGrid API is reachable

Usage

import { SendGridProvider } from "mail-plugin/src/index.ts";