Automatic device authorization
GitHub Copilot can automatically open your browser to authenticate with TigerMail. No manual API key copying needed.
Open GitHub Copilot Chat in your editor
Paste our integration instructions
Copilot will guide you through device authorization
Copilot will suggest email code as you type
This is an example of what GitHub Copilot will generate for you.
// Copilot suggests completions as you type:
async function sendWelcomeEmail(userEmail: string, userName: string) {
const response = await fetch("https://tigermail.io/api/v1/send", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.TIGERMAIL_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
to: [userEmail],
subject: `Welcome, ${userName}!`,
html: `<h1>Welcome to our platform, ${userName}!</h1>`,
from: "welcome@yourdomain.com",
}),
});
return response.json();
}