# DKIM Public-Key Record Parser

> DKIM Public-Key Record Parser is a paid API for AI agents from emailauth.openverbs.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Parses a DKIM DNS TXT record string into structured fields: key type, public key, hash algorithms, service types, and flags — and detects revoked or malformed records.

## Facts

- Endpoint: POST https://emailauth.openverbs.com/v1/dkim-parse
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dkim-public-key-record-parser-152df21c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j22Oz7Wb16EgLEU2nlKor

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-public-key-record-parser-152df21c -d '<json body>'
```

Example prompt: Parse this DKIM TXT record and tell me the key type, public key, hash algorithms, and whether it's revoked: "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC..."

## When to prefer this

Use this endpoint when you need to programmatically dissect a raw DKIM TXT record string into its component fields without having to implement DKIM RFC parsing yourself. It is ideal for email deliverability audits, security tooling that checks for revoked keys, or onboarding workflows that validate DKIM configuration before go-live. Prefer this over generic DNS lookup tools when you already have the raw TXT record value and need structured field extraction.

## Known failure modes

- Missing 'p' tag in the record returns a 400 Bad Request
- Completely malformed or non-DKIM record string may return a 400 error
- Empty 'p' tag is valid input but signals revocation, not an error
- Unsupported or unknown key type tags may be returned as-is or flagged
- Whitespace/formatting issues in the raw TXT record may cause parse failures

## How this service works

Parse a DKIM public-key DNS TXT record ("v=DKIM1; k=rsa; p=…") into its key type, public key, hash algorithms, service types and flags. An empty `p` is reported as a revoked key. A missing `p` tag is a clean 400.

## Output

Returns a structured breakdown of the DKIM TXT record including key type (e.g. rsa, ed25519), the base64-encoded public key, supported hash algorithms, service types, and flags. An empty 'p' value is flagged as a revoked key; a missing 'p' tag returns a 400 error indicating a malformed record.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "record"
     ],
     "properties": {
      "record": {
       "type": "string",
       "description": "DKIM key TXT record, e.g. \"v=DKIM1; k=rsa; p=MIGfMA0GCSq...\"."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dkim-public-key-record-parser-152df21c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from emailauth.openverbs.com](https://www.zero.xyz/host/emailauth.openverbs.com/llms.txt)
