Domain

mail.bimi()

domain.mail.bimi({ svg, vmc?, subdomain? }) → Promise<Result>

Publishes the logo a receiver may show beside the domain's mail. It is gated twice, and the answer says plainly what it will not do without a certificate.

needs an enforced policySVG Tiny PSsays what it cannot do
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

const result = await domain.mail.bimi({ svg: bytes, vmc: "https://example.com/vmc.pem" });
// { host, published: true, logoUrl, vmc: false, warning: "…" }
result = domain.mail.bimi(svg=svg_bytes, vmc="https://example.com/vmc.pem")
# {"host", "published": True, "logoUrl", "vmc": False, "warning": "…"}
svgUint8Array | stringrequired

SVG Tiny PS: no script, no external image, 32 KB at most.

vmcstringnull

A certificate's address.

subdomainstringnull

Which host.

Two refusals, in that order

RefusalMeans
public_url_missingThe logo cannot be served publicly yet, so publishing the record would point at nothing.
dmarc_not_enforcedThe policy is still observing. Harden it with dmarc() first.
That order is deliberate

Sending someone to harden their policy — which can break their mailing lists — for something we could not deliver anyway would be the worse failure. The deliverability problem is checked first.

Without a certificate, the main receivers show nothing

The response says so rather than letting it be discovered

vmc: false comes back with a warning. A certificate requires a registered trademark and costs around a thousand dollars a year — which is the real gate, and worth knowing before the work is done.

The image is constrained

A restricted SVG profile: no script, no external reference, 32 KB at most. We host it and publish the record pointing at it — a stranger's mail receiver is what fetches it.

It is the only control over what a recipient sees

Nothing in a message decides the circle beside a sender's name: the recipient's client draws it from its own data. A signature can carry a picture inside the message, which is a different thing and always works.