BIMI Check
BIMI lets mailbox providers show a brand's logo next to its authenticated mail. It rests on three things: an enforcing DMARC policy, a record at default._bimi.<domain> pointing at an SVG logo in the Tiny Portable/Secure profile, and, for most providers, a Verified Mark Certificate vouching for the logo. This check fetches all three and reports what each one gets wrong.
/api/bimi-checkCosts 2 creditsAPI keyValidate a domain's BIMI record, logo and certificate (2 credits)
The DMARC prerequisite
Providers only look for a logo when the domain enforces DMARC: p=quarantine or p=reject, no sampling below 100 percent, no sp=none, no t=y. The dmarc block carries the record that applies (found by the same tree walk as DMARC Check), whether it qualifies, and the blockers when it does not.
The logo
- Fetched over HTTPS from the
l=URL, capped at 64 KB; over 32 KB draws a warning because many receivers refuse larger files. - Must be SVG with
baseProfile="tiny-ps"andversion="1.2"on the root, a<title>naming the brand, noxoryon the root, and no scripts, embedded images, links, animation or external references. - An empty
l=with noa=is a declination: the domain opts out of BIMI for that selector (declined: true).
The certificate
- Fetched from the
a=URL and parsed as PEM. The response carries the subject, issuer, serial, validity window and days left. - Checked: the validity window, that a subject alternative name covers the domain, and that the logotype extension is present. The trademark attributes a mark certificate carries in its subject are reported under
trademark. - Not checked: chain trust to the mark-issuing CAs. The issuer is reported so you can see who signed it.
Issue codes
| code | type | Means |
|---|---|---|
| BIMI_NOT_FOUND | error | No record at the selector |
| DMARC_NOT_BIMI_READY | error | The DMARC policy does not qualify; the message lists why |
| DUPLICATE_BIMI_RECORDS | error | More than one record at the host |
| BIMI_DECLINED | info | The record opts out of BIMI |
| MISSING_L_TAG / L_TAG_NOT_HTTPS / A_TAG_NOT_HTTPS | warning / error | No logo URL, or a URL that is not https |
| LOGO_FETCH_FAILED | error | The logo could not be fetched, or answered a non-200 status |
| LOGO_NOT_SVG / LOGO_NOT_TINY_PS / LOGO_TITLE_MISSING / LOGO_ROOT_HAS_X_Y / LOGO_FORBIDDEN_CONTENT | error | The file breaks the SVG Tiny PS profile |
| LOGO_VERSION_NOT_1_2 / LOGO_TOO_LARGE | warning | Root version is not 1.2, or the file is over 32 KB |
| VMC_FETCH_FAILED / VMC_NOT_PEM | error | The certificate could not be fetched or parsed |
| VMC_EXPIRED / VMC_NOT_YET_VALID / VMC_DOMAIN_MISMATCH | error | Outside its validity window, or does not cover the domain |
| VMC_NO_LOGOTYPE | warning | No logotype extension |
| DNS_LOOKUP_FAILED | error | A lookup did not complete; the report is partial |
Request
| Field | Type | Description |
|---|---|---|
| domain* | string | Domain whose BIMI record to check |
| selector | string | BIMI selector; almost always defaultdefault "default" |
Authenticate with API key. Send it as the X-API-Key header.
curl -X POST "https://api.senapati.io/api/bimi-check" \
-H "X-API-Key: $SENAPATI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"paypal.com"}'Response
Every success is wrapped in { "data": … } with a request_id; the fields below describe data. See Errors for the failure shape.
{"request_id": "req_e5a70c2d","timestamp": "2026-10-21T09:30:12.418203+00:00","data": {"domain": "paypal.com","selector": "default","bimi_host": "default._bimi.paypal.com","cname_target": null,"has_bimi_record": true,"bimi_record": "v=BIMI1; l=https://www.paypalobjects.com/marketing/web/logos/paypal_ppe.svg; a=https://www.paypalobjects.com/marketing/web/logos/PPE_UK_DE_paypal_inc.pem","bimi_records_count": 1,"version": "BIMI1","logo_url": "https://www.paypalobjects.com/marketing/web/logos/paypal_ppe.svg","vmc_url": "https://www.paypalobjects.com/marketing/web/logos/PPE_UK_DE_paypal_inc.pem","declined": false,"svg_logo": {"url": "https://www.paypalobjects.com/marketing/web/logos/paypal_ppe.svg","status_code": 200,"valid": true,"file_size_bytes": 1098,"version": "1.2","baseprofile": "tiny-ps","title": "PayPal"},"vmc_certificate": {"url": "https://www.paypalobjects.com/marketing/web/logos/PPE_UK_DE_paypal_inc.pem","status_code": 200,"valid": true,"expired": false,"issued_to": {"common_name": "PayPal, Inc.","organization": "PayPal, Inc.","country": "US","state": "California","location": "San Jose","alternative_names": ["paypal.com","paypal.co.uk","paypal.de"]},"issuer": {"common_name": "DigiCert Verified Mark RSA4096 SHA256 2021 CA1","organization": "DigiCert, Inc.","country": "US","state": null,"location": null},"signature": {"serial": "18870248735557250054436411452672570954","serial_hex": "e324717fd0a3df690afccf788cdf64a","type": "sha256WithRSAEncryption"},"validity": {"days_left": 264,"valid_from": "2026-07-13T00:00:00+00:00","valid_to": "2027-07-12T23:59:59+00:00"},"logotype_extension": true,"trademark": {"found": true,"type": "Registered Mark","country": "BX","id": "1510250","attributes": {"1.3.6.1.4.1.53087.1.13": "Registered Mark","1.3.6.1.4.1.53087.1.3": "BX","1.3.6.1.4.1.53087.1.4": "1510250"}}},"dmarc": {"record": "v=DMARC1; p=reject; rua=mailto:[email protected],mailto:[email protected]; ruf=mailto:[email protected],mailto:[email protected]","found_at": "paypal.com","policy": "reject","bimi_ready": true,"blockers": []},"issues_found": [],"has_issues": false,"valid": true,"lookup_failed": false,"elapsed_ms": 674}}
svg_logo and vmc_certificate are null when the record names no file; when a fetch fails they carry the URL, the status and valid: false.
| Field | Type | Description |
|---|---|---|
| domain* | string | |
| selector* | string | |
| bimi_host* | string | <selector>._bimi.<domain> |
| cname_target* | string | null | |
| has_bimi_record* | boolean | |
| bimi_record* | string | null | |
| bimi_records_count* | integer | |
| version* | string | null | |
| logo_url* | string | null | l tag |
| vmc_url* | string | null | a tag |
| declined* | boolean | True for the empty record that opts out of BIMI |
| svg_logo* | BIMILogo | null | |
| ↳ url* | string | |
| ↳ status_code* | integer | null | HTTP status when fetching; null if unreachable |
| ↳ valid* | boolean | True when the file passes the SVG Tiny PS checks |
| ↳ file_size_bytes | integer | null | |
| ↳ version | string | null | SVG version attribute; 1.2 expected |
| ↳ baseprofile | string | null | baseProfile attribute; tiny-ps expected |
| ↳ title | string | null | The <title> element, which should name the brand |
| vmc_certificate* | BIMICertificate | null | |
| ↳ url* | string | |
| ↳ status_code* | integer | null | HTTP status when fetching; null if unreachable |
| ↳ valid* | boolean | Parses, is within its validity window and covers the domain; chain trust is not verified |
| ↳ expired | boolean | null | |
| ↳ issued_to | CertificateName | null | |
| ↳ common_name* | string | null | |
| ↳ organization* | string | null | |
| ↳ country* | string | null | |
| ↳ state* | string | null | |
| ↳ location* | string | null | |
| ↳ alternative_names | string[] | |
| ↳ issuer | CertificateName | null | |
| ↳ common_name* | string | null | |
| ↳ organization* | string | null | |
| ↳ country* | string | null | |
| ↳ state* | string | null | |
| ↳ location* | string | null | |
| ↳ alternative_names | string[] | |
| ↳ signature | CertificateSignature | null | |
| ↳ serial* | string | |
| ↳ serial_hex* | string | |
| ↳ type* | string | |
| ↳ validity | CertificateValidity | null | |
| ↳ days_left* | integer | |
| ↳ valid_from* | string | |
| ↳ valid_to* | string | |
| ↳ logotype_extension | boolean | null | True when the certificate carries the logotype extension |
| ↳ trademark | Trademark | null | |
| ↳ found* | boolean | |
| ↳ type | string | null | Mark type, e.g. Registered Mark |
| ↳ country | string | null | Country or office of registration |
| ↳ id | string | null | Registration number |
| ↳ attributes | dict<string, string> | Every mark attribute, keyed by OID |
| dmarc* | BIMIDmarcStatus | |
| ↳ record* | string | null | |
| ↳ found_at* | string | null | Domain whose DMARC record applies |
| ↳ policy* | string | null | The policy receivers apply to the domain |
| ↳ bimi_ready* | boolean | |
| ↳ blockers* | string[] | What keeps bimi_ready false |
| issues_found* | AuthIssue[] | |
| ↳ code* | string | Stable machine-readable code, e.g. PLUS_ALL_FOUND |
| ↳ type* | "error" | "warning" | "info" | error: receivers reject or ignore the record; warning: it works but is weaker than it should be; info: a note, not a defect |
| ↳ message* | string | What was found and why it matters |
| has_issues* | boolean | |
| valid* | boolean | A record exists and nothing about it, its logo or its certificate is an error |
| lookup_failed* | boolean | True when a DNS query did not complete; the report is partial |
| elapsed_ms | integer | default 0 |
Errors
- 401missing or invalid API key / token
- 402not enough credits on the account
- 422the request body or a parameter failed validation
- 429plan rate limit exceeded
Nested objects
| Field | Type | Description |
|---|---|---|
| record* | string | null | |
| found_at* | string | null | Domain whose DMARC record applies |
| policy* | string | null | The policy receivers apply to the domain |
| bimi_ready* | boolean | |
| blockers* | string[] | What keeps bimi_ready false |
| Field | Type | Description |
|---|---|---|
| url* | string | |
| status_code* | integer | null | HTTP status when fetching; null if unreachable |
| valid* | boolean | True when the file passes the SVG Tiny PS checks |
| file_size_bytes | integer | null | |
| version | string | null | SVG version attribute; 1.2 expected |
| baseprofile | string | null | baseProfile attribute; tiny-ps expected |
| title | string | null | The <title> element, which should name the brand |
| Field | Type | Description |
|---|---|---|
| url* | string | |
| status_code* | integer | null | HTTP status when fetching; null if unreachable |
| valid* | boolean | Parses, is within its validity window and covers the domain; chain trust is not verified |
| expired | boolean | null | |
| issued_to | CertificateName | null | |
| ↳ common_name* | string | null | |
| ↳ organization* | string | null | |
| ↳ country* | string | null | |
| ↳ state* | string | null | |
| ↳ location* | string | null | |
| ↳ alternative_names | string[] | |
| issuer | CertificateName | null | |
| ↳ common_name* | string | null | |
| ↳ organization* | string | null | |
| ↳ country* | string | null | |
| ↳ state* | string | null | |
| ↳ location* | string | null | |
| ↳ alternative_names | string[] | |
| signature | CertificateSignature | null | |
| ↳ serial* | string | |
| ↳ serial_hex* | string | |
| ↳ type* | string | |
| validity | CertificateValidity | null | |
| ↳ days_left* | integer | |
| ↳ valid_from* | string | |
| ↳ valid_to* | string | |
| logotype_extension | boolean | null | True when the certificate carries the logotype extension |
| trademark | Trademark | null | |
| ↳ found* | boolean | |
| ↳ type | string | null | Mark type, e.g. Registered Mark |
| ↳ country | string | null | Country or office of registration |
| ↳ id | string | null | Registration number |
| ↳ attributes | dict<string, string> | Every mark attribute, keyed by OID |
| Field | Type | Description |
|---|---|---|
| common_name* | string | null | |
| organization* | string | null | |
| country* | string | null | |
| state* | string | null | |
| location* | string | null | |
| alternative_names | string[] |
| Field | Type | Description |
|---|---|---|
| found* | boolean | |
| type | string | null | Mark type, e.g. Registered Mark |
| country | string | null | Country or office of registration |
| id | string | null | Registration number |
| attributes | dict<string, string> | Every mark attribute, keyed by OID |
| Field | Type | Description |
|---|---|---|
| code* | string | Stable machine-readable code, e.g. PLUS_ALL_FOUND |
| type* | "error" | "warning" | "info" | error: receivers reject or ignore the record; warning: it works but is weaker than it should be; info: a note, not a defect |
| message* | string | What was found and why it matters |
Notes
- Both files are fetched the way the URL probe fetches pages: the host must resolve to a public address, the connection is pinned to it, and redirects are not followed.
selectordefaults todefault, which is what every provider looks up; other selectors only matter when a message carries aBIMI-Selectorheader.- A report with
lookup_failed: trueis partial; retry it before acting on it.