# Delx Commerce — Security Surface Compose

> Delx Commerce — Security Surface Compose is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Aggregates DNS, TLS, and HTTP security header probe results into a unified security surface score with diagnostic notes.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/security-surface-compose?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-security-surface-compose-5f5ecd74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_euVMLIypjDkqDjHAGrOjv

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 delx-commerce-security-surface-compose-5f5ecd74 -d '<json body>'
```

Example prompt: I just ran probes on example.com and got DNS OK, TLS OK, but headers failed — can you compose those into a security surface score and tell me what needs fixing?

## When to prefer this

Use this endpoint when you have already run individual DNS, TLS, and HTTP security header probes and need to aggregate them into a single normalized score with human-readable notes. It is purpose-built for composing probe boolean results rather than running the probes themselves, making it ideal as the final aggregation step in a security assessment pipeline.

## Known failure modes

- Missing or invalid boolean inputs may result in an error or incomplete score
- All three fields omitted may produce a zero or null score
- Payment failure via x402 prevents any response
- Unexpected non-boolean values for dns_ok/tls_ok/headers_ok may cause a 400 error

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with a numeric security score, an array of diagnostic notes (e.g. 'headers_weak') identifying which checks failed or need attention, and a schema identifier (delx/util-security-surface-compose/v1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dns_ok": {
   "type": "boolean",
   "description": "DNS probe succeeded"
  },
  "tls_ok": {
   "type": "boolean",
   "description": "TLS probe succeeded"
  },
  "headers_ok": {
   "type": "boolean",
   "description": "Security headers probe succeeded"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "notes": [
   "headers_weak"
  ],
  "score": 2,
  "schema": "delx/util-security-surface-compose/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-security-surface-compose-5f5ecd74/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
