support.example.com), you provision a receiving domain and a webhook through the admin API.
Prerequisites
Set the following environment variables before provisioning:AUTH_RESEND_KEY— your Resend API keyRESEND_WEBHOOK_SECRET— webhook signing secret from Resend
Setup steps
Get email provider info
Check the current provider status before provisioning:This returns the Resend account details and current provisioning state associated with your deployment.
Provision a receiving domain
Create a new receiving domain. OpenIndex will provision the domain in Resend and return DNS records for you to add to your DNS provider.The response includes the domain ID and any DNS records required for verification.Via CLI:
Add DNS records
Add the DNS records returned in the provisioning response to your DNS provider. Records typically include MX and TXT entries for the subdomain.DNS propagation can take up to 48 hours, though it usually completes within a few minutes.
Verify the domain
Once DNS records are in place, trigger verification:Resend will check the DNS records and confirm the domain is ready to receive email.
Managing existing resources
Refresh domain or webhook state
If your Resend state becomes out of sync, refresh it to pull the latest status:List provisioned resources
Delete a domain
How inbound email flows
Once your domain and webhook are provisioned:- An email arrives at an address on your receiving domain (e.g.
support@support.example.com). - Resend forwards the email to
POST /webhooks/resend/email-receivedon your deployment. - OpenIndex verifies the payload signature using
RESEND_WEBHOOK_SECRET. - The email is normalized into a conversation and matched to a work item based on your mailbox routing rules.