senapati
Documentation index

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.

POST/api/bimi-checkCosts 2 creditsAPI key

Validate 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.

  • 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" and version="1.2" on the root, a <title> naming the brand, no x or y on the root, and no scripts, embedded images, links, animation or external references.
  • An empty l= with no a= 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

codetypeMeans
BIMI_NOT_FOUNDerrorNo record at the selector
DMARC_NOT_BIMI_READYerrorThe DMARC policy does not qualify; the message lists why
DUPLICATE_BIMI_RECORDSerrorMore than one record at the host
BIMI_DECLINEDinfoThe record opts out of BIMI
MISSING_L_TAG / L_TAG_NOT_HTTPS / A_TAG_NOT_HTTPSwarning / errorNo logo URL, or a URL that is not https
LOGO_FETCH_FAILEDerrorThe 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_CONTENTerrorThe file breaks the SVG Tiny PS profile
LOGO_VERSION_NOT_1_2 / LOGO_TOO_LARGEwarningRoot version is not 1.2, or the file is over 32 KB
VMC_FETCH_FAILED / VMC_NOT_PEMerrorThe certificate could not be fetched or parsed
VMC_EXPIRED / VMC_NOT_YET_VALID / VMC_DOMAIN_MISMATCHerrorOutside its validity window, or does not cover the domain
VMC_NO_LOGOTYPEwarningNo logotype extension
DNS_LOOKUP_FAILEDerrorA lookup did not complete; the report is partial

Request

JSON body
FieldTypeDescription
domain*stringDomain whose BIMI record to check
selectorstringBIMI 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.

response: 200 OKBIMICheckData
{
"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.

data · BIMICheckData
FieldTypeDescription
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 | nulll tag
vmc_url*string | nulla tag
declined*booleanTrue for the empty record that opts out of BIMI
svg_logo*BIMILogo | null
↳ url*string
↳ status_code*integer | nullHTTP status when fetching; null if unreachable
↳ valid*booleanTrue when the file passes the SVG Tiny PS checks
↳ file_size_bytesinteger | null
↳ versionstring | nullSVG version attribute; 1.2 expected
↳ baseprofilestring | nullbaseProfile attribute; tiny-ps expected
↳ titlestring | nullThe <title> element, which should name the brand
vmc_certificate*BIMICertificate | null
↳ url*string
↳ status_code*integer | nullHTTP status when fetching; null if unreachable
↳ valid*booleanParses, is within its validity window and covers the domain; chain trust is not verified
↳ expiredboolean | null
↳ issued_toCertificateName | null
↳ common_name*string | null
↳ organization*string | null
↳ country*string | null
↳ state*string | null
↳ location*string | null
↳ alternative_namesstring[]
↳ issuerCertificateName | null
↳ common_name*string | null
↳ organization*string | null
↳ country*string | null
↳ state*string | null
↳ location*string | null
↳ alternative_namesstring[]
↳ signatureCertificateSignature | null
↳ serial*string
↳ serial_hex*string
↳ type*string
↳ validityCertificateValidity | null
↳ days_left*integer
↳ valid_from*string
↳ valid_to*string
↳ logotype_extensionboolean | nullTrue when the certificate carries the logotype extension
↳ trademarkTrademark | null
↳ found*boolean
↳ typestring | nullMark type, e.g. Registered Mark
↳ countrystring | nullCountry or office of registration
↳ idstring | nullRegistration number
↳ attributesdict<string, string>Every mark attribute, keyed by OID
dmarc*BIMIDmarcStatus
↳ record*string | null
↳ found_at*string | nullDomain whose DMARC record applies
↳ policy*string | nullThe policy receivers apply to the domain
↳ bimi_ready*boolean
↳ blockers*string[]What keeps bimi_ready false
issues_found*AuthIssue[]
↳ code*stringStable 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*stringWhat was found and why it matters
has_issues*boolean
valid*booleanA record exists and nothing about it, its logo or its certificate is an error
lookup_failed*booleanTrue when a DNS query did not complete; the report is partial
elapsed_msintegerdefault 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

data.dmarc · BIMIDmarcStatus
FieldTypeDescription
record*string | null
found_at*string | nullDomain whose DMARC record applies
policy*string | nullThe policy receivers apply to the domain
bimi_ready*boolean
blockers*string[]What keeps bimi_ready false
data.svg_logo · BIMILogo
FieldTypeDescription
url*string
status_code*integer | nullHTTP status when fetching; null if unreachable
valid*booleanTrue when the file passes the SVG Tiny PS checks
file_size_bytesinteger | null
versionstring | nullSVG version attribute; 1.2 expected
baseprofilestring | nullbaseProfile attribute; tiny-ps expected
titlestring | nullThe <title> element, which should name the brand
data.vmc_certificate · BIMICertificate
FieldTypeDescription
url*string
status_code*integer | nullHTTP status when fetching; null if unreachable
valid*booleanParses, is within its validity window and covers the domain; chain trust is not verified
expiredboolean | null
issued_toCertificateName | null
↳ common_name*string | null
↳ organization*string | null
↳ country*string | null
↳ state*string | null
↳ location*string | null
↳ alternative_namesstring[]
issuerCertificateName | null
↳ common_name*string | null
↳ organization*string | null
↳ country*string | null
↳ state*string | null
↳ location*string | null
↳ alternative_namesstring[]
signatureCertificateSignature | null
↳ serial*string
↳ serial_hex*string
↳ type*string
validityCertificateValidity | null
↳ days_left*integer
↳ valid_from*string
↳ valid_to*string
logotype_extensionboolean | nullTrue when the certificate carries the logotype extension
trademarkTrademark | null
↳ found*boolean
↳ typestring | nullMark type, e.g. Registered Mark
↳ countrystring | nullCountry or office of registration
↳ idstring | nullRegistration number
↳ attributesdict<string, string>Every mark attribute, keyed by OID
issued_to and issuer · CertificateName
FieldTypeDescription
common_name*string | null
organization*string | null
country*string | null
state*string | null
location*string | null
alternative_namesstring[]
vmc_certificate.trademark · Trademark
FieldTypeDescription
found*boolean
typestring | nullMark type, e.g. Registered Mark
countrystring | nullCountry or office of registration
idstring | nullRegistration number
attributesdict<string, string>Every mark attribute, keyed by OID
data.issues_found[] · AuthIssue
FieldTypeDescription
code*stringStable 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*stringWhat 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.
  • selector defaults to default, which is what every provider looks up; other selectors only matter when a message carries a BIMI-Selector header.
  • A report with lookup_failed: true is partial; retry it before acting on it.