Use case
Team invitation email
When an admin invites a teammate to a workspace or org. Copy the HTML into your app and send with one API call.
Subject line ideas
- You are invited to {{WORKSPACE}}
- {{INVITER}} invited you
- Accept your invitation
HTML example
Replace placeholders in your app before send. This is not a Notify template product — it is a starting snippet.
<p>{{INVITER}} invited you to {{WORKSPACE}}.</p>
<p><a href="{{INVITE_URL}}">Accept invitation</a></p>
<p>This invite expires in 7 days.</p>Send with Notify
const res = await fetch('https://notify.cx/api/email/send', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': process.env.NOTIFY_API_KEY
},
body: JSON.stringify({
to: 'user@example.com',
from: 'noreply@yourdomain.com',
subject: "You are invited to {{WORKSPACE}}",
message: `${html}`
})
});Security notes
- Invite tokens with expiry
- Show who invited and which workspace
- Allow revoke from admin UI
Related
Frequently asked questions
When should I send a team invitation email?
When an admin invites a teammate to a workspace or org.
Do I need Notify templates?
No. Paste HTML (or plain text) into the message field. Notify delivers — your app owns the content.
How do I send this with Notify?
POST https://notify.cx/api/email/send with x-api-key and fields to, from, subject, message. Free 1,000/mo; Pro $10 for 10,000.