Give agents addresses on your own domain by adding that domain to Lumbox, configuring the DNS records it returns, verifying it, and creating inboxes on the verified domain. A custom address changes the agent’s email identity; it does not automatically redirect an existing customer’s portal verification mail.

For a startup embedding browser agents, domain ownership and mailbox ownership should be separate decisions. Your company might control the email domain while each customer account has a distinct inbox. The application still needs to know which customer, portal and workflow owns each address.

Start with a domain or subdomain you control and can use for testing. If a domain already receives important mail elsewhere, review how the proposed routing affects that setup before changing records. An agent-mail rollout should have an intentional delivery route.

Add the domain and use its returned records

The custom-domain guide documents POST /v1/domains and the verification endpoint. The following example assumes your runtime has an API key and that agents.example.com is replaced with a domain you actually own.

curl -X POST "https://api.lumbox.co/v1/domains" \
  -H "X-API-Key: ${LUMBOX_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"domain":"agents.example.com"}'

Use the DNS records returned for your domain. Do not copy a DKIM value from an article or reuse a screenshot from another account. Keep a record of the domain ID and the configuration you applied so you can compare the intended setup with the verification result.

The documentation covers records for receiving and authenticating mail, including MX, SPF and DKIM. Your domain’s full mail configuration needs to remain coherent. A successful-looking address string is not evidence that inbound delivery or outbound authentication works.

Verify before creating inboxes

After configuring DNS, call POST /v1/domains/:id/verify using the returned domain ID. Inspect the real response instead of assuming verification is immediate. DNS changes and configuration mistakes can affect what the service observes.

The inspected inbox-creation handler requires a custom domain associated with the organization and in its active state. If the domain is not verified as required, inbox creation on that domain is rejected. This provides a useful boundary between declaring a domain name and actually using it for an inbox.

Once verification is complete, create a test address with domain and local_part in the inbox request. Save the returned inbox ID and address. The inbox guide describes the management interface.

{
  "name": "Portal pilot",
  "domain": "agents.example.com",
  "local_part": "portal-pilot"
}

This is an example request body, not an address available for use. Check for conflicts and reserved names through the actual API result. Your application should not proceed with an assumed inbox ID after a failed creation request.

Pick an address lifetime that fits the customer

Address designUseful propertyQuestion to answer
Stable per customer accountForwarding and portal settings can remain stableHow are concurrent logins coordinated?
Stable per agentThe agent retains a recognizable identityWhich customer tasks may use it?
Temporary per runSeparate routing for controlled runsWho removes stale inboxes and forwarding rules?

For existing customer portals, a stable address can reduce repeated setup. A per-run address can work well when your own workflow controls the destination, but it may be awkward when someone must update a forwarding rule for every run.

Choose a naming convention that does not expose sensitive customer details. An internal mapping can connect an opaque address to a customer record without putting the customer’s full identity in a public email address. That is application design advice, not a claim that Lumbox generates a particular naming policy for you.

Test incoming and outgoing mail separately

Send an authorized test message from an account you control to the new inbox. Read it through the API and verify the destination, received sender, subject and body. If the workflow needs verification extraction, inspect the parsed fields from a representative message too.

Then test outgoing mail if your product needs it. Receiving successfully does not prove the sending path is configured or permitted for the recipient you selected. A reply operation also depends on the relevant send permissions and limits. See the sending documentation.

Use a receiving mailbox to inspect how the message appears. Record the result of that test rather than claiming universal deliverability from a single successful delivery. Email acceptance depends on more than the existence of a custom domain.

Connect the portal’s actual route

Your new inbox might be fully functional while a customer’s portal still emails its old destination. That is an onboarding issue separate from domain verification. Establish whether the customer can change the portal address or configure a suitable forwarding rule.

Test the final forwarded message. Its sender and body may differ from the original, which matters when you configure a sender filter or rely on a parser. Lumbox’s OTP route uses a received-sender substring filter and verification-category matching, so verify the observed message rather than guessing.

After retrieval, the browser still needs to submit the value to the correct challenge. A branded address makes ownership easier to explain but does not prove that a particular code belongs to a particular browser session.

Keep lifecycle and plan limits visible

The source-backed Starter plan lists custom domains and ten inboxes at $9 per month. The free plan lists three inboxes, and its feature list does not list custom domains. Check the current pricing documentation and the account’s actual plan before designing an onboarding flow around custom-domain availability.

When a customer leaves or a test ends, decide what happens to its address and routing. Deleting an inbox while the customer still forwards codes to it can create a confusing failure later. Archive the application mapping and remove obsolete forwarding rules through the customer-controlled setup process.

For a first rollout, complete the entire route with one owned test address before creating many addresses. The relevant implementation references are apps/api/src/routes/domains.ts, apps/api/src/routes/inboxes.ts, packages/plans/src/index.ts, and apps/docs/content/docs/domains.mdx, checked October 3, 2026.

Kumar