# DKIM Selector 'smtpapi' Lookup

> DKIM Selector 'smtpapi' Lookup is a paid API for AI agents from dns.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Looks up and parses the DKIM public key for the 'smtpapi' selector of a given domain, returning key type, length, testing flag, and revocation status.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/dkim/smtpapi?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dkim-selector-smtpapi-lookup-a02266db
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q1csVhcl921yjGVzEw76z

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability dkim-selector-smtpapi-lookup-a02266db
```

Example prompt: Can you check whether the DKIM smtpapi selector is properly configured and not revoked for the domain example.com?

## When to prefer this

Use this endpoint when you specifically need to validate the 'smtpapi' DKIM selector, which is the selector used by SendGrid/Twilio SendGrid for transactional email signing. Prefer this over generic DNS TXT lookups when you want structured parsing of DKIM fields (v=, k=, key length, testing flag, revocation) rather than raw record text. Choose this when auditing SendGrid-based email infrastructure or troubleshooting DKIM failures for domains using the smtpapi selector.

## Known failure modes

- Domain does not have a smtpapi._domainkey TXT record — returns not-found or empty result
- DNS lookup failure via Cloudflare DoH — network or resolver error
- Malformed TXT record that cannot be parsed — partial result or parse error
- Payment failure for $0.01 USDC — request blocked before lookup
- Key is revoked (empty p=) — returns revoked status rather than key details

## How this service works

DKIM public key for selector "smtpapi" of a domain: looks up smtpapi._domainkey.<domain> (TXT, Cloudflare DoH) and parses v=, k=, key type, public-key length, testing flag and whether the key is revoked (empty p=). Confirms that mail signed with the smtpapi selector will verify. $0.01 per lookup.

## Output

Returns parsed details from the smtpapi._domainkey.<domain> TXT record including: DKIM version (v=), key type (k=), RSA/EC public key and its bit length, whether the testing flag (t=y) is set, and whether the key is revoked (empty p= field), plus a confirmation of whether mail signed with this selector will verify.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dkim-selector-smtpapi-lookup-a02266db/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dns.intel.rallylive.ca](https://www.zero.xyz/host/dns.intel.rallylive.ca/llms.txt)
