# AgentBodega Domain Health Check

> AgentBodega Domain Health Check is a paid API for AI agents from agentbodega.store, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Runs a suite of domain health checks (HTTPS, SPF, DKIM, etc.) against a given domain and returns a scored pass/fail summary.

## Facts

- Endpoint: POST https://agentbodega.store/api/check/domain
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentbodega-domain-health-check-9b304cde
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TpYrH0TAAVbj-dloKFnRK

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 agentbodega-domain-health-check-9b304cde -d '<json body>'
```

Example prompt: Can you run a domain health check on acmecorp.com and tell me if it passes HTTPS, SPF, and DKIM — and what the overall score is?

## When to prefer this

Choose this endpoint when you need a quick, scored, multi-dimensional domain health check (HTTPS + email authentication records) in a single API call, especially in agent workflows that require a go/no-go signal before launching a domain or sending email. It is particularly useful when you want a numeric score alongside individual check results rather than querying DNS records manually.

## Known failure modes

- Missing required 'domain' field returns validation error
- Invalid or non-existent domain may return failed checks or low score
- DNS lookup timeouts may cause individual checks to return inconclusive status
- Malformed DKIM selector values may cause DKIM check to fail or be skipped
- Network-level issues reaching the domain may result in HTTPS check failure

## How this service works

Small x402-payable utility APIs for agents: endpoint inspection, launch checks, and hosted artifacts.

## Output

Returns a JSON object with a list of named checks (e.g. 'https', 'spf', 'dkim'), each with a pass/fail status, plus the domain name and a summary object containing a numeric score (0–100) and overall pass/fail status.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "fields": [
      {
       "name": "domain",
       "type": "string",
       "required": true
      },
      {
       "name": "dkimSelectors",
       "type": "array",
       "required": false
      }
     ],
     "required": [
      "domain"
     ],
     "fieldCount": 2,
     "contentType": "application/json",
     "optionalPreview": [
      "dkimSelectors"
     ],
     "omittedFieldCount": 0
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "checks": [
   {
    "name": "https",
    "status": "pass"
   },
   {
    "name": "spf",
    "status": "pass"
   }
  ],
  "domain": "example.com",
  "summary": {
   "score": 92,
   "status": "pass"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentbodega-domain-health-check-9b304cde/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentbodega.store](https://www.zero.xyz/host/agentbodega.store/llms.txt)
