Unlock Sentinel · Automatic Delivery Guide

Resend Email

Prepare a sending domain whose DNS you control, verify it in Resend, then enter your API Key, sender address and recipient email in the app.

This guide works offline; official links require internet access. Domains, email addresses and keys are placeholders. Replace them with your own information.

1. Add and verify your own domain

Sign up and sign in at Resend. To send to ordinary recipients, use a domain you own and whose DNS you can edit. You cannot verify a public email provider's domain as your sending domain.

  1. Open Domains and choose Add Domain. You can use a dedicated subdomain such as alerts.example.com. Select a sending region.
  2. Open the domain's Records. Copy the generated DKIM and SPF verification records into your DNS provider's settings.
  3. Enter the type, name, value and priority when required exactly as shown. Records may use TXT, MX or CNAME. Do not copy DNS values from another domain. If CNAME has a proxy option, follow the official instructions and use DNS-only mode.
  4. Return to Resend and wait for sending verification to show Verified. DNS changes can take time. Check the records before repeatedly attempting to send.

Each subdomain must be added and verified separately. If you verify alerts.example.com, a sender such as guard@alerts.example.com is appropriate; do not substitute an unverified guard@example.com.

When adding records for sending, do not delete an existing mailbox's receiving MX records. Use the exact hostnames provided by Resend so you do not accidentally change mail reception for the root domain. After verifying sending, you may configure DMARC following the official guide.

Sources: Add and verify a domain; Avoid MX conflicts.

Just trying it first?

onboarding@resend.dev is Resend's official test sender. Normal test delivery is restricted to the email associated with your Resend account. To send elsewhere, verify your own domain and change the sender. This is not a shared sending domain for unrestricted recording delivery.

Official test-domain restrictions

2. Create a sending API Key

  1. Open API Keys and choose Create API Key. Use a recognizable name such as “Unlock Sentinel”.
  2. Select Sending access. Recording delivery only needs to send email, not manage all account resources.
  3. If limiting the key to a single Domain, select the domain verified above and make sure it matches the sender address you will enter.
  4. Save the complete key when it is created. It is shown only once. If lost, create a new key and update the app. Example: re_EXAMPLE_REPLACE_WITH_YOUR_KEY.

The key is a sending credential, not an account login password. Do not add Bearer when entering it. Do not expose a real key in screenshots, guides, receiving URLs or public code.

Source: Create an API Key and choose permissions.

3. Enter three settings in the app

In Automatic Delivery, select Resend Email:

Resend API Key
Enter the complete key you just created. This is not an SMTP password or a domain verification record.
Verified sender address
For example, guard@alerts.example.com. Its domain must be verified in the same Resend account or team and permitted by this key's domain scope. Enter the complete email address.
Recipient email
For example, owner@example.net. Enter one real mailbox you can check, not a domain, a comma-separated list or an API endpoint.

Resend allows sending addresses under a verified domain without creating a matching receiving mailbox first. The recipient may use another email service, subject to the official test-domain restriction.

The app uses https://api.resend.com/emails; no server, port or SMTP settings are needed. The subject begins with UnlockSentinel event. The body is a short security-recording notice, with the video attached. No diagnostic JSON is included.

First turn off “Include Current Location” and confirm that the video email arrives. Enable it through the normal permission flow afterward if needed. Location text is added to the same message body; the video is still sent when location is unavailable.

After changing the sender, recipient or channel, test with a new recording. Old jobs are not redirected to the new destination.

Sources: Verified domains and sender addresses; Send email API.

4. Verify receipt with a short recording

  1. Confirm the sending domain is verified and the key permissions are correct. Enable protection, make a new short test recording and let it finish normally.
  2. Check delivery status in the app. Resend is marked provider_accepted only after HTTP 2xx with a nonempty string id in the JSON response.
  3. Find the matching subject or message ID in Resend Emails. On failure, check HTTP status and errors in Logs.
  4. Open the recipient mailbox and check both inbox and spam. Verify the subject, time and complete, playable video attachment. Accepted by the provider does not mean delivered or read.

If Resend says delivered but the email is missing, check filters, spam and the receiving provider too. API success does not mean the recipient has seen the message.

Official guide: delivered but not received

Optional: check the domain, key and mailbox with curl

This sends only a plain-text configuration test, not a video attachment. Replace every placeholder before running it yourself, and use a real recipient you control.

curl --include --request POST 'https://api.resend.com/emails' \
  --header 'Authorization: Bearer re_EXAMPLE_REPLACE_WITH_YOUR_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "from": "guard@alerts.example.com",
    "to": ["owner@example.net"],
    "subject": "UnlockSentinel configuration check",
    "text": "This is a configuration test email that you chose to send."
  }'

A normal response looks like {"id":"message-id"}. Confirm actual receipt as above, then test a new recording from the app.

5. Attachment size limits

App: original video up to 25 MiB
That is 26,214,400 bytes. The app does not simply use Resend's full allowance. Larger videos fail locally and are retained.
App: 38 MB safety limit for the encoded request
Base64 increases video size by roughly one third. The app also limits the JSON request body to 38,000,000 bytes.
Resend: whole email up to 40 MB
The official limit includes Base64 attachments. Recipient mailboxes, enterprise gateways and security filters may impose smaller limits. Use a recording of a few seconds for your first test.

The app sends the local video in JSON attachments, with filename and Base64 content. Filenames use <eventID>.mov or .mp4. These are not external-link attachments, and the batch email endpoint is not used.

Local videos are retained after success or failure. The app does not automatically compress, split or create cloud links for oversized videos. Check your Resend dashboard for your plan's quotas and rate limits.

Sources: Attachment format and the 40 MB limit; Account quotas and rates.

6. Troubleshooting

401 / invalid key
Check for an incomplete or revoked key, an extra Bearer prefix or unrelated pasted text. Create a new key and update the app if necessary.
403 / unverified or mismatched domain
Check the from domain, Verified status, team and key's Domain restriction. Verifying a subdomain does not verify its parent, or vice versa.
403 / test mail only to yourself
You are using the official resend.dev test domain. Switch to a sender on your own verified domain. The test domain cannot send to arbitrary recipients.
DNS verification remains pending
Check record types, hostnames, values, priorities and subdomains. Some DNS providers append the domain automatically. Disable proxying for CNAME and compare your dashboard with your DNS provider's instructions.
422 / rejected parameters or addresses
Check the specific error in Resend Logs and verify sender and recipient formats. The recipient field accepts one address, not several combined.
429 / quota or rate limit
Check current account usage and limits. Creating new events repeatedly does not bypass them. Do not rely on an old guide's free-tier figures.
Oversized attachment or recipient filtering
Test a shorter recording and compare the app's 25 MiB limit with the recipient's limit. If accepted and later bounced, investigate in Resend and the receiving mailbox.
Unknown result
A timeout does not prove nothing was sent. In particular, location-bearing requests stop automatic retries after an unknown result. Check the matching email in Resend and the inbox before retrying to avoid duplicates.
No new submission
Check protection, license, channel and destination configuration. Old jobs are not redirected after a destination change. Make a new recording after completing setup.

Official documentation

These links require internet access. Provider rules can change; use the DNS records and permission choices shown in your current dashboard.