Ask your coding assistant to add Tawked Email to your project.
- A Tawked account with an application that has Email on. Sign up if you have none.
- Early access to Tawked Email. It is early access: open the application’s Email area in the console and apply with what you send, how much a month and your domain. Tawked’s team reviews each request and tells you on WhatsApp, in the console and by e-mail. Until it is approved, you cannot add a domain, and a send answers
403 email_early_access. - A domain you own, and access to its DNS.
1
Verify your domain
Open the application, then Email → Setup, and add your domain,
acme.sa for example. The console shows three CNAME records:Add the three at your DNS provider exactly as shown. They sign every message with DKIM, which is what mail servers check. Tawked looks for them every ten minutes; press Check now to look at once. Most providers publish a record within minutes. A domain whose records are not found within 72 hours is marked failed, and you can add it again.Nothing else in your DNS changes: your MX records, your SPF record and your mailboxes stay as they are.
2
Create a live key
On Application settings → API keys, press Create a key. Choose the type Live, and under Access either All products or Custom with Email set to Send (the
email:send scope). Copy the key: it shows once. Put it in your server’s environment as TAWKED_KEY.A test key does not work here: the e-mail endpoints answer it 403 live_key_required. Send your first messages to your own address instead.3
Send a message
202 Accepted: the message is recorded and on its way.403 insufficient_scope (the key’s access does not include Email send), 403 email_early_access (the account has not been granted early access yet), 409 no_verified_domain (no domain of this application is verified yet), 422 sender_not_verified (the from address is on another domain). Sending email lists every code.4
Read the status
status moves from accepted to sent and delivered as the receiving mailbox answers, or ends as bounced or failed with error set. The message is on Email → Messages too.5
Add the webhook
On Application settings → Webhooks, set your endpoint’s URL. Every event of the application reaches it, so Tawked then posts
email.delivered, email.bounced, email.complained and email.failed as they happen, signed like every other event. See Webhooks for the signature and Sending email for the payload.